@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ===================================================
   RESET & VARIABLES GLOBALES
   =================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --verde: #00d47e;
    --verde-hover: #00ff99;
    --oscuro: #020617;
    --card: #0f172a;
    --texto: #ffffff;
    --texto-sec: #94a3b8;
}

/* ===================================================
   FONDO GENERAL (MARCA DE AGUA TECH DIGITAL)
   =================================================== */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--oscuro);
    background-image: 
        radial-gradient(circle at top left, rgba(0, 212, 126, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.1), transparent 35%),
        radial-gradient(rgba(0, 212, 126, 0.08) 1px, transparent 1px),
        linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 60px 60px, 60px 60px;
    background-attachment: fixed;
    color: var(--texto);
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: auto;
    padding: 40px 0;
}

/* ===================================================
   IDENTIDAD VISUAL
   =================================================== */
.logo {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 10px;
}

.logo::after {
    content: "";
    display: block;
    width: 180px;
    height: 4px;
    margin-top: 10px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--verde), transparent);
}

.sublogo {
    color: var(--texto-sec);
    margin-bottom: 30px;
}

/* ===================================================
   TARJETAS GLASSMOPHISM
   =================================================== */
.card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(0, 212, 126, 0.15);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(0, 212, 126, 0.3);
}

.card h2 {
    font-weight: 700;
}

/* ===================================================
   SISTEMA DE BOTONES E INPUTS
   =================================================== */
.top-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.btn-top {
    background: var(--verde);
    color: var(--oscuro);
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-top:hover {
    background: var(--verde-hover);
    transform: translateY(-2px);
}

.btn-login {
    background: transparent;
    color: var(--texto);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-login:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    background: var(--verde);
    color: var(--oscuro);
    box-shadow: 0 10px 30px rgba(0, 212, 126, 0.15);
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 212, 126, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

input, textarea, select {
    width: 100%;
    display: block;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 16px;
    border-radius: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: var(--verde);
    box-shadow: 0 0 15px rgba(0, 212, 126, 0.2);
}

/* ===================================================
   SISTEMA DE PORTADAS NEÓN DINÁMICAS (REMPLAZO FOTOS)
   =================================================== */
.galeria {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 126, 0.15);
}

.galeria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.placeholder-comercio-gigante {
    width: 100%;
    height: 240px;
    border-radius: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    gap: 15px;
}

.luces-ambientales {
    position: absolute;
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    z-index: 1;
}

.icono-neón-gigante {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    z-index: 2;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.placeholder-comercio-gigante:hover .icono-neón-gigante {
    transform: scale(1.06);
}

.placeholder-tag-rubro {
    position: absolute;
    bottom: 15px;
    z-index: 2;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===================================================
   BOTONERA ACCIONES DE MARKETING RÁPIDO
   =================================================== */
.botonera-acciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    width: 100%;
}

.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-accion.wa {
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid #25d366;
    color: #25d366;
}
.btn-accion.wa:hover {
    background: #25d366;
    color: var(--oscuro);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-accion.maps {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid #3b82f6;
    color: #3b82f6;
}
.btn-accion.maps:hover {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.btn-accion.perfil {
    background: var(--verde);
    border: 1px solid var(--verde);
    color: var(--oscuro);
}
.btn-accion.perfil:hover {
    background: var(--verde-hover);
    border-color: var(--verde-hover);
    box-shadow: 0 0 15px rgba(0, 255, 153, 0.3);
}

/* ETICUETAS DE ESTADO ABIERTO / CERRADO */
.badge-estado {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11.5px;
    font-weight: 700;
}
.badge-estado.open {
    background: rgba(0, 212, 126, 0.1);
    border: 1px solid var(--verde);
    color: var(--verde-hover);
}
.badge-estado.closed {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #f87171;
}

/* GRILLAS SECUNDARIAS DE ESTADÍSTICAS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 25px;
}

@media (max-width: 768px) {
    .container { width: 92%; }
    .logo { font-size: 48px; }
    .card { padding: 22px; }
    .top-buttons { justify-content: center; width: 100%; }
}