/* ==========================================================================
   Destilerías Manchegas S.C.L. · Hoja de estilos única
   HTML5 + CSS3 puros, sin dependencias externas.
   Índice:
     1. Fuentes                    6. Slider de portada
     2. Variables y reset          7. Secciones, tarjetas, iconos
     3. Tipografía y utilidades    8. Páginas interiores
     4. Efectos de scroll          9. Contacto, contadores y pie
     5. Cabecera y navegación     10. Responsive
   ========================================================================== */


/* 1. FUENTES (Raleway + Open Sans, autoalojadas) --------------------------- */
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/raleway-latin-300-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/raleway-latin-ext-300-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/raleway-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/raleway-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/raleway-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }


/* 2. VARIABLES Y RESET ----------------------------------------------------- */
:root {
    /* Acento cian (como el sitio original) y colores del logotipo */
    --accent:        #1fb6e0;
    --accent-bright: #4fd0f2;   /* sobre fondos oscuros */
    --accent-ink:    #0a7f9f;   /* texto y botones sobre fondo claro */
    --accent-soft:   #e8f7fc;
    --brand:         #9f462e;   /* terracota del logotipo */
    --coral:         #ff7a6b;
    --red:           #d9363e;
    --green:         #1f9d55;

    --ink:           #2a2e33;
    --ink-soft:      #5a6068;
    --bg:            #ffffff;
    --bg-soft:       #f4f6f8;
    --line:          #e3e8ec;

    /* Fondos oscuros: degradado grafito + franjas diagonales + brillo cian */
    --dark-1:        #1d1f22;
    --dark-2:        #34373b;
    --dark-pattern:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 2px, rgba(255, 255, 255, 0) 2px 7px),
        radial-gradient(900px 420px at 90% -10%, rgba(31, 182, 224, .20), rgba(31, 182, 224, 0) 62%),
        radial-gradient(700px 380px at 0% 110%, rgba(255, 122, 107, .10), rgba(255, 122, 107, 0) 60%),
        linear-gradient(135deg, #1d1f22 0%, #34373b 52%, #222427 100%);

    --font-title:    "Raleway", "Segoe UI", system-ui, sans-serif;
    --font:          "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

    --radius:        16px;
    --shadow:        0 14px 40px rgba(25, 35, 45, .12);
    --shadow-sm:     0 6px 18px rgba(25, 35, 45, .08);
    --container:     1180px;
    --header-h:      84px;
    --ease:          cubic-bezier(.2, .7, .2, 1);

    --accent-dark:   #0a7f9f;   /* degradados de botones (no cambia con el tema) */
    --surface:       #ffffff;   /* tarjetas */
    --header-bg:     rgba(255, 255, 255, .94);
    --line-strong:   #cdd4da;
    --link-hover:    #9f462e;
    color-scheme: light;
}

/* MODO OSCURO: se activa con el botón de la cabecera (por defecto siempre claro) */
html[data-theme="dark"] {
    --accent-ink:    #4fd0f2;
    --accent-soft:   rgba(31, 182, 224, .14);
    --ink:           #e8ecef;
    --ink-soft:      #a9b3bb;
    --bg:            #13161a;
    --bg-soft:       #1a1d22;
    --line:          #2b3037;
    --line-strong:   #3b424a;
    --surface:       #1f2329;
    --header-bg:     rgba(22, 25, 29, .92);
    --link-hover:    #ff7a6b;
    --shadow:        0 14px 40px rgba(0, 0, 0, .5);
    --shadow-sm:     0 6px 18px rgba(0, 0, 0, .4);
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 8px);
    -webkit-text-size-adjust: 100%;
}

body {
    transition: background-color .3s, color .3s;
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink);
    background: var(--bg);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--link-hover);
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--accent-dark);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    vertical-align: -.2em;
}


/* 3. TIPOGRAFÍA Y UTILIDADES ----------------------------------------------- */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    font-feature-settings: "lnum";
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 .6em;
    color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }

p {
    margin: 0 0 1.1em;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.lead {
    font-size: 1.15rem;
    color: var(--ink-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: .6rem;
}

/* Título centrado con subrayado: segmento cian sobre línea fina */
.title-line {
    text-align: center;
    position: relative;
    padding-bottom: .75rem;
    margin-bottom: 1.6rem;
}

.title-line::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 190px;
    height: 2px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, var(--accent) 0 55%, var(--line-strong) 55% 100%);
}

.title-line--left {
    text-align: left;
}

.title-line--left::after {
    left: 0;
    transform: none;
}

/* Círculo con icono */
.badge-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 20px rgba(10, 127, 159, .35);
    flex: none;
}

.badge-icon .icon {
    width: 28px;
    height: 28px;
}

.heading-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.heading-icon h2,
.heading-icon h3 {
    margin: 0;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    font-size: .98rem;
    text-decoration: none;
    border: 2px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    box-shadow: 0 8px 22px rgba(10, 127, 159, .30);
    transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}

.btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(10, 127, 159, .38);
}

.btn .icon {
    transition: transform .25s var(--ease);
}

.btn:hover .icon {
    transform: translateX(4px);
}

.btn--ghost {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .7);
    box-shadow: none;
    backdrop-filter: blur(4px);
}

.btn--ghost:hover {
    background: #fff;
    color: #1d2023;
    box-shadow: none;
}

.btn--outline {
    background: transparent;
    color: var(--accent-ink);
    border-color: var(--accent-ink);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--accent-dark);
    color: #fff;
}

/* Botón rojo del protocolo: pasa a verde con el cursor */
.btn-protocol {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    max-width: 330px;
    padding: .95rem 1.2rem;
    border-radius: 6px;
    background: var(--red);
    color: #fff;
    font-family: var(--font);
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.35;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    transition: background .3s, transform .3s var(--ease), box-shadow .3s;
}

.btn-protocol:hover,
.btn-protocol:focus-visible {
    background: var(--green);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(31, 157, 85, .45);
}

.btn-protocol .icon {
    width: 1.8rem;
    height: 1.8rem;
}


/* 4. EFECTOS DE SCROLL ----------------------------------------------------- */
/* Sin JavaScript todo es visible; con JS los elementos aparecen al entrar en pantalla */
.js [data-reveal] {
    opacity: 0;
    transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.js [data-reveal="up"]    { transform: translateY(40px); }
.js [data-reveal="left"]  { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"]  { transform: scale(.92); }

.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

[data-delay="1"] { transition-delay: .12s !important; }
[data-delay="2"] { transition-delay: .24s !important; }
[data-delay="3"] { transition-delay: .36s !important; }
[data-delay="4"] { transition-delay: .48s !important; }

/* Línea de los títulos: se dibuja al aparecer */
.js .title-line::after {
    width: 0;
    transition: width 1s .3s var(--ease);
}

.js .title-line.is-in::after {
    width: 190px;
}

/* Imágenes con zoom suave y desplazamiento paralaje */
.media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
}

.media--tall {
    aspect-ratio: 3 / 4;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.js .media img,
.js .hero__img {
    transform: translate3d(0, var(--py, 0px), 0) scale(1.14);
    will-change: transform;
}


/* 5. CABECERA Y NAVEGACIÓN ------------------------------------------------- */
.topbar {
    background: var(--dark-pattern);
    color: #d3d9de;
    font-size: .82rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 36px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
}

.topbar a:hover {
    color: var(--accent-bright);
}

.topbar__info {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.topbar__info span,
.topbar__info a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s;
}

.site-header.is-scrolled {
    box-shadow: 0 8px 28px rgba(25, 35, 45, .12);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 1.5rem;
    transition: min-height .3s;
}

.is-scrolled .navbar {
    min-height: 66px;
}

.brand img {
    height: 58px;
    width: auto;
    transition: height .3s;
}

.is-scrolled .brand img {
    height: 46px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: .6rem;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--accent-ink);
    border-radius: 2px;
    content: "";
    position: relative;
    transition: transform .25s, top .25s, background .25s;
}

.nav-toggle span::before { position: absolute; top: -8px; }
.nav-toggle span::after  { position: absolute; top: 8px; }

.nav-toggle[aria-expanded="true"] span          { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before  { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after   { top: 0; transform: rotate(-45deg); }

.nav-list {
    display: flex;
    gap: .2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    position: relative;
    display: block;
    padding: .55rem 1rem;
    color: var(--ink);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: .2rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    color: var(--accent-ink);
}

.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
}


/* Menú activo según <body data-page="..."> (funciona también sin JavaScript) */
body[data-page="index"] .nav-list a[data-nav="index"],
body[data-page="productos"] .nav-list a[data-nav="productos"],
body[data-page="historia"] .nav-list a[data-nav="historia"],
body[data-page="medio-ambiente"] .nav-list a[data-nav="medio-ambiente"] {
    color: var(--accent-ink);
}

body[data-page="index"] .nav-list a[data-nav="index"]::after,
body[data-page="productos"] .nav-list a[data-nav="productos"]::after,
body[data-page="historia"] .nav-list a[data-nav="historia"]::after,
body[data-page="medio-ambiente"] .nav-list a[data-nav="medio-ambiente"]::after {
    transform: scaleX(1);
}


/* 6. SLIDER DE PORTADA ----------------------------------------------------- */
.slider {
    position: relative;
    height: clamp(430px, 66vh, 680px);
    overflow: hidden;
    background: var(--dark-1);
    color: #fff;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 0s 1.2s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease;
}

.slide__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide__img {
    transform-origin: center;
    will-change: transform;
}

/* Efecto Ken Burns: zoom lento con ligero desplazamiento.
   Diapositiva 1: se acerca hacia la izquierda. Diapositiva 2: se aleja desde la derecha.
   Dura más que el tiempo en pantalla (7 s + fundido) para que no se detenga al cambiar. */
.slide--left.is-active .slide__img,
.slide--left.is-leaving .slide__img {
    animation: kenburnsIn 9s linear both;
}

.slide--box.is-active .slide__img,
.slide--box.is-leaving .slide__img {
    animation: kenburnsOut 9s linear both;
}

@keyframes kenburnsIn {
    from { transform: scale(1) translate3d(0, 0, 0); }
    to   { transform: scale(1.2) translate3d(-2.5%, -1.5%, 0); }
}

@keyframes kenburnsOut {
    from { transform: scale(1.2) translate3d(2.5%, 1.5%, 0); }
    to   { transform: scale(1) translate3d(0, 0, 0); }
}

.slide__caption {
    position: absolute;
    z-index: 2;
}

/* Diapositiva 1: texto grande a la izquierda con degradado de lectura */
.slide--left::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(18, 22, 26, .62) 0%, rgba(18, 22, 26, .22) 48%, rgba(18, 22, 26, 0) 75%);
}

.slide--left .slide__caption {
    left: max(1.5rem, calc((100% - var(--container)) / 2));
    bottom: 17%;
    max-width: 640px;
}

.slide__title {
    font-family: var(--font-title);
    font-weight: 300;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.08;
    margin: 0 0 .5rem;
    color: #fff;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .45);
}

.slide__title span {
    display: block;
}

.slide__sub {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}

.slide__sub::before {
    content: "";
    display: inline-block;
    width: 46px;
    height: 2px;
    margin-right: .8rem;
    vertical-align: middle;
    background: var(--accent-bright);
}

/* Diapositiva 2: caja translúcida centrada */
.slide--box .slide__caption {
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: min(92%, 760px);
    padding: 2rem 2.4rem 1.8rem;
    text-align: center;
    background: rgba(28, 31, 34, .74);
    backdrop-filter: blur(6px);
    border-top: 3px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}

.slide--box .slide__title {
    font-size: clamp(1.9rem, 4.4vw, 3.3rem);
    text-shadow: none;
}

.slide--box .slide__sub {
    font-size: clamp(.95rem, 1.7vw, 1.2rem);
    text-shadow: none;
}

.slide--box .slide__sub::before {
    display: none;
}

/* Animación de entrada del texto (se reinicia al activarse la diapositiva) */
.slide.is-active .slide__title span,
.slide.is-active .slide__sub {
    animation: textIn 1s var(--ease) both;
}

.slide.is-active .slide__title span:nth-child(2) { animation-delay: .22s; }
.slide.is-active .slide__sub                     { animation-delay: .5s; }
.slide--box.is-active .slide__caption            { animation: boxIn 1s var(--ease) .15s both, breathe 7s ease-in-out 1.1s forwards; }

/* El bloque de texto se desplaza lentamente mientras se muestra la diapositiva */
.slide--left.is-active .slide__caption           { animation: drift 8s ease-out .6s both; }
.slide--left.is-leaving .slide__caption          { transform: translateX(26px); }
.slide.is-active .slide__sub::before             { animation: lineGrow 1s var(--ease) .7s both; }

/* Salida del texto al cambiar de diapositiva */
.slide.is-leaving .slide__title span             { animation: textOut .9s var(--ease) both; }
.slide.is-leaving .slide__title span:nth-child(2) { animation-delay: .08s; }
.slide.is-leaving .slide__sub                    { animation: textOut .9s var(--ease) .14s both; }
.slide--box.is-leaving .slide__caption           { animation: boxOut .9s var(--ease) both; }

@keyframes drift   { from { transform: none; } to { transform: translateX(26px); } }
@keyframes breathe { from { transform: none; } to { transform: scale(1.035); } }
@keyframes lineGrow { from { width: 0; opacity: 0; } to { width: 46px; opacity: 1; } }
@keyframes textOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateX(64px); } }
@keyframes boxOut  { from { opacity: 1; transform: scale(1.035); } to { opacity: 0; transform: scale(1.1); } }

@keyframes textIn {
    from { opacity: 0; transform: translateX(-44px); }
    to   { opacity: 1; transform: none; }
}

@keyframes boxIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: none; }
}

/* Controles */
.slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    translate: 0 -50%;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background: rgba(20, 24, 28, .35);
    backdrop-filter: blur(4px);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    transition: opacity .3s, background .3s;
}

.slider:hover .slider__arrow,
.slider__arrow:focus-visible {
    opacity: 1;
}

.slider__arrow:hover {
    background: var(--accent-ink);
}

.slider__arrow--prev { left: 1.2rem; }
.slider__arrow--next { right: 1.2rem; }

.slider__arrow .icon {
    width: 26px;
    height: 26px;
}

.slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1.3rem;
    z-index: 5;
    translate: -50% 0;
    display: flex;
    gap: .7rem;
}

.slider__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background .3s, transform .3s;
}

.slider__dot[aria-current="true"] {
    background: var(--accent-bright);
    border-color: var(--accent-bright);
    transform: scale(1.25);
}

.slider__pause {
    position: absolute;
    right: 1.2rem;
    bottom: 1.1rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(20, 24, 28, .4);
    color: #fff;
    cursor: pointer;
    transition: background .3s;
}

.slider__pause:hover {
    background: var(--accent-dark);
}

.slider__pause .icon {
    width: 16px;
    height: 16px;
}

.slider__pause .icon--play,
.slider.is-user-paused .slider__pause .icon--pause {
    display: none;
}

.slider.is-user-paused .slider__pause .icon--play {
    display: block;
}

.slider__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    transform: scaleX(0);
    transform-origin: left;
}

.slider__progress.is-running {
    animation: progress var(--dur, 7000ms) linear forwards;
}

.slider.is-paused .slider__progress {
    animation-play-state: paused;
}

@keyframes progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}


/* 7. SECCIONES, TARJETAS E ICONOS ------------------------------------------ */
.section {
    padding-block: clamp(3.2rem, 7vw, 5.5rem);
    overflow: hidden;
}

.section--soft {
    background:
        radial-gradient(700px 300px at 100% 0, rgba(31, 182, 224, .08), rgba(31, 182, 224, 0) 70%),
        var(--bg-soft);
}

/* Fondo oscuro con franjas y degradado */
.section--dark {
    background: var(--dark-pattern);
    color: #d6dce1;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section__head {
    max-width: 760px;
    margin: 0 auto 2.6rem;
    text-align: center;
}

.section__head .badge-icon {
    margin-bottom: 1rem;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.8rem, 5vw, 4.5rem);
    align-items: center;
}

.split--reverse > :first-child {
    order: 2;
}

/* Tarjetas con icono */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.card {
    position: relative;
    padding: 2.2rem 1.8rem 1.9rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(90deg, var(--accent), var(--coral));
    transform: scaleX(0);
    transition: transform .4s var(--ease);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card .badge-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 1.2rem;
    background: var(--accent-soft);
    color: var(--accent-ink);
    box-shadow: inset 0 0 0 2px rgba(31, 182, 224, .35);
    transition: background .35s, color .35s, transform .5s var(--ease);
}

.card .badge-icon .icon {
    width: 42px;
    height: 42px;
}

.card:hover .badge-icon {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    transform: rotateY(360deg);
}

.card p {
    color: var(--ink-soft);
    font-size: .95rem;
}

.card .more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    text-decoration: none;
}

.card .more .icon {
    transition: transform .25s var(--ease);
}

.card .more:hover .icon {
    transform: translateX(5px);
}

/* Listas con icono */
.iconlist {
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
    display: grid;
    gap: .9rem;
}

.iconlist li {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.iconlist .badge-icon {
    color: #fff;
    width: 42px;
    height: 42px;
    box-shadow: none;
}

.iconlist .badge-icon .icon {
    width: 21px;
    height: 21px;
}

.iconlist strong {
    display: block;
    font-family: var(--font-title);
    color: var(--ink);
}

.iconlist div span {
    color: var(--ink-soft);
    font-size: .95rem;
}

/* Etiquetas con check */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.chips li {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .85rem .3rem .6rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: .88rem;
    font-weight: 600;
}

.chips .icon {
    width: 1em;
    height: 1em;
}

/* Cifras */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    text-align: center;
}

.stat {
    padding: 1.8rem 1rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: transform .35s var(--ease), background .35s;
}

.stat:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .09);
}

.stat .icon {
    width: 40px;
    height: 40px;
    color: var(--accent-bright);
    margin: 0 auto .6rem;
}

.stat strong {
    display: block;
    font-family: var(--font-title);
    font-weight: 300;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.1;
    color: #fff;
}

.stat span {
    font-size: .95rem;
    color: #b9c2c9;
}


.funding {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.6rem;
    align-items: start;
}

.funding figure {
    margin: 0;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.funding img {
    width: 100%;
    background: #fff;
    border-radius: 8px;
}

.funding figcaption {
    margin-top: .8rem;
    font-size: .92rem;
    color: var(--ink-soft);
}

/* 8. PÁGINAS INTERIORES ---------------------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 330px;
    display: flex;
    align-items: center;
    background: var(--dark-1);
}

.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(20, 23, 27, .86) 0%, rgba(20, 23, 27, .5) 55%, rgba(31, 182, 224, .18) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-block: 3.5rem;
}

.hero h1 {
    color: #fff;
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0;
}

.hero .eyebrow {
    color: var(--accent-bright);
}

.crumbs {
    margin-top: .8rem;
    font-size: .9rem;
    color: #cdd5db;
}

.product {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: clamp(1.8rem, 4vw, 3.8rem);
    align-items: center;
    padding-block: 2.8rem;
    border-bottom: 1px solid var(--line);
}

.product:last-of-type {
    border-bottom: 0;
}

.product:nth-of-type(even) {
    grid-template-columns: 7fr 5fr;
}

.product:nth-of-type(even) .media {
    order: 2;
}

.product .media {
    aspect-ratio: 5 / 6;
}

.product h3 {
    margin-top: 1.4rem;
    color: var(--accent-ink);
}

.prose {
    max-width: 780px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.gallery .media {
    aspect-ratio: 3 / 2;
}

.legal {
    max-width: 820px;
}

.legal h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal h2 {
    font-size: 1.45rem;
    margin-top: 2rem;
}


/* Tablas dentro de los textos legales */
.legal table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.4rem;
    font-size: .93rem;
}

.legal th,
.legal td {
    padding: .6rem .7rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid var(--line);
}

.legal th {
    background: var(--bg-soft);
    font-family: var(--font-title);
}

.legal .updated {
    margin-top: 2rem;
    font-size: .88rem;
    color: var(--ink-soft);
}

/* Botón claro / oscuro */
.theme-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: border-color .25s, color .25s, transform .4s var(--ease);
}

.theme-toggle:hover {
    color: var(--accent-ink);
    border-color: var(--accent);
    transform: rotate(18deg);
}

.theme-toggle .icon {
    width: 21px;
    height: 21px;
}

.theme-toggle .icon--sun,
html[data-theme="dark"] .theme-toggle .icon--moon {
    display: none;
}

html[data-theme="dark"] .theme-toggle .icon--sun {
    display: block;
}

/* Ventana emergente de los textos legales */
.modal {
    width: min(920px, 94vw);
    height: min(86vh, 820px);
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
    overflow: hidden;
}

.modal::backdrop {
    background: rgba(10, 12, 15, .66);
    backdrop-filter: blur(3px);
}

.modal[open] {
    animation: modalIn .35s var(--ease);
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

.modal iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal__close {
    position: absolute;
    top: .7rem;
    right: .9rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--accent-dark);
    color: #fff;
    cursor: pointer;
    transition: background .25s, transform .3s var(--ease);
}

.modal__close:hover {
    background: var(--red);
    transform: rotate(90deg);
}

.modal-open {
    overflow: hidden;
}

/* Página mostrada dentro de la ventana emergente: sin cabecera ni pie */
.is-embedded .topbar,
.is-embedded .site-header,
.is-embedded .contact,
.is-embedded .counters,
.is-embedded .certs,
.is-embedded .site-footer,
.is-embedded .to-top,
.is-embedded .skip-link {
    display: none;
}

.is-embedded .section {
    padding-block: 2.2rem 2.6rem;
}

/* 9. CONTACTO, CONTADORES Y PIE -------------------------------------------- */
.contact {
    overflow: hidden;
    background: var(--dark-pattern);
    color: #d6dce1;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}

.contact__box h3 {
    position: relative;
    margin-bottom: 1.6rem;
    padding-bottom: .7rem;
    font-weight: 300;
    font-size: 1.55rem;
    color: #fff;
}

.contact__box h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 190px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0 55%, rgba(255, 255, 255, .45) 55% 100%);
    height: 2px;
}

.contact__row {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    margin-bottom: 1.1rem;
}

.contact__row > .icon {
    width: 38px;
    height: 38px;
    padding-right: 14px;
    box-sizing: content-box;
    border-right: 1px solid var(--accent);
    color: #fff;
}

.contact__row small {
    display: block;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8b959d;
    line-height: 1.4;
}

.contact__row strong {
    font-size: 1.1rem;
    color: #fff;
}

.contact__phone {
    text-decoration: none;
    color: #fff;
}

.contact__phone:hover {
    color: var(--accent-bright);
}

.contact address {
    font-style: normal;
    color: #fff;
    margin-bottom: 1rem;
}

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

.contact__links a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .25rem 0;
    color: #cfd6dc;
    text-decoration: none;
}

.contact__links a:hover {
    color: var(--accent-bright);
}

/* Contadores con anillo */
.counters {
    background: linear-gradient(180deg, #1a1c1f, #222427);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-block: 2.8rem;
}

.counters__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.counter {
    color: #cfd6dc;
}

.ring {
    position: relative;
    width: 116px;
    height: 116px;
    margin: 0 auto 1rem;
}

.ring svg.ring__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring circle {
    fill: none;
    stroke-width: 3;
}

.ring .ring__track {
    stroke: rgba(255, 255, 255, .1);
}

.ring .ring__bar {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 40;
}

.js .ring .ring__bar {
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1.8s .2s var(--ease);
}

.js .counter.is-in .ring__bar {
    stroke-dashoffset: 40;
}

.ring > .icon {
    position: absolute;
    left: 50%;
    top: 50%;
    translate: -50% -50%;
    width: 44px;
    height: 44px;
    color: #fff;
    transition: color .3s, transform .4s var(--ease);
}

.counter:hover .ring > .icon {
    color: var(--accent-bright);
    transform: scale(1.12);
}

.counter__num {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1.7rem;
    line-height: 1.2;
    color: var(--coral);
}

.counter__word {
    display: block;
    font-family: var(--font-title);
    font-weight: 300;
    font-size: 1.7rem;
    line-height: 1.1;
    text-transform: uppercase;
    color: #cfd6dc;
}

.counter__word em {
    position: relative;
    display: block;
    width: max-content;
    margin: .1rem auto 0;
    padding-bottom: .35rem;
    font-style: normal;
    font-size: 1.1rem;
    text-transform: lowercase;
    color: var(--accent-bright);
}

/* Línea con brillo en movimiento que destaca la palabra */
.counter__word em::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(79, 208, 242, .25), var(--accent-bright), var(--coral), var(--accent-bright), rgba(79, 208, 242, .25));
    background-size: 220% 100%;
    animation: shine 2.6s linear infinite;
}

.js .counter__word em::after {
    transform: scaleX(0);
    transition: transform .9s .5s var(--ease);
}

.js .counter.is-in .counter__word em::after {
    transform: scaleX(1);
}

@keyframes shine {
    from { background-position: 100% 0; }
    to   { background-position: -120% 0; }
}

.counter__label {
    display: block;
    margin-top: .2rem;
    font-size: .8rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9aa4ac;
}

/* Sellos + botón del protocolo en una fila */
.certs {
    overflow: hidden;
    background: var(--dark-pattern);
    padding-block: 2.6rem;
}

.certs__row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.6rem 2rem;
}

.certs__row img {
    width: 176px;
    height: 176px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
    transition: transform .4s var(--ease);
}

.certs__row img:hover {
    transform: scale(1.06) rotate(-3deg);
}

.site-footer {
    background: #17181a;
    color: #aab3ba;
    font-size: .85rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--accent-bright);
}

.footer__bottom {
    padding-block: 1.3rem;
    display: flex;
    justify-content: space-between;
    gap: .6rem 1.5rem;
    flex-wrap: wrap;
}

.footer__legal {
    display: flex;
    gap: .4rem 1.1rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 60;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity .3s, transform .3s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

.to-top:hover {
    color: #fff;
    transform: translateY(-3px);
}


/* 10. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 960px) {
    .cards,
    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats,
    .counters__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 820px) {
    :root {
        --header-h: 72px;
    }

    /* Móvil: logotipo principal centrado, menú a la derecha */
    .navbar {
        display: grid;
        grid-template-columns: 52px 1fr 52px;
        gap: .5rem;
    }

    .brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
    }

    .brand img {
        height: 48px;
    }

    .is-scrolled .brand img {
        height: 42px;
    }

    .nav-toggle {
        display: block;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .theme-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .js .nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .5rem 1.25rem 1.2rem;
        display: none;
    }

    .js .nav.is-open {
        display: block;
        animation: menuIn .3s var(--ease);
    }

    @keyframes menuIn {
        from { opacity: 0; transform: translateY(-10px); }
        to   { opacity: 1; transform: none; }
    }

    .nav-list {
        flex-direction: column;
        text-align: center;
    }

    .nav-list a {
        padding: .8rem 1rem;
        font-size: 1.05rem;
    }

    .nav-list a::after {
        left: 35%;
        right: 35%;
    }

    .no-js .nav {
        grid-column: 1 / -1;
    }

    .no-js .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .split,
    .product,
    .product:nth-of-type(even) {
        grid-template-columns: 1fr;
    }

    .split--reverse > :first-child,
    .product:nth-of-type(even) .media {
        order: 0;
    }

    .product .media {
        aspect-ratio: 4 / 3;
    }

    .gallery,
    .funding {
        grid-template-columns: 1fr;
    }

    /* En móvil desaparece la franja de portada (foto + fondo oscuro) de las páginas interiores:
       solo queda el título de la página sobre el fondo normal */
    .hero {
        min-height: 0;
        background: none;
        color: var(--ink);
    }

    .hero::after,
    .hero__img {
        display: none;
    }

    .hero__content {
        padding-block: 1.6rem 0;
    }

    .hero h1 {
        color: var(--ink);
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .hero .eyebrow {
        color: var(--accent-ink);
    }

    /* En móvil no se muestra el pase de diapositivas de INICIO */
    .slider {
        display: none;
    }

    .slider__arrow {
        display: none;
    }

    .slide--left .slide__caption {
        bottom: 22%;
    }

    .slide--box .slide__caption {
        padding: 1.4rem 1.2rem 1.2rem;
    }
}

@media (max-width: 600px) {
    .cards,
    .contact__grid {
        grid-template-columns: 1fr;
    }

    .topbar__info .topbar__hours {
        display: none;
    }

    .counters__grid {
        gap: 2rem 1rem;
    }

    .certs__row img {
        width: 140px;
        height: 140px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    /* Se reducen los efectos de scroll y de interfaz; el slider de portada mantiene su fundido y texto animado */
    *:not(.slider):not(.slider *),
    *:not(.slider):not(.slider *)::before,
    *:not(.slider):not(.slider *)::after {
        animation: none !important;
        transition: none !important;
    }

    .js [data-reveal],
    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    .js .media img,
    .js .hero__img {
        transform: none;
    }

    .js .counter .ring__bar {
        stroke-dashoffset: 40;
    }

    .js .counter__word em::after {
        transform: none;
    }
}

@media print {
    .topbar,
    .site-header,
    .slider__arrow,
    .to-top {
        display: none;
    }
}
