/* ============================================================
   vidrual · landing.css
   Estilos NO críticos (below-the-fold). El CSS crítico
   (base, variables, navbar, hero) va inline en partials/head.
   Variables :root definidas en el CSS crítico, reutilizadas aquí.
   ============================================================ */

/* ---------- Logo (navbar + footer) ---------- */
.logo__img {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 9px;
}

/* ============================================================
   CONCEPTO
   ============================================================ */
.concept-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 50px;
}
.concept-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 30px 26px;
    transition: transform .2s ease, border-color .2s ease;
}
.concept-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 200, 255, 0.3);
}
.concept-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 255, 0.12);
    margin-bottom: 18px;
}
.concept-card__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--cyan);
}
.concept-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.concept-card__text {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
    background: var(--bg-soft);
}
.features__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 54px;
}
.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    padding: 32px 28px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.35);
    background: rgba(255, 255, 255, 0.06);
}
.feature-card__emoji {
    font-size: 1.9rem;
    display: block;
    margin-bottom: 16px;
}
.feature-card__title {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.feature-card__text {
    font-size: 0.95rem;
    color: var(--text-dim);
}

/* ============================================================
   GALERÍA — capturas de las secciones de la plataforma
   ============================================================ */
.gallery__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.gallery__lead {
    margin: 0 auto;
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 54px;
}
.gallery__item {
    margin: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.gallery__item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 200, 255, 0.3);
}
.gallery__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-bottom: 1px solid var(--card-border);
}
.gallery__caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 16px;
}
.gallery__tag {
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgba(0, 200, 255, 0.12);
    padding: 3px 9px;
    border-radius: 999px;
}
.gallery__tag--panel {
    color: var(--purple);
    background: rgba(139, 92, 246, 0.14);
}
.gallery__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* ============================================================
   BENEFICIOS
   ============================================================ */
.benefits-table {
    margin-top: 50px;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}
.benefit-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    border-bottom: 1px solid var(--card-border);
}
.benefit-row:last-child {
    border-bottom: 0;
}
.benefit-row > div {
    padding: 22px 26px;
}
.benefit-head {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 600;
}
.benefit-key {
    font-weight: 700;
    color: var(--text);
    border-right: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    gap: 12px;
}
.benefit-key__arrow {
    color: var(--cyan);
}
.benefit-val {
    color: var(--text-dim);
    display: flex;
    align-items: center;
}

.compare__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 70px 0 10px;
}
.compare__sub {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 36px;
}
.compare__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.compare-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 18px 20px;
}
.compare-item__check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.compare-item__check svg {
    width: 14px;
    height: 14px;
    stroke: var(--cyan);
}
.compare-item p {
    font-size: 0.95rem;
}
.compare-item strong {
    color: var(--text);
}
.compare-item span {
    color: var(--text-dim);
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.final-cta {
    background: linear-gradient(135deg, #0a0e2a 0%, #1a1248 55%, #2a1466 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.12), transparent 60%);
    pointer-events: none;
}
.final-cta .container {
    position: relative;
    z-index: 1;
}
.final-cta__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.02em;
    max-width: 760px;
    margin: 0 auto 22px;
}
.final-cta__text {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--card-border);
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}
.footer__logo {
    width: 96px;
    height: auto;
    border-radius: 18px;
    display: block;
}
.footer__tagline {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-top: 14px;
    max-width: 280px;
}
.footer__title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--cyan);
    margin-bottom: 14px;
}
.footer__col a,
.footer__col p {
    display: block;
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 8px;
    transition: color .2s ease;
}
.footer__col a:hover {
    color: var(--text);
}
.footer__bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE (below-the-fold)
   ============================================================ */
@media (max-width: 900px) {
    .concept-cards,
    .features__grid {
        grid-template-columns: 1fr;
    }
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compare__grid {
        grid-template-columns: 1fr;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    section {
        padding: 72px 0;
    }
    .gallery__grid {
        grid-template-columns: 1fr;
    }
    .gallery__img {
        height: 200px;
    }
    .benefit-row {
        grid-template-columns: 1fr;
    }
    .benefit-key {
        border-right: 0;
        border-bottom: 1px solid var(--card-border);
    }
    .benefit-row--head {
        display: none;
    }
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Modal de captura de contacto / acceso al demo
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.modal--open { display: flex; }

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 8, 24, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modalFade .2s ease;
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: linear-gradient(160deg, #11173d, #0a0e2a);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-card);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 200, 255, 0.06);
    padding: 34px 32px 30px;
    animation: modalPop .26s cubic-bezier(.2, .9, .3, 1.2);
}

@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalPop {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: 0;
    color: var(--text-dim);
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
    transition: color .2s ease;
}
.modal__close:hover { color: var(--text); }

.modal__title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 6px 0 10px;
    line-height: 1.2;
}
.modal__text {
    font-size: 0.96rem;
    color: var(--text-dim);
    margin-bottom: 22px;
}

.modal__form { display: flex; flex-direction: column; gap: 14px; }
.modal__field { display: flex; flex-direction: column; gap: 6px; }
.modal__field > span {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
}
.modal__field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-btn);
    transition: border-color .18s ease, background .18s ease;
}
.modal__field input::placeholder { color: #5b6486; }
.modal__field input:focus {
    outline: none;
    border-color: var(--cyan);
    background: rgba(0, 200, 255, 0.06);
}
.modal__field--invalid input { border-color: #ff5f7a; }

.modal__error {
    font-size: 0.78rem;
    color: #ff8095;
    min-height: 0;
}

.modal__submit {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}
.modal__submit--loading { opacity: .7; cursor: progress; }

.modal__note {
    font-size: 0.76rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 4px;
}

/* Vista de éxito */
.modal__check {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #04122a;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 200, 255, 0.35);
}
[data-demo-view="success"] { text-align: center; }
[data-demo-view="success"] .modal__title { margin-top: 0; }

.modal__creds {
    text-align: left;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 6px 18px;
    margin: 18px 0 22px;
}
.modal__cred {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.modal__cred:last-child { border-bottom: 0; }
.modal__cred > span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 4px;
}
.modal__cred a {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.92rem;
    word-break: break-all;
}
.modal__cred code {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    font-family: 'Inter', monospace;
}
.modal__cred--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.modal__copy {
    flex-shrink: 0;
    background: rgba(0, 200, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease;
}
.modal__copy:hover { background: rgba(0, 200, 255, 0.18); }

@media (max-width: 480px) {
    .modal__dialog { padding: 28px 22px 24px; }
    .modal__title { font-size: 1.3rem; }
}

/* ------- Modal: vista de éxito (prueba + precios + contacto) ------- */
.modal__trial {
    text-align: center;
    background: rgba(0, 200, 255, 0.06);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 14px;
    padding: 20px 18px 22px;
    margin: 20px 0 18px;
}
.modal__trial-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #04122a;
    background: var(--cyan);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.modal__trial-text {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 16px;
}
.modal__plans {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.modal__plan {
    flex: 1 1 120px;
    min-width: 120px;
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.modal__plan--best {
    border-color: var(--cyan);
    background: rgba(0, 200, 255, 0.08);
}
.modal__plan-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #04122a;
    background: var(--cyan);
    padding: 3px 10px;
    border-radius: 999px;
}
.modal__plan-price {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text);
}
.modal__plan-period {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.modal__contact-intro {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}
.modal__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.modal__contact-link {
    display: block;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--cyan);
    padding: 11px 14px;
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: var(--radius-btn);
    transition: background .18s ease;
}
.modal__contact-link:hover { background: rgba(0, 200, 255, 0.1); }
.modal__contact-link--wa {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.4);
}
.modal__contact-link--wa:hover { background: rgba(37, 211, 102, 0.1); }

/* ------- Modal: planes seleccionables + pago + iconos contacto ------- */
.modal__plan {
    cursor: pointer;
    text-align: center;
    font-family: inherit;
    color: var(--text);
    transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.modal__plan:hover { transform: translateY(-2px); }
.modal__plan--selected {
    border-color: var(--cyan);
    background: rgba(0, 200, 255, 0.12);
    box-shadow: 0 0 0 1px var(--cyan), 0 8px 24px rgba(0, 200, 255, 0.18);
}

.modal__pay {
    width: 100%;
    justify-content: center;
    margin-top: 16px;
}
.modal__pay[aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: auto;
}
.modal__pay-note {
    font-size: 0.74rem;
    color: var(--text-dim);
    text-align: center;
    margin-top: 10px;
}

.modal__contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal__contact-ic { flex-shrink: 0; }

/* ------- Botón de pago deshabilitado (sin plan elegido) ------- */
.modal__pay:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ------- Modal: campos de facturación (select + grupo) ------- */
.modal__payfields {
    display: flex;
    flex-direction: column;
    gap: 13px;
    margin-top: 18px;
    text-align: left;
}
.modal__field select {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.96rem;
    font-family: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-btn);
    transition: border-color .18s ease, background .18s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3c0' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.modal__field select:focus {
    outline: none;
    border-color: var(--cyan);
    background-color: rgba(0, 200, 255, 0.06);
}
.modal__field select option { background: #11173d; color: var(--text); }

/* ------- Nota sutil de oferta en la tarjeta de plan ------- */
.modal__plan-note {
    display: block;
    font-size: 0.66rem;
    line-height: 1.3;
    color: var(--text-dim);
    margin-top: 6px;
}
.modal__plan--best .modal__plan-note { color: var(--cyan); opacity: .85; }

/* ------- Planes desplegables (vista "Contratar el servicio") ------- */
.modal__plan--expandable { cursor: pointer; }
.modal__plan-caret {
    display: block;
    margin-top: 8px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--cyan);
    opacity: .85;
    transition: opacity .18s ease;
}
.modal__plan--expandable[aria-expanded="true"] .modal__plan-caret { opacity: 1; }
.modal__plan-details {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}
.modal__plan-details p { margin: 0; }
