/* ============================================================
   BBVA Soporte Remoto — Ficha de aplicación
   ============================================================ */

:root {
    --navy-950: #021023;
    --navy-900: #072146;
    --navy-800: #0a2c5a;
    --blue-600: #004481;
    --blue-500: #1464a5;
    --aqua: #2dcccd;
    --white: #ffffff;
    --text-hi: #eef6fd;
    --text-mid: rgba(238, 246, 253, .68);
    --text-low: rgba(238, 246, 253, .45);
    --glass: rgba(255, 255, 255, .05);
    --glass-2: rgba(255, 255, 255, .09);
    --line: rgba(255, 255, 255, .11);
    --r-lg: 22px;
    --r-md: 14px;
    --r-sm: 10px;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Sora', 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
    font-family: var(--font-body);
    color: var(--text-hi);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 68, 129, .4), transparent 70%),
        var(--navy-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

.container {
    width: min(1080px, 100% - 48px);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}
.container--narrow { width: min(780px, 100% - 48px); }

::selection { background: var(--aqua); color: var(--navy-900); }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    border-radius: var(--r-sm);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn--aqua {
    background: linear-gradient(135deg, var(--aqua), #5fe3e3);
    color: var(--navy-900);
    box-shadow: 0 10px 26px rgba(45, 204, 205, .3);
}
.btn--aqua:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(45, 204, 205, .42); }

.btn--blue {
    background: var(--blue-600);
    color: var(--white);
}
.btn--blue:hover { background: var(--blue-500); }

.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 15px 28px; font-size: 15.5px; }
.btn--xl { padding: 18px 38px; font-size: 17px; border-radius: 13px; }

:focus-visible {
    outline: 3px solid var(--aqua);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Cabecera ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(7, 33, 70, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 26px;
    height: 76px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--white); }
.brand__logo { width: 88px; height: auto; }
.brand__divider { width: 1px; height: 20px; background: rgba(255, 255, 255, .22); }
.brand__sub { font-size: 14px; color: var(--text-mid); }

.nav { display: flex; gap: 24px; margin-left: auto; }
.nav__link {
    color: var(--text-mid);
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}
.nav__link:hover { color: var(--white); }

/* ---------- Burger y menú móvil ---------- */
.burger {
    display: none;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--glass);
    cursor: pointer;
    position: relative;
    margin-left: auto;
}
.burger span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
    transition: transform .3s ease, top .3s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 46px;
    background: rgba(7, 33, 70, .97);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.mobile-menu__links a {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    color: var(--text-mid);
    padding: 8px 20px;
    transition: color .2s;
}
.mobile-menu__links a:hover { color: var(--aqua); }

/* ---------- Ficha de la app ---------- */
.apphero { position: relative; padding: 160px 0 90px; }
.apphero__card {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 28px;
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 80px rgba(2, 16, 35, .5);
    padding: 56px 48px 48px;
    position: relative;
    overflow: hidden;
}
.apphero__card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--aqua), transparent);
}

.apphero__id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 26px;
}
.app-icon {
    flex-shrink: 0;
    width: 96px; height: 96px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(155deg, var(--navy-800), var(--navy-950));
    border: 1px solid rgba(45, 204, 205, .35);
    box-shadow: 0 0 0 6px rgba(45, 204, 205, .08), 0 18px 44px rgba(2, 16, 35, .55);
    color: var(--white);
}
.app-icon svg { width: 62px; height: auto; }
.apphero__titles { text-align: left; }
.apphero__titles h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.1;
}
.apphero__titles p { font-size: 14.5px; color: var(--text-low); margin-top: 6px; }

.apphero__desc {
    font-size: 16.5px;
    color: var(--text-mid);
    max-width: 520px;
    margin: 0 auto 36px;
}

/* ---------- Selector de plataforma ---------- */
.platform { display: grid; justify-items: center; gap: 18px; }
.platform__switch {
    display: flex;
    gap: 6px;
    background: rgba(2, 16, 35, .55);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
}
.platform__pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 26px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-low);
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.platform__pill svg { width: 17px; height: 17px; }
.platform__pill:hover { color: var(--text-hi); }
.platform__pill.is-active {
    background: var(--white);
    color: var(--navy-900);
    box-shadow: 0 6px 18px rgba(2, 16, 35, .4);
}
.platform__meta { font-size: 13px; color: var(--text-low); }

/* ---------- Secciones ---------- */
.section { position: relative; padding: 90px 0; z-index: 2; }

.section__head { text-align: center; max-width: 560px; margin: 0 auto 52px; }
.section__head h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin: 16px 0 10px;
}
.section__head p { color: var(--text-mid); font-size: 16px; }

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--aqua);
    padding-bottom: 5px;
    border-bottom: 2px solid var(--aqua);
}

/* ---------- Capturas ---------- */
.shots {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    gap: 22px;
    align-items: start;
}
.shot > p {
    text-align: center;
    font-size: 13.5px;
    color: var(--text-low);
    margin-top: 16px;
    max-width: 260px;
    margin-inline: auto;
}
.shot__screen {
    aspect-ratio: 3 / 4.4;
    border-radius: var(--r-lg);
    background: linear-gradient(170deg, var(--navy-800), var(--navy-950));
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(2, 16, 35, .5);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease;
}
.shot:hover .shot__screen { transform: translateY(-6px); border-color: rgba(45, 204, 205, .4); }
.shot--mid .shot__screen { aspect-ratio: 3 / 4.9; border-color: rgba(45, 204, 205, .3); }

.shot__logo { width: 92px; color: var(--white); opacity: .95; }
.shot__screen h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.3;
}
.shot__screen p { font-size: 13px; color: var(--text-low); }
.shot__btn {
    margin-top: 8px;
    background: var(--aqua);
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 999px;
}
.shot__agent {
    display: flex;
    align-items: center;
    gap: 13px;
    text-align: left;
}
.shot__avatar {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-600);
    border: 2px solid rgba(45, 204, 205, .5);
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 800;
}
.shot__agent h3 { font-size: 15.5px; }
.shot__progress {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
    margin: 10px 0 4px;
}
.shot__progress span {
    display: block;
    height: 100%;
    width: 40%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--aqua), #5fe3e3);
    animation: progress 2.4s ease-in-out infinite;
}
@keyframes progress {
    0% { transform: translateX(-110%); }
    60%, 100% { transform: translateX(280%); }
}
.shot__chip {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-low);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 14px;
}
.shot__chip--green {
    color: #4ce699;
    border-color: rgba(46, 227, 134, .35);
    background: rgba(46, 227, 134, .08);
}
.shot__done {
    width: 74px; height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(46, 227, 134, .1);
    border: 2px solid rgba(46, 227, 134, .45);
    color: #4ce699;
}
.shot__done svg { width: 34px; height: 34px; }

/* ---------- Información ---------- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 860px;
    margin: 0 auto 26px;
}
.info-item {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px 22px;
    display: grid;
    gap: 5px;
}
.info-item__label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-low);
}
.info-item__value { font-size: 15.5px; font-weight: 600; }

.info-security {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(45, 204, 205, .06);
    border: 1px solid rgba(45, 204, 205, .25);
    border-radius: var(--r-md);
    padding: 22px 26px;
}
.info-security svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--aqua); margin-top: 2px; }
.info-security p { font-size: 14px; color: var(--text-mid); }
.info-security strong { color: var(--text-hi); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .25s ease, background .25s ease;
}
.faq__item[open] { border-color: rgba(45, 204, 205, .45); background: var(--glass-2); }
.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    padding: 19px 22px;
    font-size: 15px;
    font-weight: 600;
    list-style: none;
    transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--aqua); }
.faq__chevron {
    flex-shrink: 0;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--glass-2);
    color: var(--aqua);
    transition: transform .3s ease, background .3s ease, color .3s ease;
}
.faq__chevron svg { width: 14px; height: 14px; }
.faq__item[open] .faq__chevron { transform: rotate(45deg); background: var(--aqua); color: var(--navy-900); }
.faq__answer { padding: 0 22px 20px; color: var(--text-mid); font-size: 14.5px; max-width: 92%; }

/* ---------- Footer ---------- */
.footer {
    background: var(--navy-950);
    border-top: 1px solid var(--line);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
}
.footer__brand .brand__logo { width: 92px; color: var(--white); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { font-size: 13.5px; color: var(--text-low); transition: color .2s; }
.footer__links a:hover { color: var(--aqua); }
.footer__legal { font-size: 12.5px; color: rgba(238, 246, 253, .35); }

/* ---------- Botón subir ---------- */
.to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 46px; height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--navy-800);
    color: var(--aqua);
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s ease, background .2s ease;
    z-index: 90;
}
.to-top svg { width: 19px; height: 19px; }
.to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--blue-600); color: var(--white); }

/* ---------- Aparición ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .shots { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
    .shot--mid .shot__screen, .shot__screen { aspect-ratio: 3 / 3.6; }
    .info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav, .nav__cta { display: none; }
    .burger { display: block; }
    .apphero { padding: 128px 0 64px; }
    .section { padding: 68px 0; }
    .apphero__card { padding: 40px 26px 36px; }
    .apphero__id { flex-direction: column; gap: 18px; }
    .apphero__titles { text-align: center; }
    .footer__inner { flex-direction: column; text-align: center; }
    .footer__links { justify-content: center; }
}

@media (max-width: 520px) {
    .btn--xl { width: 100%; }
    .platform__switch { width: 100%; }
    .platform__pill { flex: 1; justify-content: center; padding: 11px 10px; }
    .info-grid { grid-template-columns: 1fr; }
    .brand__sub { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
