/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 10% 0, rgba(56, 189, 248, 0.20), transparent 55%),
        radial-gradient(circle at 90% 0, rgba(34, 197, 94, 0.20), transparent 55%),
        linear-gradient(180deg, #f8fafc, #e5f3ff);
    color: #0f172a;
}

/* Layout general */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main {
    min-height: calc(100vh - 120px);
}

/* Header / Navbar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

/* Botón de tres puntos del admin */
.nav-admin-menu {
    position: relative;
    margin-left: 0.5rem;
}

.icon-button {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    color: #0f172a;
}

.icon-button:hover {
    background: rgba(15, 23, 42, 0.06);
}

/* Dropdown del admin */
.admin-menu-dropdown {
    position: absolute;
    right: 0;
    top: 120%;
    min-width: 160px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
    padding: 0.35rem 0;
    display: none;
    z-index: 1000;
}

.nav-admin-menu.open .admin-menu-dropdown {
    display: block;
}

.admin-menu-dropdown a {
    display: block;
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    color: #0f172a;
    text-decoration: none;
    white-space: nowrap;
}

.admin-menu-dropdown a:hover {
    background: rgba(15, 23, 42, 0.04);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    position: relative; 
    z-index: 1000; 
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}

.brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 20%, #22c55e, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #020617;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.55);
}

.brand-symbol {
    width: 26px;      
    height: 26px;     
    object-fit: contain;
    margin-left: 4px;  /* separa la L de la imagen */
    filter: drop-shadow(0 0 4px rgba(14,165,233,0.35));
}


.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #64748b;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8rem;
    border-radius: 777px;
}

.nav-toggle-btn {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: #0f172a;
    transition: color 0.18s ease, opacity 0.18s ease;
    padding: 0.35rem 0.6rem;
    font-weight: 500; 
}

.nav-links a:hover {
    color: #0ea5e9;
}

.nav-links a.active {
    background: rgba(0, 150, 255, 0.1);
    color: #0070f3;
    font-weight: 600;
    border-radius: 999px;
}


/* Botones */
.btn {
    border-radius: 999px;
    padding: 0.6rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease,
                box-shadow 0.18s ease,
                background 0.18s ease,
                color 0.18s ease,
                border-color 0.18s ease;
}

.btn-demo {
    background: linear-gradient(135deg,
       rgb(124, 101, 155),
       rgb(145, 198, 214),
       rgb(236, 99, 99)
    );
    border: 1px solid rgba(14,165,233,0.65);
    color: #ffffff;
    border-radius: 999px;
    padding: 7px 18px;
    font-size: 0.9rem !important;
    font-weight: 700;
    text-decoration: none;
    transition: all .22s ease;
    
    /* Glow externo más suave */
    box-shadow:
        0 0 14px rgba(14,165,233,0.35),
        inset 0 0 12px rgba(59,130,246,0.12);
}

.btn-demo:hover {
    background: linear-gradient(135deg,
        rgb(139, 187, 201),
        rgb(75, 145, 151),
        rgb(87, 99, 155)
    );
    color: #ffffff;

    /* Glow más intenso en hover */
    box-shadow:
        0 0 22px rgba(14,165,233,0.55),
        inset 0 0 20px rgba(14,165,233,0.22);
    transform: translateY(-1px);
}



.btn-small {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(110deg, #0ea5e9, #22d3ee, #22c55e);
    box-shadow:
        0 0 18px rgba(56, 189, 248, 0.6),
        0 0 32px rgba(34, 197, 94, 0.35);
    color: #020617;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 26px rgba(56, 189, 248, 0.8),
        0 0 40px rgba(34, 197, 94, 0.45);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: #0ea5e9;
}

.btn-ghost:hover {
    border-color: #22c55e;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.04);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.9);
    color: #0ea5e9;
}

.btn-outline:hover {
    border-color: #22c55e;
    color: #16a34a;
    background: rgba(34, 197, 94, 0.04);
}

/* Barras de gráfico (dashboard) */
.card-chart-soft .bar,
.card-chart .bar {
    background: linear-gradient(180deg, #0ea5e9, #22d3ee);
}


.user-session {
    color: #be5a41;
    font-size: 0.8rem;
}


/* HERO ------------------------------------------------------ */
.hero {
    padding: 3rem 0 4rem;
    background: transparent;
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.hero-left h1 {
    font-size: clamp(2.2rem, 3vw + 1rem, 3.1rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(130deg, #22c55e, #0ea5e9, #22d3ee);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text {
    font-size: 0.98rem;
    color: #334155;
    max-width: 34rem;
    margin-bottom: 1.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(248, 250, 252, 0.98);
    font-size: 0.75rem;
    color: #0f172a;
    margin-bottom: 0.8rem;
    box-shadow: 0 0 14px rgba(148, 163, 184, 0.3);
}

.pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: radial-gradient(circle, #22c55e, #22d3ee);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.hero-benefits {
    list-style: none;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* Meta debajo de botones */
.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.hero-meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.8);
    background: rgba(15, 23, 42, 0.95);
    font-size: 0.72rem;
    color: #e0f2fe;
    width: fit-content;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.7);
}

.hero-meta-text {
    font-size: 0.82rem;
    color: #64748b;
}

/* Tarjeta dashboard (glass futurista) */
.hero-right {
    display: flex;
    justify-content: center;
}

.card-dashboard {
    width: 100%;
    max-width: 380px;
    border-radius: 1.1rem;
    border: 1px solid rgba(148, 163, 184, 0.45);
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.25), transparent 60%),
        radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.25), transparent 60%),
        rgba(255, 255, 255, 0.88);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.12),
        0 0 40px rgba(56, 189, 248, 0.25);
    overflow: hidden;
    backdrop-filter: blur(18px);
}

/* v2 para tu HTML nuevo */
.card-dashboard-v2 {
    border-radius: 1.2rem;
}

/* Header de la tarjeta */
.card-header {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 0.85rem;
    color: #0f172a;
}

.card-subtitle {
    font-size: 0.7rem;
    color: #6b7280;
}

.card-badge {
    font-size: 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 0.95rem 1rem 1rem;
}

.card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.card-stats-row {
    flex-direction: row;
    justify-content: space-between;
}

.card-stats-row .stat {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #020617;
}

.stat-tag {
    font-size: 0.75rem;
    color: #64748b;
}

.stat-tag.positive {
    color: #16a34a;
}

.card-chart,
.card-chart-soft {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 100px;
    margin-top: 0.4rem;
    padding: 0.2rem 0.2rem 0.1rem;
    border-radius: 0.9rem;
    background: radial-gradient(circle at 0 100%, #e0f2fe, transparent);
}

.card-chart .bar,
.card-chart-soft .bar {
    flex: 1;
    border-radius: 0.45rem 0.45rem 0.28rem 0.28rem;
    height: var(--h, 50%);
    opacity: 0.98;
}

.card-footer {
    font-size: 0.8rem;
    padding: 0.8rem 1rem 1rem;
    color: #64748b;
}

/* Footer claro futurista */
.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1.1rem 0;
    font-size: 0.8rem;
    color: #64748b;
    background: #f8fafc;
}

.site-footer .social-links {
    margin-top: 0.6rem;
}

.site-footer .social-icon {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    transition: transform 0.2s ease, color 0.2s ease;
    color: #64748b;
}

.site-footer .social-icon:hover {
    transform: scale(1.1);
    color: #e1306c; /* color clásico de Instagram */
}


/* Flash messages */
.flash-container {
    margin-top: 1rem;
}

.flash {
    padding: 0.6rem 0.9rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.flash-success {
    background: rgba(22, 163, 74, 0.06);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #166534;
}
.flash-danger {
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #b91c1c;
}
.flash-warning {
    background: rgba(234, 179, 8, 0.06);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #854d0e;
}
.flash-info {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #1d4ed8;
}

.flash-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(220, 38, 38, 0.45);
    color: #991b1b;
    font-weight: 500;
    padding: 0.7rem 1rem;
    border-radius: 0.6rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
    animation: fadeInError 0.35s ease;
}

@keyframes fadeInError {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive header / hero */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-right {
        order: -1;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: auto;
        padding: 0.75rem 1rem;
        position: relative;
        z-index: 1000;
    }

    /* Botón hamburguesa visible solo en móvil */
    .nav-toggle-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 26px;
        height: 26px;
        background: transparent;
        border: none;
        padding: 0;
        cursor: pointer;
        margin-left: 1rem;
    }

    .nav-toggle-btn span,
    .nav-toggle-btn span::before,
    .nav-toggle-btn span::after {
        content: "";
        display: block;
        height: 2px;
        background: #0f172a;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle-btn span::before,
    .nav-toggle-btn span::after {
        position: relative;
    }

    .nav-toggle-btn span::before {
        top: -6px;
    }

    .nav-toggle-btn span::after {
        top: 6px;
    }

    /* Animación a X */
    .nav-toggle-btn.is-open span {
        transform: rotate(45deg);
    }
    .nav-toggle-btn.is-open span::before {
        transform: rotate(90deg);
        top: 0;
    }
    .nav-toggle-btn.is-open span::after {
        opacity: 0;
    }

    /* Panel del menú móvil */
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        padding: 0.85rem 1.5rem 1.1rem;
        background: #020617;
        border-bottom: 1px solid rgba(148, 163, 184, 0.3);
        flex-direction: column;
        gap: 0.6rem;
        font-size: 0.9rem;
        z-index: 1000;
        /* CERRADO por defecto */
        display: none;
        border-radius: 12px !important;
        transition: opacity 0.25s ease, transform 0.25s ease;
        opacity: 0;
        transform: translateY(-10px);
    }

    /* ABIERTO: se añade por JS */
    .nav-links.is-open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a,
    .btn-small {
        width: 100%;
        text-align: left;
        justify-content: flex-start;
        color: #f9fafb;
    }

    .hero {
        padding: 2.2rem 0 3rem;
    }
}



/* Secciones genéricas (Servicios, Precios, Contacto) */
.page-section {
    padding: 3rem 0 4rem;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.page-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    max-width: 70rem;
    margin-bottom: 2rem;
}

/* Grid de servicios */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border-radius: 0.9rem;
    padding: 1.3rem 1.2rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.service-card h2 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.6rem;
}

.service-card ul {
    list-style: none;
    font-size: 0.85rem;
    color: #6b7280;
}

.service-card ul li + li {
    margin-top: 0.2rem;
}

.service-card ul li::before {
    content: "• ";
    color: #22c55e;
}

/* Precios */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.7rem;
}

.pricing-card {
    border-radius: 1rem;
    padding: 1.5rem 1.4rem 1.3rem;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.20), transparent 55%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.pricing-card h2 {
    font-size: 1.1rem;
    color: #0f172a;
}

.pricing-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #16a34a;
}

.pricing-desc {
    font-size: 0.9rem;
    color: #4b5563;
}

.pricing-list {
    list-style: none;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.pricing-list li + li {
    margin-top: 0.2rem;
}

.pricing-list li::before {
    content: "✔ ";
    color: #22c55e;
}

.pricing-list.no-incluye li::before {
    content: "✖ ";
    color: #c53522;
}


.pricing-btn {
    margin-top: 0.5rem;
}

.pricing-note {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 1.5rem;
}

/* Centrar botones en la página de precios */
.pricing-btn-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 28px 0; /* separación arriba/abajo */
}

/* Ajuste opcional para que todos los botones tengan el mismo ancho visual */
.pricing-btn-wrapper .btn {
    min-width: 230px;
    text-align: center;
}


/* Contacto */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.contact-list {
    list-style: none;
    font-size: 0.9rem;
    color: #334155;
    margin-bottom: 1rem;
}

.contact-list li + li {
    margin-top: 0.25rem;
}

.contact-note {
    font-size: 0.85rem;
    color: #64748b;
}

.contact-form-card {
    border-radius: 1rem;
    padding: 1.5rem 1.3rem;
    background:
        radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.25), transparent 55%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.contact-form label {
    font-size: 0.85rem;
    color: #0f172a;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f9fafb;
    color: #0f172a;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.5);
}

.contact-submit {
    margin-top: 0.6rem;
    width: 100%;
}

@media (max-width: 900px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === Login clientes (auth) === */
.auth-section {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

.auth-container {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.auth-intro .page-title {
    margin-bottom: 0.5rem;
}

.auth-intro .page-subtitle {
    margin-bottom: 1.2rem;
}

.auth-benefits {
    list-style: none;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.auth-benefits li + li {
    margin-top: 0.25rem;
}

.auth-benefits li::before {
    content: "✔ ";
    color: #22c55e;
}

.auth-demo-hint {
    font-size: 0.9rem;
    color: #64748b;
}

.auth-demo-hint a {
    color: #0ea5e9;
    text-decoration: none;
}

.auth-demo-hint a:hover {
    text-decoration: underline;
}

/* Tarjeta del login */
.auth-card {
    border-radius: 1rem;
    padding: 1.7rem 1.5rem 1.5rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.25), transparent 55%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.5);
    max-width: 420px;
    margin-left: auto;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-card h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #0f172a;
}

.auth-card-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group label {
    font-size: 0.85rem;
    color: #0f172a;
}

.form-group input {
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: #f9fafb;
    color: #0f172a;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
}

.form-group input::placeholder {
    color: #9ca3af;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.5);
}

.auth-submit {
    margin-top: 0.6rem;
    width: 100%;
}

.auth-help-text {
    margin-top: 0.7rem;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: center;
}

.auth-help-text a {
    color: #0ea5e9;
    text-decoration: none;
}

.auth-help-text a:hover {
    text-decoration: underline;
}

/* Responsive auth */
@media (max-width: 900px) {
    .auth-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-card {
        margin-left: 0;
    }
}

/* === Home v2 secciones extra === */
.hero-v2 {
    padding: 3.8rem 0 3.5rem;
}

/* Secciones home */
.section-home {
    padding: 2.8rem 0 3.4rem;
}

.section-header {
    /*max-width: 40rem;*/
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.7rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: #475569;
}

/* Beneficios y demo: fondos claros con tarjetas resaltadas */
.section-benefits {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), #e5f3ff);
}

.section-demo {
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.18), transparent 55%),
        #f8fafc;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

/* Beneficios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
}

.benefit-card {
    border-radius: 1rem;
    padding: 1.3rem 1.2rem 1.1rem;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.12), transparent 60%),
        rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.45);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.7);
    font-size: 1.1rem;
    color: #16a34a;
    margin-bottom: 0.8rem;
}

.benefit-card h3 {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.benefit-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.7rem;
}

.benefit-card ul {
    list-style: none;
    font-size: 0.83rem;
    color: #6b7280;
}

.benefit-card ul li + li {
    margin-top: 0.2rem;
}

.benefit-card ul li::before {
    content: "• ";
    color: #22c55e;
}

/* Demo */
.demo-card {
    border-radius: 1.3rem;
    padding: 1.7rem 1.5rem;
    background:
        radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.20), transparent 55%),
        rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.45);
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 1.8rem;
    align-items: center;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.08);
}

.demo-list {
    list-style: none;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.7rem;
}

.demo-list li + li {
    margin-top: 0.25rem;
}

.demo-mini-card {
    border-radius: 1rem;
    padding: 1rem 0.9rem 0.9rem;
    background:
        radial-gradient(circle at 0 0, rgba(22, 163, 74, 0.25), transparent 55%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.demo-mini-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #cbd5f5;
    margin-bottom: 0.6rem;
}

.demo-mini-badge {
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    color: #e0f2fe;
    border: 1px solid rgba(56, 189, 248, 0.8);
}

.demo-mini-body {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.demo-kpi {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.demo-kpi-label {
    font-size: 0.78rem;
    color: #9ca3af;
}

.demo-kpi-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f9fafb;
}

.demo-kpi-tag {
    font-size: 0.75rem;
    color: #9ca3af;
}

.demo-kpi-tag.positive {
    color: #4ade80;
}

.demo-mini-chart {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.4rem;
}

.demo-mini-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #0ea5e9);
    opacity: 0.9;
}

/* Asegura que todas las tarjetas tengan la misma altura */
.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px; /* Ajusta según tu diseño */
}

/* Los textos ocupan el espacio superior */
.service-card h2,
.service-card p,
.service-card ul {
    margin-bottom: 0.6rem;
}

/* Iconos alineados en la parte inferior y centrados */
.service-card img {
    margin-top: auto;
    height: 110px; /* Ajusta según tamaño deseado */
    width: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Selector de idioma ES / EN */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.75rem;
    font-size: 0.8rem;
    color: #64748b;
}

.language-switcher a {
    text-decoration: none;
    color: inherit;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease,
                box-shadow 0.18s ease;
}

/* Hover general */
.language-switcher a:hover {
    color: #0ea5e9;
    background: rgba(148, 163, 184, 0.12);
}

/* Idioma activo (ES o EN) */
.language-switcher .active-lang {
    font-weight: 600;
    color: #0f172a;
    background: rgba(148, 163, 184, 0.18);
    box-shadow: 0 0 10px rgba(148, 163, 184, 0.35);
}

/* === Botón flotante WhatsApp === */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 84px;
  height: 84px;
  /*border-radius: 999px;*/
  display: grid;
  place-items: center;
  z-index: 2500;

  /*background: #25D366; /* verde WhatsApp */
  /*box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);*/

  transition: transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.wa-float:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  /*box-shadow: 0 20px 50px rgba(15, 23, 42, 0.28);*/
}

.wa-float__icon {
  width: 56px;
  height: 56px;
  display: block;
}

/* === Tooltip WhatsApp === */
.wa-tooltip {
  position: absolute;
  right: 90px;            /* distancia hacia la izquierda del icono */
  top: 50%;
  transform: translateY(-50%);

  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-3px);
}

/* Punta del tooltip */
.wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  width: 12px;
  height: 12px;
  background: rgba(15, 23, 42, 0.92);
}


/* Mobile: un poco más pequeño y con margen seguro */
@media (max-width: 768px) {
  .wa-float__icon {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
}


/* Ajuste pequeño en móvil */
@media (max-width: 768px) {
    .language-switcher {
        font-size: 0.75rem;
        margin-left: 0.5rem;
    }
}


/* Responsive secciones home */
@media (max-width: 900px) {
    .demo-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-v2 {
        padding-top: 2.6rem;
    }
}


/* ============================
   Montserrat local (sin Google)
   ============================ */

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/montserrat/Montserrat-wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/static/fonts/montserrat/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  font-optical-sizing: auto;
}



html, body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

