/*
Theme Name: SanVic
Theme URI: https://sanvic.mx/
Author: SanVic Soluciones Industriales
Description: Tema de bloques propio para el catálogo y sitio corporativo de SanVic. Dirección visual industrial: imagen protagonista, alternancia de superficies y una composición distinta por sección, con los azules del manual de identidad.
Version: 0.6.1
Requires at least: 6.9
Requires PHP: 8.3
Text Domain: sanvic
*/

/* =========================================================================
   1. Fichas de sistema
   Colores, tipografías, tamaños y espaciados viven en theme.json para que el
   editor y la web compartan los mismos valores. Aquí van los que theme.json
   no puede expresar.
   ====================================================================== */

:root {
    --sv-navy-deep: var(--wp--preset--color--navy-deep, #1a2a49);
    --sv-navy: var(--wp--preset--color--navy, #243565);
    --sv-blue: var(--wp--preset--color--sanvic-blue, #1773ba);
    --sv-blue-dark: var(--wp--preset--color--sanvic-blue-dark, #125e97);
    --sv-blue-deep: var(--wp--preset--color--sanvic-blue-deep, #1d4c9c);
    --sv-mist: var(--wp--preset--color--blue-mist, #a2c7e3);
    --sv-steel-050: var(--wp--preset--color--steel-050, #f4f7f9);
    --sv-steel-100: var(--wp--preset--color--steel-100, #e5ebf0);
    --sv-steel-200: var(--wp--preset--color--steel-200, #d8e0e7);
    --sv-steel-600: var(--wp--preset--color--steel-600, #4a5565);
    --sv-graphite: var(--wp--preset--color--graphite, #20242a);
    --sv-copper: var(--wp--preset--color--copper, #b84e2c);
    --sv-ink: #0e1729;

    --sv-radius-control: 2px;
    --sv-radius-card: 4px;
    --sv-rule: 1px solid var(--sv-steel-200);
    --sv-rule-dark: 1px solid rgba(162, 199, 227, .20);

    --sv-ease: cubic-bezier(.22, .68, .28, 1);
    --sv-ease-out: cubic-bezier(.16, .84, .32, 1);
    --sv-fast: 170ms;
    --sv-base: 260ms;
    --sv-slow: 520ms;
    --sv-scene: 900ms;

    --sv-z-raised: 10;
    --sv-z-sticky: 20;
    --sv-z-overlay: 30;
    --sv-z-float: 50;

    --sv-gutter: clamp(1.25rem, 5vw, 3.5rem);
    --sv-shell: 1280px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--sv-blue);
    outline-offset: 3px;
    border-radius: 1px;
}

.sv-on-dark :where(a, button, input, select, summary, [tabindex]):focus-visible {
    outline-color: var(--sv-mist);
}

/* Enlace nativo de salto al contenido: se le da aspecto, no se duplica. */
a.skip-link.screen-reader-text:focus {
    position: fixed !important;
    top: .5rem;
    left: .5rem;
    width: auto;
    height: auto;
    clip-path: none;
    z-index: var(--sv-z-float);
    padding: .75rem 1.25rem;
    background: var(--sv-navy-deep);
    color: #fff;
    font-family: var(--wp--preset--font-family--body);
    font-size: .9375rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--sv-mist);
    border-radius: var(--sv-radius-control);
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* =========================================================================
   2. Superficies y contenedores
   ====================================================================== */

.sv-shell {
    width: 100%;
    max-width: var(--sv-shell);
    margin-inline: auto;
    padding-inline: var(--sv-gutter);
}

.sv-shell--wide { max-width: 1520px; }

.sv-on-dark {
    position: relative;
    isolation: isolate;
    background-color: var(--sv-navy-deep);
    color: #fff;
}

/* Superficies oscuras del sistema. Se agrupan aquí para que un titular nunca
   herede el color oscuro de theme.json sobre un fondo oscuro. */
.sv-on-dark,
.sv-hero,
.sv-band,
.sv-close,
.sv-archive-head { color: #fff; }

.sv-on-dark :is(h1, h2, h3, h4, h5, h6),
.sv-hero :is(h1, h2, h3, h4, h5, h6),
.sv-band :is(h1, h2, h3, h4, h5, h6),
.sv-close :is(h1, h2, h3, h4, h5, h6),
.sv-archive-head :is(h1, h2, h3, h4, h5, h6),
.sv-line :is(h1, h2, h3, h4, h5, h6) { color: #fff; }

.sv-on-dark p, .sv-on-dark li,
.sv-hero p, .sv-band p, .sv-band li,
.sv-close p, .sv-archive-head p { color: rgba(255, 255, 255, .88); }

.sv-on-dark .sv-muted { color: var(--sv-mist); }

.sv-hero .sv-eyebrow,
.sv-band .sv-eyebrow,
.sv-close .sv-eyebrow,
.sv-archive-head .sv-eyebrow { color: var(--sv-mist); }

.sv-hero .sv-lead,
.sv-band .sv-lead,
.sv-close .sv-lead { color: rgba(255, 255, 255, .85); }

/* Cabecera, contenido y pie van pegados: el diseño usa secciones a todo ancho
   y la separación entre bloques del documento dejaría franjas en blanco. */
.wp-site-blocks > * { margin-block-start: 0; }

.sv-on-light { background-color: #fff; color: var(--sv-graphite); }
.sv-on-tint { background-color: var(--sv-steel-050); color: var(--sv-graphite); }

.sv-section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.sv-section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Retícula de plano técnico. Nunca detrás de texto corrido. */
.sv-blueprint::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(162, 199, 227, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(162, 199, 227, .05) 1px, transparent 1px);
    background-size: 96px 96px, 96px 96px;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 100%);
}

/* =========================================================================
   3. Tipografía
   ====================================================================== */

.sv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    margin: 0 0 1.125rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--sv-blue-dark);
}

.sv-on-dark .sv-eyebrow { color: var(--sv-mist); }

.sv-eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid currentColor;
}

.sv-title {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-weight: 700;
    letter-spacing: -.028em;
    line-height: 1.04;
    text-wrap: balance;
}

.sv-lead {
    max-width: 56ch;
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1.55;
    color: var(--sv-steel-600);
}

.sv-on-dark .sv-lead { color: rgba(255, 255, 255, .85); }

.sv-technical {
    font-family: var(--wp--preset--font-family--technical);
    font-size: .875rem;
    letter-spacing: .01em;
    font-variant-numeric: tabular-nums;
}

.sv-section-head {
    display: grid;
    gap: 1.25rem 3rem;
    margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}

@media (min-width: 920px) {
    .sv-section-head--split {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
        align-items: end;
    }
}

.sv-section-head > * { margin-block: 0; }

/* =========================================================================
   4. Acciones
   ====================================================================== */

.sv-btn,
.sanvic-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    min-height: 50px;
    padding: .875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--sv-radius-control);
    font-family: var(--wp--preset--font-family--body);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--sv-base) var(--sv-ease),
                border-color var(--sv-base) var(--sv-ease),
                color var(--sv-base) var(--sv-ease),
                box-shadow var(--sv-base) var(--sv-ease);
}

.sv-btn--primary,
.sanvic-quote-button {
    background: var(--sv-blue);
    border-color: var(--sv-blue);
    color: #fff;
}

.sv-btn--primary:hover, .sv-btn--primary:focus-visible,
.sanvic-quote-button:hover, .sanvic-quote-button:focus-visible {
    background: var(--sv-blue-dark);
    border-color: var(--sv-blue-dark);
    color: #fff;
    box-shadow: 0 14px 30px -16px rgba(18, 94, 151, .95);
}

.sv-btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .40);
    color: #fff;
}

.sv-btn--ghost:hover, .sv-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
    color: #fff;
}

.sv-btn--outline {
    background: #fff;
    border-color: var(--sv-steel-200);
    color: var(--sv-navy-deep);
}

.sv-btn--outline:hover, .sv-btn--outline:focus-visible {
    border-color: var(--sv-blue);
    color: var(--sv-blue-dark);
}

.sv-btn--small { min-height: 44px; padding: .625rem 1.125rem; font-size: .875rem; }

@media (max-width: 400px) {
    .sv-btn, .sanvic-quote-button { padding-inline: 1.125rem; }
}

.sv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.25rem;
}

.sv-hero .sv-actions { margin-top: 1.75rem; }

.sv-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    color: var(--sv-blue-dark);
}

.sv-link-arrow::after {
    content: "";
    width: 18px;
    height: 8px;
    background: currentColor;
    clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
    transition: transform var(--sv-base) var(--sv-ease);
}

.sv-link-arrow:hover::after, .sv-link-arrow:focus-visible::after { transform: translateX(5px); }
.sv-on-dark .sv-link-arrow { color: var(--sv-mist); }

/* =========================================================================
   5. Cabecera
   ====================================================================== */

.sv-header {
    position: relative;
    z-index: var(--sv-z-sticky);
    background: var(--sv-navy-deep);
    color: #fff;
}

.sv-utility { border-bottom: var(--sv-rule-dark); font-size: .8125rem; }

.sv-utility__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .25rem 1.5rem;
    min-height: 40px;
    padding-block: .375rem;
}

.sv-utility__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-utility__list li,
.sv-utility__places { color: var(--sv-mist); margin: 0; }

.sv-utility a {
    display: inline-flex;
    align-items: center;
    gap: .4375rem;
    min-height: 30px;
    color: var(--sv-mist);
    text-decoration: none;
}

.sv-utility a:hover, .sv-utility a:focus-visible { color: #fff; text-decoration: underline; }
.sv-utility__list p { margin: 0; }

.sv-masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem clamp(1rem, 3vw, 2.5rem);
    min-height: 88px;
    padding-block: 1rem;
}

.sv-brand { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; }

.sv-brand .wp-block-site-logo img {
    height: clamp(34px, 5.4vw, 46px);
    width: auto;
    display: block;
}

.sv-masthead__nav {
    display: flex;
    align-items: center;
    gap: clamp(.5rem, 2vw, 2rem);
    margin-left: auto;
}

.sv-header .wp-block-navigation {
    font-family: var(--wp--preset--font-family--body);
    font-size: .9375rem;
    font-weight: 500;
}

.sv-header .wp-block-navigation a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: rgba(255, 255, 255, .92);
    text-decoration: none;
}

.sv-header .wp-block-navigation a:hover,
.sv-header .wp-block-navigation a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: .45em;
    text-decoration-thickness: 2px;
    text-decoration-color: var(--sv-blue);
}

.sv-header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--sv-navy-deep);
    padding: clamp(1.5rem, 6vw, 3rem);
}

.sv-header .wp-block-navigation__responsive-container.is-menu-open a {
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.5rem;
    font-weight: 700;
    min-height: 56px;
}

.sv-header .wp-block-navigation__responsive-container-open,
.sv-header .wp-block-navigation__responsive-container-close {
    min-width: 48px;
    min-height: 48px;
    color: #fff;
}

.sv-masthead__cta { flex: 0 0 auto; }

@media (max-width: 640px) {
    .sv-masthead__cta .sanvic-quote-button { padding-inline: 1.125rem; min-height: 44px; }
}

/* =========================================================================
   6. Hero con imagen protagonista
   ====================================================================== */

.sv-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--sv-ink);
    color: #fff;
    /* Ocupa buena parte del primer pantallazo sin obligar a desplazarse para
       leer el titular. */
    min-height: clamp(560px, 80svh, 860px);
    display: flex;
    align-items: center;
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.sv-hero__scenes { position: absolute; inset: 0; z-index: -2; }

.sv-hero__scene {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity var(--sv-scene) var(--sv-ease), transform 1500ms var(--sv-ease);
}

.sv-hero__scene.is-active { opacity: 1; transform: scale(1); }

.sv-hero__scene img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 74% 50%;
    display: block;
}

/* Velo: el titular ocupa el lado izquierdo, que debe quedar sólido. */
.sv-hero__veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(14, 23, 41, .96) 0%, rgba(14, 23, 41, .90) 34%, rgba(14, 23, 41, .52) 64%, rgba(14, 23, 41, .26) 100%),
        linear-gradient(0deg, rgba(14, 23, 41, .86) 0%, rgba(14, 23, 41, 0) 46%);
}

@media (max-width: 780px) {
    .sv-hero__veil {
        background:
            linear-gradient(0deg, rgba(14, 23, 41, .97) 34%, rgba(14, 23, 41, .82) 62%, rgba(14, 23, 41, .48) 100%);
    }
    .sv-hero__scene img { object-position: 62% 34%; }
}

.sv-hero__grid { position: relative; display: grid; gap: 2rem; width: 100%; }

/* Un hijo de rejilla o de flex tiene `min-width: auto`: si su contenido no
   cabe, empuja el contenedor y saca la sección de la pantalla. Se fija a cero
   en todas las composiciones del tema. */
.sv-hero__grid > *,
.sv-editorial > *,
.sv-band__inner > *,
.sv-close__inner > *,
.sv-section-head > *,
.sv-places > *,
.sv-steps > *,
.sv-lines > *,
.sv-grid > *,
.sv-footer__grid > * { min-width: 0; }

.sv-hero__intro { max-width: min(40rem, 100%); }
.sv-hero__intro > * { margin-block: 0; }

.sv-hero__title {
    /* Se limita también por la altura del viewport: en una pantalla baja el
       titular no puede empujar las acciones fuera del primer pantallazo. */
    font-size: clamp(2.5rem, min(5.4vw, 8.2svh), 4.75rem);
    margin-block: 0 1.25rem;
    text-shadow: 0 2px 30px rgba(8, 14, 26, .5);
}

.sv-hero__title em { font-style: normal; color: var(--sv-mist); }

.sv-hero__lead {
    max-width: 52ch;
    font-size: clamp(1rem, .92rem + .4vw, 1.1875rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, .88);
}

.sv-hero__foot {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    margin-top: clamp(2.5rem, 6vw, 4rem);
    padding-top: 1.5rem;
    border-top: var(--sv-rule-dark);
}

.sv-facts { display: flex; flex-wrap: wrap; gap: 1.25rem clamp(1.5rem, 4vw, 3rem); margin: 0; }
.sv-fact { display: flex; flex-direction: column-reverse; gap: .25rem; margin: 0; }

.sv-fact__value {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: #fff;
}

.sv-fact__value--word { font-size: clamp(1rem, 1.6vw, 1.1875rem); letter-spacing: .04em; }
.sv-fact__unit { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--sv-mist); }

.sv-fact__label {
    margin: 0;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sv-mist);
}

/* =========================================================================
   7. Controles del carrusel
   ====================================================================== */

.sv-scenes-nav { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }

.sv-scenes-nav__count {
    font-family: var(--wp--preset--font-family--technical);
    font-size: .8125rem;
    color: var(--sv-mist);
    font-variant-numeric: tabular-nums;
    min-width: 3.25rem;
}

.sv-scenes-nav__count b { color: #fff; font-weight: 500; }
.sv-scenes-nav__dots { display: flex; align-items: center; gap: .25rem; }

.sv-dot {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.sv-dot::before {
    content: "";
    width: 30px;
    height: 3px;
    background: rgba(162, 199, 227, .38);
    transition: background-color var(--sv-base) var(--sv-ease), width var(--sv-base) var(--sv-ease);
}

.sv-dot[aria-current="true"]::before { background: var(--sv-blue); width: 44px; }
.sv-dot:hover::before { background: var(--sv-mist); }

.sv-ctrl {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(162, 199, 227, .36);
    border-radius: var(--sv-radius-control);
    color: #fff;
    cursor: pointer;
    transition: background-color var(--sv-base) var(--sv-ease), border-color var(--sv-base) var(--sv-ease);
}

.sv-ctrl:hover, .sv-ctrl:focus-visible { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* =========================================================================
   8. Líneas de producto: jerarquía, no una rejilla plana
   ====================================================================== */

.sv-lines { display: grid; gap: clamp(.75rem, 1.5vw, 1.125rem); grid-template-columns: 1fr; }

@media (min-width: 700px) { .sv-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (min-width: 1060px) {
    .sv-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sv-line--feature { grid-column: span 2; grid-row: span 2; }
}

.sv-line {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 236px;
    padding: 1.5rem;
    border-radius: var(--sv-radius-card);
    background: var(--sv-navy-deep);
    color: #fff;
}

.sv-line--feature { min-height: clamp(310px, 34vw, 500px); padding: clamp(1.75rem, 3vw, 2.5rem); }
.sv-line__media { position: absolute; inset: 0; z-index: -2; }

.sv-line__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 900ms var(--sv-ease);
}

.sv-line::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(14, 23, 41, .95) 6%, rgba(14, 23, 41, .60) 48%, rgba(14, 23, 41, .18) 100%);
    transition: background var(--sv-base) var(--sv-ease);
}

.sv-line--available:hover .sv-line__media img,
.sv-line--available:focus-within .sv-line__media img { transform: scale(1.06); }

.sv-line--available:hover::after,
.sv-line--available:focus-within::after {
    background: linear-gradient(0deg, rgba(18, 94, 151, .92) 4%, rgba(14, 23, 41, .58) 50%, rgba(14, 23, 41, .16) 100%);
}

.sv-line__num {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .75rem;
    letter-spacing: .14em;
    color: var(--sv-mist);
}

.sv-line--feature .sv-line__num { top: 1.75rem; left: clamp(1.75rem, 3vw, 2.5rem); }

.sv-line__name {
    margin: 0 0 .375rem;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: #fff;
}

.sv-line--feature .sv-line__name { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }

.sv-line__text {
    margin: 0;
    max-width: 44ch;
    font-size: .9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, .84);
}

.sv-line__go { margin-top: 1rem; }
.sv-line--soon .sv-line__media img { filter: grayscale(.6) brightness(.66); }

.sv-line__state {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: .75rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sv-mist);
}

.sv-line__name a { color: inherit; text-decoration: none; }
.sv-line__name a::after { content: ""; position: absolute; inset: 0; }

/* =========================================================================
   9. Bloque editorial: imágenes superpuestas a escalas distintas
   ====================================================================== */

.sv-editorial { display: grid; gap: clamp(2.5rem, 6vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }

@media (min-width: 980px) {
    .sv-editorial { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
    .sv-editorial--reverse .sv-editorial__media { order: 2; }
}

.sv-editorial__media { position: relative; }
.sv-editorial__media figure { margin: 0; }
.sv-stack { position: relative; padding-bottom: clamp(3rem, 8vw, 5.5rem); }

.sv-stack__back,
.sv-stack__front { border-radius: var(--sv-radius-card); overflow: hidden; display: block; }

.sv-stack__back { width: 78%; box-shadow: 0 30px 70px -34px rgba(14, 23, 41, .65); }

.sv-stack__front {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 56%;
    border: 6px solid #fff;
    box-shadow: 0 34px 80px -30px rgba(14, 23, 41, .70);
}

.sv-on-dark .sv-stack__front { border-color: var(--sv-navy-deep); }
.sv-stack img { display: block; width: 100%; height: auto; }

/* Dibujo técnico que sale del bloque, como una acotación de plano. */
.sv-blueline {
    position: absolute;
    right: -6%;
    top: -10%;
    width: 44%;
    max-width: 300px;
    color: var(--sv-steel-200);
    pointer-events: none;
    z-index: -1;
}

.sv-on-dark .sv-blueline { color: rgba(162, 199, 227, .26); }

.sv-editorial__body > * { margin-block: 0; }
.sv-editorial__body > * + * { margin-top: 1.25rem; }

.sv-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
    gap: 1px;
    margin-top: 2rem;
    background: var(--sv-steel-200);
    border: var(--sv-rule);
}

.sv-on-dark .sv-metrics { background: rgba(162, 199, 227, .22); border-color: rgba(162, 199, 227, .22); }
.sv-metric { padding: 1.25rem; background: #fff; margin: 0; display: flex; flex-direction: column-reverse; gap: .375rem; }
.sv-on-dark .sv-metric { background: var(--sv-navy-deep); }

.sv-metric__value {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(1.5rem, 2.4vw, 1.875rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--sv-navy-deep);
}

.sv-on-dark .sv-metric__value { color: #fff; }

.sv-metric__label {
    margin: 0;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sv-steel-600);
}

.sv-on-dark .sv-metric__label { color: var(--sv-mist); }

/* =========================================================================
   10. Banda de marca
   ====================================================================== */

.sv-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--sv-ink);
    color: #fff;
    padding-block: clamp(4rem, 9vw, 7rem);
}

.sv-band__media { position: absolute; inset: 0; z-index: -2; }
.sv-band__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sv-band::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(14, 23, 41, .96) 0%, rgba(14, 23, 41, .84) 46%, rgba(14, 23, 41, .58) 100%);
}

.sv-band__inner { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; grid-template-columns: 1fr; }

@media (min-width: 900px) { .sv-band__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.sv-band__inner > * { margin-block: 0; }

.sv-brandmark {
    font-family: var(--wp--preset--font-family--display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1;
    margin: 0 0 1rem;
}

.sv-brand-facts { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }

.sv-brand-facts li {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding-bottom: .75rem;
    border-bottom: var(--sv-rule-dark);
    font-size: .9375rem;
}

.sv-brand-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.sv-brand-facts svg { flex: 0 0 auto; margin-top: .1875rem; color: var(--sv-mist); }

/* =========================================================================
   11. Proceso de cotización con gráficos propios
   ====================================================================== */

.sv-steps { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }

@media (min-width: 860px) { .sv-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sv-step { position: relative; margin: 0; }

.sv-step__art {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: var(--sv-radius-card);
    background: var(--sv-steel-050);
    border: var(--sv-rule);
}

.sv-step__num {
    display: inline-block;
    margin-bottom: .625rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .75rem;
    letter-spacing: .16em;
    color: var(--sv-blue-dark);
}

.sv-step h3 { margin: 0 0 .625rem; font-size: 1.3125rem; }
.sv-step p { margin: 0; font-size: .9375rem; line-height: 1.65; color: var(--sv-steel-600); }

/* =========================================================================
   12. Ubicaciones y cierre
   ====================================================================== */

.sv-places { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }

@media (min-width: 760px) { .sv-places { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sv-place {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: var(--sv-rule);
    border-radius: var(--sv-radius-card);
    background: #fff;
    margin: 0;
}

.sv-place__role {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sv-blue-dark);
}

.sv-place h3 { margin: 0 0 .625rem; font-size: 1.375rem; }
.sv-place address { font-style: normal; font-size: .9375rem; line-height: 1.7; color: var(--sv-steel-600); margin: 0; }

.sv-place__grid {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 132px;
    height: 132px;
    color: var(--sv-steel-200);
    pointer-events: none;
}

.sv-close {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(118deg, var(--sv-navy-deep) 0%, var(--sv-navy) 52%, var(--sv-blue-deep) 100%);
    color: #fff;
    padding-block: clamp(3.5rem, 8vw, 6rem);
}

.sv-close__inner { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; grid-template-columns: 1fr; }

@media (min-width: 900px) { .sv-close__inner { grid-template-columns: minmax(0, 1.3fr) minmax(0, auto); } }

.sv-close__inner > * { margin-block: 0; }
.sv-close h2 { margin: 0 0 .875rem; }
.sv-close__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* =========================================================================
   13. Tarjetas de catálogo
   ====================================================================== */

.sv-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: 1fr; }

@media (min-width: 620px) { .sv-grid--2, .sv-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .sv-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.sv-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: var(--sv-rule);
    border-radius: var(--sv-radius-card);
    overflow: hidden;
    transition: border-color var(--sv-base) var(--sv-ease), box-shadow var(--sv-base) var(--sv-ease);
}

.sv-card:hover, .sv-card:focus-within {
    border-color: var(--sv-blue);
    box-shadow: 0 2px 4px rgba(26, 42, 73, .07), 0 22px 44px -22px rgba(26, 42, 73, .34);
}

.sv-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--sv-navy-deep);
    border-bottom: var(--sv-rule);
}

.sv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--sv-ease); }
.sv-card:hover .sv-card__media img, .sv-card:focus-within .sv-card__media img { transform: scale(1.05); }

.sv-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.375rem; flex: 1 1 auto; }
.sv-card__body > * { margin-block: 0; }

.sv-card__index { font-family: var(--wp--preset--font-family--technical); font-size: .75rem; letter-spacing: .06em; color: var(--sv-steel-600); }

.sv-card__title {
    margin: 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    color: var(--sv-navy-deep);
}

.sv-card__title a { color: inherit; text-decoration: none; }
.sv-card__title a::after { content: ""; position: absolute; inset: 0; }
.sv-card__foot { margin-top: auto; padding-top: .875rem; }

/* Marca de demostración: discreta, no un cartel. */
.sv-demo {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: var(--sv-z-raised);
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .25rem .5rem;
    border-radius: 2px;
    background: rgba(14, 23, 41, .78);
    border: 1px solid rgba(162, 199, 227, .38);
    font-family: var(--wp--preset--font-family--technical);
    font-size: .625rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sv-mist);
}

.sv-demo::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sv-demo--inline { position: static; }

.sv-notice {
    padding: 1rem 1.125rem;
    border: var(--sv-rule);
    border-left: 3px solid var(--sv-blue);
    border-radius: var(--sv-radius-card);
    background: var(--sv-steel-050);
    font-size: .9375rem;
    line-height: 1.6;
    color: var(--sv-steel-600);
}

.sv-notice p { margin: 0; }
.sv-notice strong { color: var(--sv-navy-deep); }

/* =========================================================================
   14. Migas de pan
   ====================================================================== */

.sv-breadcrumb { font-family: var(--wp--preset--font-family--technical); font-size: .75rem; letter-spacing: .06em; }

.sv-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-breadcrumb li { display: flex; align-items: center; gap: .625rem; color: var(--sv-mist); }
.sv-breadcrumb li + li::before { content: "/"; color: rgba(162, 199, 227, .5); }

.sv-breadcrumb a,
.sv-breadcrumb [aria-current="page"] { display: inline-flex; align-items: center; min-height: 26px; color: var(--sv-mist); text-decoration: none; }

.sv-breadcrumb a:hover, .sv-breadcrumb a:focus-visible { color: #fff; text-decoration: underline; }
.sv-breadcrumb [aria-current="page"] { color: #fff; }

/* =========================================================================
   15. Catálogo de WooCommerce
   ====================================================================== */

.sv-archive-head {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--sv-ink);
    color: #fff;
    padding-block: clamp(2.25rem, 5vw, 3.5rem) clamp(3rem, 7vw, 5rem);
}

.sv-archive-head__media { position: absolute; inset: 0; z-index: -2; }
.sv-archive-head__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.sv-archive-head::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(88deg, rgba(14, 23, 41, .96) 0%, rgba(14, 23, 41, .86) 44%, rgba(14, 23, 41, .50) 100%);
}

.sv-archive-head__title { margin: 1.125rem 0 0; font-size: var(--wp--preset--font-size--page-title); }

.sv-archive-head__desc {
    margin-top: 1.125rem;
    max-width: 60ch;
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1.6;
    color: rgba(255, 255, 255, .88);
}

.sv-archive-head__desc p:last-child { margin-bottom: 0; }
.sv-archive-body { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.sv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    border-bottom: var(--sv-rule);
}

.sv-toolbar__count { font-family: var(--wp--preset--font-family--technical); font-size: .8125rem; color: var(--sv-steel-600); margin: 0; }
.sv-toolbar .woocommerce-ordering { float: none; margin: 0; }
.sv-toolbar .woocommerce-result-count { display: none; }

.sv-toolbar select {
    min-height: 44px;
    padding: .5rem 2.25rem .5rem .75rem;
    border: var(--sv-rule);
    border-radius: var(--sv-radius-control);
    background-color: #fff;
    color: var(--sv-navy-deep);
    font-family: var(--wp--preset--font-family--body);
    font-size: .9375rem;
    cursor: pointer;
}

.woocommerce ul.products, ul.products {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 620px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* WooCommerce añade pseudoelementos de clearfix: en una rejilla se convierten
   en celdas vacías. */
.woocommerce ul.products::before, .woocommerce ul.products::after,
ul.products::before, ul.products::after,
.woocommerce div.product::before, .woocommerce div.product::after,
.woocommerce ul.products li.product::before, .woocommerce ul.products li.product::after { display: none !important; }

.woocommerce ul.products li.product, ul.products li.product {
    position: relative;
    display: flex;
    flex-direction: column;
    width: auto !important;
    margin: 0 !important;
    padding: 0;
    float: none !important;
    background: #fff;
    border: var(--sv-rule);
    border-radius: var(--sv-radius-card);
    overflow: hidden;
    transition: border-color var(--sv-base) var(--sv-ease), box-shadow var(--sv-base) var(--sv-ease);
}

.woocommerce ul.products li.product:hover, .woocommerce ul.products li.product:focus-within {
    border-color: var(--sv-blue);
    box-shadow: 0 2px 4px rgba(26, 42, 73, .07), 0 22px 44px -22px rgba(26, 42, 73, .34);
}

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; text-decoration: none; }

.woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0;
    background: var(--sv-navy-deep);
    transition: transform 700ms var(--sv-ease);
}

.woocommerce ul.products li.product:hover img { transform: scale(1.04); }

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin: 0;
    padding: 1.25rem 1.25rem 0;
    font-family: var(--wp--preset--font-family--display);
    font-size: 1.1875rem !important;
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -.015em;
    color: var(--sv-navy-deep);
}

.woocommerce ul.products li.product .sv-loop-meta { padding: .5rem 1.25rem 0; }
.sv-loop-model { display: block; font-family: var(--wp--preset--font-family--technical); font-size: .8125rem; color: var(--sv-steel-600); }
.woocommerce ul.products li.product .price { display: none !important; }
.woocommerce ul.products li.product .sv-loop-foot { margin-top: auto; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .sanvic-quote-button { margin: 1.125rem 1.25rem 1.25rem; align-self: flex-start; }

/* --- Ficha --- */

.sv-product { padding-block: clamp(2.5rem, 6vw, 4rem); }

.woocommerce div.product {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

@media (min-width: 900px) { .woocommerce div.product { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.woocommerce div.product div.images,
.woocommerce div.product div.summary { width: auto !important; float: none !important; margin: 0 !important; }

.woocommerce div.product div.images {
    position: relative;
    border: var(--sv-rule);
    border-radius: var(--sv-radius-card);
    overflow: hidden;
    background: var(--sv-navy-deep);
}

.woocommerce div.product div.images img { display: block; width: 100%; height: auto; }

.woocommerce div.product .product_title {
    margin: .75rem 0 1rem;
    font-family: var(--wp--preset--font-family--display);
    font-size: var(--wp--preset--font-size--section-title) !important;
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -.028em;
    color: var(--sv-navy-deep);
}

.woocommerce div.product .price, .woocommerce div.product p.price { display: none !important; }

.woocommerce div.product .woocommerce-product-details__short-description {
    font-size: var(--wp--preset--font-size--lead);
    line-height: 1.6;
    color: var(--sv-steel-600);
    max-width: 58ch;
}

.woocommerce div.product .product_meta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: var(--sv-rule);
    font-family: var(--wp--preset--font-family--technical);
    font-size: .8125rem;
    color: var(--sv-steel-600);
}

.woocommerce div.product .product_meta > span { display: block; padding-block: .1875rem; }
.sanvic-product-model { margin: 0 0 .25rem; font-family: var(--wp--preset--font-family--technical); font-size: .875rem; color: var(--sv-steel-600); }

.sv-spec { width: 100%; margin: 1.75rem 0 0; border-collapse: collapse; border: var(--sv-rule); font-size: .9375rem; }

.sv-spec caption {
    caption-side: top;
    text-align: left;
    padding-bottom: .625rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sv-steel-600);
}

.sv-spec th, .sv-spec td { padding: .75rem .875rem; text-align: left; border-bottom: var(--sv-rule); vertical-align: top; }
.sv-spec tr:last-child th, .sv-spec tr:last-child td { border-bottom: 0; }
.sv-spec th { width: 44%; background: var(--sv-steel-050); font-weight: 600; color: var(--sv-navy-deep); }
.sv-spec td { font-family: var(--wp--preset--font-family--technical); color: var(--sv-steel-600); }

.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .related,
.woocommerce div.product .upsells { grid-column: 1 / -1; }

.woocommerce div.product .woocommerce-tabs {
    margin-top: clamp(1rem, 3vw, 2rem);
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    border-top: var(--sv-rule);
}

.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 1.5rem; border-bottom: var(--sv-rule); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 1.25rem 0 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    padding: .75rem 0;
    font-family: var(--wp--preset--font-family--body);
    font-weight: 600;
    font-size: .9375rem;
    color: var(--sv-steel-600);
    border-bottom: 2px solid transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--sv-navy-deep); border-bottom-color: var(--sv-blue); }
.woocommerce div.product .related { margin-top: clamp(2rem, 5vw, 3.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: var(--sv-rule); }
.woocommerce div.product .related > h2 { margin: 0 0 clamp(1.25rem, 3vw, 2rem); font-size: var(--wp--preset--font-size--card-title); }

.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error {
    border-top-color: var(--sv-blue);
    background: var(--sv-steel-050);
    font-size: .9375rem;
}

.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before { color: var(--sv-blue); }
.woocommerce .woocommerce-breadcrumb { display: none; }

.sv-docs { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }

.sv-doc {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-height: 52px;
    padding: .75rem 1rem;
    border: var(--sv-rule);
    border-radius: var(--sv-radius-card);
    background: #fff;
    font-size: .9375rem;
    color: var(--sv-steel-600);
}

.sv-doc svg { color: var(--sv-blue-dark); flex: 0 0 auto; }

/* =========================================================================
   16. Pie de página
   ====================================================================== */

.sv-footer {
    position: relative;
    overflow: hidden;
    background: var(--sv-navy-deep);
    color: rgba(255, 255, 255, .82);
    padding-block: clamp(3.5rem, 7vw, 5rem) 0;
}

.sv-footer__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: 1fr; }

@media (min-width: 760px) { .sv-footer__grid { grid-template-columns: 1.45fr repeat(3, 1fr); } }

.sv-footer h2, .sv-footer h3 {
    font-family: var(--wp--preset--font-family--technical);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--sv-mist);
    margin: 0 0 1.125rem;
}

.sv-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; font-size: .9375rem; }
.sv-footer a { display: inline-flex; align-items: center; min-height: 34px; color: rgba(255, 255, 255, .82); text-decoration: none; }
.sv-footer a:hover, .sv-footer a:focus-visible { color: #fff; text-decoration: underline; }
.sv-footer__brand img { height: 38px; width: auto; display: block; margin-bottom: 1.25rem; }
.sv-footer__note { max-width: 40ch; font-size: .9375rem; line-height: 1.65; color: rgba(255, 255, 255, .78); }

.sv-footer__bottom {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-block: 1.25rem;
    border-top: var(--sv-rule-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    font-family: var(--wp--preset--font-family--technical);
    font-size: .75rem;
    color: var(--sv-mist);
}

/* =========================================================================
   17. Acción flotante en móvil
   ====================================================================== */

.sv-floating {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--sv-z-float);
    display: flex;
    gap: .5rem;
    padding: .625rem var(--sv-gutter) calc(.625rem + env(safe-area-inset-bottom, 0px));
    background: rgba(14, 23, 41, .97);
    border-top: 1px solid rgba(162, 199, 227, .28);
    transform: translateY(0);
    transition: transform var(--sv-base) var(--sv-ease);
}

.sv-floating.is-tucked { transform: translateY(115%); }
.sv-floating .sv-btn, .sv-floating .sanvic-quote-button { flex: 1 1 auto; min-height: 46px; padding-inline: 1rem; }
body.sv-has-floating { padding-bottom: 78px; }

@media (min-width: 860px) {
    .sv-floating { display: none; }
    body.sv-has-floating { padding-bottom: 0; }
}

/* =========================================================================
   18. Movimiento
   Cuatro momentos: entrada del hero, cambio de escena, aparición de
   secciones y respuesta de tarjetas y botones. Nada en bucle.
   ====================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .sv-enter {
        opacity: 0;
        transform: translateY(18px);
        animation: sv-enter 720ms var(--sv-ease-out) forwards;
    }

    .sv-enter:nth-child(1) { animation-delay: 60ms; }
    .sv-enter:nth-child(2) { animation-delay: 150ms; }
    .sv-enter:nth-child(3) { animation-delay: 240ms; }
    .sv-enter:nth-child(4) { animation-delay: 330ms; }
    .sv-enter:nth-child(5) { animation-delay: 420ms; }

    .sv-reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity var(--sv-slow) var(--sv-ease-out), transform var(--sv-slow) var(--sv-ease-out);
    }

    .sv-reveal.is-visible { opacity: 1; transform: none; }
    .sv-reveal:nth-child(2) { transition-delay: 80ms; }
    .sv-reveal:nth-child(3) { transition-delay: 160ms; }
    .sv-reveal:nth-child(4) { transition-delay: 240ms; }
    .sv-reveal:nth-child(5) { transition-delay: 320ms; }
    .sv-reveal:nth-child(6) { transition-delay: 400ms; }
}

@keyframes sv-enter { to { opacity: 1; transform: none; } }

/* Con movimiento reducido nada se mueve y nada queda oculto esperando. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }

    .sv-enter, .sv-reveal { opacity: 1 !important; transform: none !important; }
    .sv-hero__scene { transform: none !important; }
}

/* Sin JavaScript el contenido se ve completo igual. */
.no-js .sv-enter,
.no-js .sv-reveal { opacity: 1 !important; transform: none !important; }
.no-js .sv-hero__scene:first-child { opacity: 1; transform: none; }
.no-js .sv-scenes-nav { display: none; }

/* =========================================================================
   19. Editor de bloques
   ====================================================================== */

.editor-styles-wrapper .sv-on-dark,
.editor-styles-wrapper .sv-footer,
.editor-styles-wrapper .sv-hero,
.editor-styles-wrapper .sv-band { color: #fff; }

.editor-styles-wrapper .sv-floating { position: static; transform: none; }
.editor-styles-wrapper .sv-hero { min-height: 0; }

/* =========================================================================
   20. Ajustes de pantalla estrecha
   Comprobado a 360 px: los controles del carrusel no deben empujar la
   sección fuera de la pantalla. Se conservan por encima del mínimo de
   objetivo táctil de WCAG 2.2 AA.
   ====================================================================== */

@media (max-width: 520px) {
    .sv-scenes-nav {
        flex-wrap: wrap;
        gap: .5rem;
        width: 100%;
        justify-content: space-between;
    }

    .sv-scenes-nav__count { min-width: auto; order: 1; }
    .sv-scenes-nav__dots { order: 2; gap: 0; }
    .sv-dot { width: 34px; height: 44px; }
    .sv-dot::before { width: 22px; }
    .sv-dot[aria-current="true"]::before { width: 30px; }
    .sv-ctrl { width: 44px; height: 44px; }

    .sv-hero__foot { gap: 1.25rem; }
    .sv-facts { gap: 1rem 1.5rem; }
}

@media (max-width: 380px) {
    .sv-scenes-nav__count { display: none; }
}

/* El teléfono se inserta con un código corto: su enlace también necesita
   altura de objetivo, esté en la barra de utilidad o en el pie. */
.sv-utility .wp-block-shortcode a,
.sv-footer .wp-block-shortcode a,
.wp-block-shortcode a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
}
