/* ===============
   LANDING SMARTBAND ONE (pages/es/smartbands.php)
   Prefijo sb-: clases propias de esta página. Mobile first.
   =============== */

.sb-landing {
    --sb-negro: #000;
    --sb-texto: #1d1d1f;
    --sb-texto-suave: #6e6e73;
    --sb-gris: #f5f5f7;
    --sb-azul: var(--bs-primary, #41b6e6);
    --sb-azul-claro: #a3e1f7;
    --sb-comprar-texto: #00121a;
    --sb-radio: 24px;
    --sb-sombra: 0 30px 60px rgba(0, 0, 0, 0.25);

    font-family: 'Sora', sans-serif;
    color: var(--sb-texto);
    overflow-x: clip;
}

/* styles.css da tamaño, márgenes y color a los títulos con ".seccion-pagina h1/h2", que envuelve todas las páginas.
   Aquí los títulos heredan el color de su sección y las clases de título van con .sb-landing delante para mandar. */
.sb-landing h1,
.sb-landing h2,
.sb-landing h3 {
    color: inherit;
}

/* ===============
   FONDOS DE SECCIÓN
   =============== */

.sb-seccion {
    padding: 4.5rem 0;
}

.sb-claro {
    background: #fff;
}

.sb-gris {
    background: var(--sb-gris);
}

.sb-oscuro {
    background: var(--sb-negro);
    color: #f5f5f7;
}

.sb-oscuro .sb-texto,
.sb-oscuro .sb-aviso {
    color: #a1a1a6;
}

/* ===============
   TIPOGRAFÍA
   =============== */

.sb-etiqueta {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ff8a7a;
}

.sb-etiqueta--azul {
    color: var(--sb-azul);
}

.sb-landing .sb-titulo {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.sb-landing .sb-titulo--medio {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.sb-texto {
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    line-height: 1.55;
    color: var(--sb-texto-suave);
    max-width: 38rem;
}

.sb-texto--centrado {
    margin-left: auto;
    margin-right: auto;
}

.sb-aviso {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--sb-texto-suave);
}

/* ===============
   BOTONES Y PRECIO
   =============== */

.sb-boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 48px;
    padding: 0.75rem 2rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.sb-boton:hover {
    transform: translateY(-2px);
}

.sb-boton:focus-visible {
    outline: 3px solid var(--sb-azul-claro);
    outline-offset: 3px;
}

/* Un único color de compra en toda la página: azul de marca con texto oscuro (contraste AA) */
.sb-boton--comprar {
    background: var(--sb-azul);
    color: var(--sb-comprar-texto);
    box-shadow: 0 8px 24px rgba(65, 182, 230, 0.35);
}

.sb-boton--comprar:hover {
    background: #5cc4ee;
    color: var(--sb-comprar-texto);
}

.sb-boton--secundario {
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.sb-boton--secundario:hover {
    color: #fff;
    border-color: #fff;
}

.sb-boton--oscuro {
    color: var(--sb-texto);
    border-color: rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
}

.sb-boton--oscuro:hover {
    color: var(--sb-texto);
    border-color: var(--sb-texto);
}

.sb-boton--grande {
    min-height: 56px;
    padding: 1rem 3.5rem;
    font-size: 1.2rem;
}

.sb-boton--pequeno {
    min-height: 40px;
    padding: 0.4rem 1.4rem;
    font-size: 0.95rem;
}

.sb-enlace {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.5rem;
    font-weight: 600;
    color: #1580ad;
    text-decoration: none;
}

.sb-enlace:hover {
    text-decoration: underline;
}

.sb-precio {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 2rem;
}

.sb-precio--centrado {
    align-items: center;
}

.sb-precio__actual {
    font-size: 2.25rem;
    font-weight: 700;
}

.sb-precio__nota {
    font-size: 0.9rem;
    color: #a1a1a6;
}

/* ===============
   1. HERO
   =============== */

.sb-hero {
    padding: 2rem 0 4rem;
    min-height: calc(100svh - 105px);
    display: flex;
    align-items: center;
}

/* El H1 agrupa la categoría (etiqueta) y el nombre; no tiene estilo propio */
.sb-landing .sb-hero__h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: inherit;
    line-height: inherit;
}

.sb-hero__h1 .sb-hero__titulo {
    display: block;
}

.sb-landing .sb-hero__titulo {
    font-size: clamp(3rem, 11vw, 6.5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: #f5f5f7;
}

.sb-hero__titulo span {
    background: linear-gradient(90deg, var(--sb-azul), var(--sb-azul-claro));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sb-hero__claim {
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: #f5f5f7;
}

/* En el hero, el lema va directamente encima del precio */
.sb-hero .sb-hero__claim {
    margin-bottom: 1.75rem;
}

/* "Sin suscripción": diferencial frente a la competencia, visible junto al precio en todas las composiciones */
.sb-hero__sin-cuota {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: -1rem 0 1.75rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(163, 225, 247, 0.4);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--sb-azul-claro);
}

.sb-hero--claro .sb-hero__sin-cuota {
    border-color: rgba(21, 128, 173, 0.35);
    color: #1580ad;
}

.sb-hero__botones {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.sb-hero__producto {
    display: block;
    max-width: 520px;
    margin: 0 auto;
}

.sb-hero__producto img {
    width: 100%;
    height: auto;
    transform: translateY(calc(var(--sb-scroll, 0) * -60px)) scale(calc(1 + var(--sb-scroll, 0) * 0.08));
    animation: sb-entrada-producto 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes sb-entrada-producto {
    from {
        opacity: 0;
        filter: blur(12px);
        scale: 1.12;
    }
    to {
        opacity: 1;
        filter: blur(0);
        scale: 1;
    }
}

/* ===============
   1. HERO: COMPOSICIONES EN PRUEBAS (pages/es/smartbands/hero-N.php)
   Al elegir una, se borran las demás.
   =============== */

/* Hero claro (3 y 6): fondo gris muy claro y textos oscuros. Las fotos tienen fondo blanco y se funden con multiply */
.sb-hero--claro {
    background: var(--sb-gris);
    color: var(--sb-texto);
}

.sb-landing .sb-hero--claro .sb-hero__titulo,
.sb-hero--claro .sb-hero__claim {
    color: var(--sb-texto);
}

.sb-hero--claro .sb-hero__titulo span {
    background-image: linear-gradient(90deg, #1580ad, var(--sb-azul));
}

.sb-hero--claro .sb-etiqueta {
    color: #c8402c;
}

.sb-hero--claro .sb-precio__nota {
    color: var(--sb-texto-suave);
}

.sb-hero--claro .sb-boton--secundario {
    color: var(--sb-texto);
    border-color: rgba(0, 0, 0, 0.2);
}

.sb-hero--claro .sb-boton--secundario:hover {
    color: var(--sb-texto);
    border-color: var(--sb-texto);
}

.sb-hero__producto--claro img {
    mix-blend-mode: multiply;
}

/* Hero 2: producto sangrado. En móvil, grande arriba; en escritorio, a la derecha cortado por el borde */
.sb-hero--partida,
.sb-hero--foto {
    position: relative;
    overflow: hidden;
    flex-direction: column;
}

.sb-hero--partida .container,
.sb-hero--foto .container {
    position: relative;
    width: 100%;
}

.sb-hero__producto--sangrado {
    width: 120vw;
    max-width: none;
    margin: -3rem 0 -2rem -10vw;
}

/* Hero 3: móvil con la app y la pulsera delante */
.sb-hero__conjunto {
    position: relative;
    width: min(100%, 360px);
    margin: 0 auto;
}

.sb-landing .sb-hero__movil {
    width: 62%;
    margin: 0 0 0 auto;
}

.sb-hero__pulsera {
    position: absolute;
    left: -6%;
    bottom: -8%;
    width: 78%;
    height: auto;
    mix-blend-mode: multiply;
}

/* Hero 4: foto a sangre. En móvil, arriba con fundido a negro; en escritorio, a la derecha con fundido lateral */
.sb-hero--foto {
    padding-top: 0;
}

.sb-hero__fondo {
    display: block;
    width: 100%;
    height: 52svh;
    object-fit: cover;
    object-position: 60% 50%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.sb-hero--foto .container {
    margin-top: -3rem;
}

/* Hero 5: el lema es el titular y el producto va entre el lema y la compra */
/* El producto lleva transform (parallax) y se pintaría encima del texto que solapa: todo en el mismo plano, manda el orden */
.sb-hero--lema .container > * {
    position: relative;
    z-index: 1;
}

.sb-landing .sb-hero__lema {
    max-width: 14em;
    margin: 0 auto;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: #f5f5f7;
}

.sb-hero--lema .sb-hero__producto {
    max-width: 400px;
    margin: -1rem auto -2.5rem;
}

.sb-landing .sb-hero__titulo--pequeno {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

.sb-hero .sb-hero__botones--centrados {
    justify-content: center;
}

@media (min-width: 992px) {
    .sb-hero__producto--sangrado {
        position: absolute;
        top: 50%;
        right: -12vw;
        width: min(68vw, 1150px);
        margin: 0;
        transform: translateY(-50%);
    }

    .sb-hero--foto {
        justify-content: center;
    }

    .sb-hero__fondo {
        position: absolute;
        top: 0;
        right: 0;
        width: 60%;
        height: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 35%);
        mask-image: linear-gradient(to right, transparent, #000 35%);
    }

    .sb-hero--foto .container {
        margin-top: 0;
    }

    .sb-hero__conjunto {
        width: min(100%, 440px);
    }
}

/* ===============
   SELECTOR DE VARIANTES (solo entornos de pruebas, pages/es/smartbands/selector-variantes.php)
   =============== */

.sb-variantes {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 1030;
    max-width: calc(100vw - 2rem);
    border-radius: 14px;
    background: rgba(28, 28, 30, 0.94);
    color: #f5f5f7;
    font:
        13px/1.3 system-ui,
        sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sb-variantes summary {
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.sb-variantes__formulario {
    display: grid;
    gap: 0.5rem;
    padding: 0 0.9rem 0.9rem;
}

.sb-variantes label {
    display: grid;
    gap: 0.2rem;
}

.sb-variantes select {
    width: min(340px, calc(100vw - 4rem));
    padding: 0.3rem;
    border-radius: 8px;
    font-size: 13px;
}

.sb-variantes button {
    justify-self: start;
    padding: 0.3rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--bs-primary, #41b6e6);
    color: #00121a;
    font-weight: 600;
}

.sb-variantes--js button {
    display: none;
}

/* ===============
   1. SIN PANTALLA Y DISEÑO
   =============== */

.sb-foto {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--sb-radio);
}

.sb-puntos {
    list-style: none;
    padding: 0;
    margin: 2rem 0 0;
}

.sb-puntos li {
    padding: 1rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 1.05rem;
    color: var(--sb-texto-suave);
}

.sb-puntos strong {
    display: block;
    font-size: 1.2rem;
    color: var(--sb-texto);
}

.sb-correa {
    margin: 0;
}

.sb-correa figcaption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-weight: 600;
}

.sb-muestra {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.sb-muestra--negro {
    background: #1c1c1e;
}

.sb-muestra--beige {
    background: #e3d5bf;
}

/* ===============
   2. LO QUE MIDE (BENTO)
   =============== */

.sb-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.sb-tarjeta {
    background: var(--sb-gris);
    border-radius: var(--sb-radio);
    padding: 1.5rem;
}

.sb-tarjeta--ancha {
    grid-column: 1 / -1;
}

.sb-tarjeta__icono {
    display: block;
    font-size: 2rem;
    color: var(--sb-azul);
    margin-bottom: 1rem;
}

.sb-landing .sb-tarjeta__titulo {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.sb-tarjeta__texto {
    font-size: 0.95rem;
    color: var(--sb-texto-suave);
    margin: 0;
}

.sb-tarjeta--orientativa {
    background: transparent;
    border: 1px dashed rgba(0, 0, 0, 0.18);
    text-align: center;
}

.sb-tarjeta__lista {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* ===============
   2. TU NOCHE Y CIFRAS
   =============== */

.sb-noche {
    background: radial-gradient(ellipse at 30% 50%, #10213a 0%, var(--sb-negro) 70%);
}

.sb-cifra {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    background: linear-gradient(180deg, var(--sb-texto), #4a4a4f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sb-cifra__texto {
    color: var(--sb-texto-suave);
    font-weight: 500;
}

/* ===============
   MARCO DE MÓVIL
   =============== */

.sb-movil {
    position: relative;
    width: min(300px, 78vw);
    aspect-ratio: 600 / 1300;
    margin: 0 auto;
    border: 10px solid #1c1c1e;
    border-radius: 44px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--sb-sombra);
}

.sb-movil img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sb-movil--pequeno {
    width: min(260px, 70vw);
}

/* ===============
   3. LA APP
   Móvil: carrusel con scroll-snap. Escritorio: móvil fijo y pantallas que cambian con el scroll.
   =============== */

.sb-app [data-sb-carrusel] {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sb-app [data-sb-carrusel]::-webkit-scrollbar {
    display: none;
}

.sb-app__pantalla {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.sb-app__puntos {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.sb-app__puntos span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.sb-app__puntos span.sb-activo {
    background: var(--sb-azul);
    transform: scale(1.3);
}

.sb-app__pasos {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sb-app__paso h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.sb-app__paso p {
    font-size: 1.1rem;
    color: var(--sb-texto-suave);
}

/* En móvil solo se ve el texto de la pantalla activa (sin JS, se ven todos) */
@media (max-width: 991.98px) {
    .sb-js .sb-app__paso {
        display: none;
        text-align: center;
    }

    .sb-js .sb-app__paso.sb-activo {
        display: block;
    }

    .sb-app__pasos + .sb-boton {
        display: flex;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (min-width: 992px) {
    .sb-app__fijo {
        position: sticky;
        top: 110px;
    }

    .sb-app [data-sb-carrusel] {
        display: block;
        overflow: hidden;
    }

    .sb-app__pantalla {
        position: absolute;
        inset: 0;
        opacity: 0;
        transform: scale(1.04);
        transition:
            opacity 0.5s ease,
            transform 0.5s ease;
    }

    .sb-app__pantalla.sb-activo {
        opacity: 1;
        transform: none;
    }

    .sb-app__paso {
        min-height: 55vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0.3;
        transition: opacity 0.4s ease;
    }

    .sb-app__paso.sb-activo {
        opacity: 1;
    }

    .sb-app__paso h3 {
        font-size: 2rem;
    }
}

/* ===============
   4. EL MÉDICO
   =============== */

.sb-medico__puntos {
    list-style: none;
    padding: 0;
    margin: 2rem 0 1.5rem;
}

.sb-medico__puntos li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.sb-medico__puntos i {
    flex: 0 0 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(65, 182, 230, 0.12);
    color: #1580ad;
    font-size: 1.4rem;
}

.sb-medico__puntos strong {
    display: block;
    font-size: 1.1rem;
}

.sb-medico__puntos span {
    color: var(--sb-texto-suave);
}

.sb-medico__certificado {
    font-weight: 600;
    color: var(--sb-texto);
}

.sb-medico__certificado i {
    color: #1580ad;
}

/* ===============
   5. CAJA, ESPECIFICACIONES, COMPRA Y FAQ
   =============== */

.sb-caja {
    list-style: none;
    padding: 0;
    columns: 2;
    font-weight: 500;
}

.sb-caja li {
    margin-bottom: 0.5rem;
}

.sb-caja i {
    color: #1580ad;
}

.sb-specs {
    margin: 0;
}

/* Dos columnas: etiqueta y valor. Los valores largos (sensores, batería) se leen alineados a la izquierda */
.sb-specs div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sb-specs dt {
    font-weight: 600;
}

.sb-specs dd {
    margin: 0;
    color: var(--sb-texto-suave);
}

.sb-compra {
    padding: 5rem 0 6rem;
}

.sb-compra__producto {
    width: min(360px, 80vw);
    height: auto;
    margin-bottom: 1rem;
}

.sb-garantias {
    list-style: none;
    padding: 0;
    margin: 2.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    color: #a1a1a6;
}

.sb-garantias i {
    color: var(--sb-azul);
}

.sb-faq {
    max-width: 820px;
}

.sb-faq .accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
}

.sb-faq .accordion-button:not(.collapsed) {
    background: var(--sb-gris);
    color: var(--sb-texto);
    box-shadow: none;
}

/* ===============
   BARRA DE COMPRA FIJA
   =============== */

.sb-barra {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    color: #f5f5f7;
    transform: translateY(100%);
    transition: transform 0.35s ease;
}

.sb-barra.sb-visible {
    transform: none;
}

.sb-barra__contenido {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sb-barra__nombre {
    font-weight: 600;
    margin-right: auto;
}

/* ===============
   ANIMACIÓN DE APARICIÓN
   Solo se ocultan si hay JS (clase sb-js), para que sin JS se lea todo.
   =============== */

.sb-js .sb-revela {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sb-js .sb-revela.sb-visible {
    opacity: 1;
    transform: none;
}

/* ===============
   ESCRITORIO
   =============== */

@media (min-width: 768px) {
    .sb-bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .sb-tarjeta {
        padding: 2rem;
    }
}

@media (min-width: 992px) {
    .sb-seccion {
        padding: 7rem 0;
    }

    .sb-hero {
        min-height: calc(100vh - 72px);
    }

    .sb-hero__botones {
        justify-content: flex-start;
    }

    .sb-precio:not(.sb-precio--centrado) {
        align-items: flex-start;
    }
}

/* ===============
   MOVIMIENTO REDUCIDO: todo estático
   =============== */

@media (prefers-reduced-motion: reduce) {
    .sb-landing *,
    .sb-landing *::before,
    .sb-landing *::after {
        animation: none !important;
        transition: none !important;
    }

    .sb-js .sb-revela {
        opacity: 1;
        transform: none;
    }

    .sb-hero__producto img {
        transform: none;
    }
}
