/* Generado a partir de los archivos de assets/css (ver inc/css-bundle.php).
   No editar a mano: edita el archivo de origen y corre composer build:css */

/* ---- vendor/normalize.css ---- */
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* ---- variables.css ---- */
/* Las fuentes (Raleway y Staatliches) se cargan desde inc/enqueue.php
   (koblenz_fonts_url), no con @import: ver inc/css-bundle.php. */

   /* ==============================================
      VARIABLES CSS
      ============================================== */
   :root {
       /* Fonts */
       --main-font: "Raleway", sans-serif;
       --secondary-font: "Staatliches", sans-serif;
   
       /* Colors */
       --primary: #DA2037;
       --dark-gray: #2f2e2e;
       --ligth-gray: #EBEBEB;
       --white: #ffffff;
       --dark: #000000;

       /* Alto del header fijo. --header-height lo actualiza product-gallery.js
          con el alto real; --header-movil es el alto fijo de la barra en
          móvil (ver header.css) y define dónde empieza el contenido. */
       --header-height: 86px;
       --header-movil: 6rem;
   
       /* Ancho máximo del contenido del sitio (.container y la caja
          interna de los slides del hero, ver hero.css) */
       --container-max: 120rem;

       /* Spacing */
       --spacing-xs: 1rem;
       --spacing-sm: 2rem;
       --spacing-md: 3rem;
       --spacing-lg: 5rem;
       --spacing-xl: 8rem;
   
       /* Border Radius */
       --radius-sm: 0.8rem;
       --radius-md: 1.2rem;
       --radius-lg: 2rem;
       --radius-full: 50%;
   
       /* Shadows */
       --shadow-sm: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.08);
       --shadow-md: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.08);
       --shadow-lg: 0 0.8rem 2.4rem rgba(0, 0, 0, 0.12);
   
       /* Transitions */
       --transition-fast: 0.2s ease;
       --transition-base: 0.3s ease;
       --transition-slow: 0.5s ease;
   }

/* ---- reset.css ---- */
/* ==============================================
   RESET Y BOX MODEL
   ============================================== */
   html {
    box-sizing: border-box;
    font-size: 62.5%; /* 10px = 1rem */
    margin-top: 0 !important;
}

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

body {
    font-family: var(--main-font);
    font-size: 1.8rem;
    line-height: 2;
    margin: 0;
    padding-top: 86px;
    overflow-x: hidden;
}

/* Móvil: el contenido empieza justo debajo de la barra (antes 86px con una
   barra de 90px: quedaban 4px tapados). */
@media (max-width: 1023.98px) {
    :root {
        --header-height: var(--header-movil);
    }

    body {
        padding-top: var(--header-movil);
    }
}

/* ==============================================
   ELEMENTOS BASE
   ============================================== */
p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.container {
    width: min(95%, var(--container-max));
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

/* ==============================================
   RESPONSIVE SECTIONS
   ============================================== */
@media (min-width: 1024px) {
    .section {
        padding: 6rem 0;
    }
}

/* ---- typography.css ---- */
/* ==============================================
   HEADINGS
   ============================================== */
   h1, h2, h3, h4 {
    font-family: var(--secondary-font);
    margin: 0 0 5rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4.8rem;
}

h3 {
    font-size: 3.6rem;
}

h4 {
    font-size: 2.4rem;
}

/* ==============================================
   RESPONSIVE TYPOGRAPHY
   ============================================== */
@media (max-width: 767px) {
    h1 {
        font-size: 4rem;
    }
    
    h2 {
        font-size: 3.2rem;
    }
    
    h3 {
        font-size: 2.4rem;
    }
}

/* ---- header.css ---- */
/* ==============================================
   HEADER
   ============================================== */
.header {
    margin-bottom: 10rem;
    /* Móvil: 0.8rem + botón de 4.4rem + 0.8rem = 6rem (--header-movil) */
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

/* ==============================================
   LOGOS
   ============================================== */
.logo-desktop {
    display: none;
}

.logo-desktop img {
    width: 200px;
    height: auto;
}

.logo-mobile {
    display: block;
}

.logo-mobile img {
    width: auto;
    height: 4rem;
}

@media (min-width: 1024px) {
    .logo-mobile {
        display: none;
    }

    .logo-desktop {
        display: block;
    }
}

/* ==============================================
   NAVEGACIÓN BASE
   ============================================== */
.nav_bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

/* ==============================================
   MENÚ PRINCIPAL
   ============================================== */
.main-menu ul {
    display: none;
}

.main-menu a {
    font-family: var(--main-font);
    color: var(--dark);
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
    display: block;
}

/* ==============================================
   MENÚ MOBILE (OVERLAY)
   ============================================== */

/* Tiempos y curva compartidos por el panel, sus ítems y el botón
   hamburguesa, para que todo se mueva en sintonía. */
:root {
    --menu-curva: cubic-bezier(0.22, 1, 0.36, 1);
    --menu-entrada: 0.45s;
    --menu-salida: 0.28s;
    --menu-tinte: rgba(218, 32, 55, 0.07); /* --primary muy suave */
    /* La cortina usa una curva pareja (arranca suave, acelera, frena): con
       --menu-curva cubría medio panel en 60 ms y se sentía instantánea. */
    --menu-curva-cortina: cubic-bezier(0.4, 0, 0.2, 1);
    --menu-cortina-entrada: 0.5s;
}

/* Panel: se despliega como cortina bajo la barra (que queda fija con el
   logo y la X). Fondo blanco sólido: con transparencia se veía la página
   de atrás. clip-path recorta el panel de abajo hacia arriba; visibility
   lo saca del foco con Tab y de los lectores de pantalla, con retraso al
   cerrar para que termine la animación antes de ocultarlo. */
.main-menu.nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-movil);
    left: 0;
    width: 100vw;
    height: calc(100vh - var(--header-movil));
    height: calc(100dvh - var(--header-movil));
    background: var(--white);
    border-top: 1px solid #eee;
    padding: 1.2rem 2rem 3rem;
    z-index: 1000;
    overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    pointer-events: none;
    transition:
        clip-path var(--menu-salida) var(--menu-curva-cortina),
        visibility 0s linear var(--menu-salida);
}

.main-menu.nav.active {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    pointer-events: auto;
    transition:
        clip-path var(--menu-cortina-entrada) var(--menu-curva-cortina),
        visibility 0s;
}

/* Bloquea el scroll de la página mientras el menú está abierto (menu.js) */
html.menu-abierto {
    overflow: hidden;
}

.main-menu.nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* Ítems: al abrir entran uno tras otro mientras baja la cortina; al
   cerrar salen todos juntos. Con transiciones (no @keyframes) el efecto
   se repite cada vez que se abre el menú. */
.main-menu.nav li {
    opacity: 0;
    transform: translateY(1rem);
    transition:
        opacity var(--menu-salida) ease,
        transform var(--menu-salida) var(--menu-curva);
}

.main-menu.nav.active li {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--menu-entrada) ease var(--retraso, 0s),
        transform var(--menu-entrada) var(--menu-curva) var(--retraso, 0s);
}

/* Cada enlace entra cuando la cortina ya pasó por su altura */
.main-menu.nav.active li:nth-child(1) { --retraso: 0.15s; }
.main-menu.nav.active li:nth-child(2) { --retraso: 0.21s; }
.main-menu.nav.active li:nth-child(3) { --retraso: 0.27s; }
.main-menu.nav.active li:nth-child(4) { --retraso: 0.33s; }
.main-menu.nav.active li:nth-child(5) { --retraso: 0.39s; }
.main-menu.nav.active li:nth-child(n+6) { --retraso: 0.45s; }

@media (max-width: 1023.98px) {
    /* Enlaces: filas a todo el ancho separadas por una línea fina */
    .main-menu.nav li:not(.cost-button) {
        border-bottom: 1px solid #eee;
    }

    .main-menu.nav li:not(.cost-button) > a {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.6rem 1.2rem;
        font-size: 1.7rem;
        line-height: 1.4;
        border-radius: 0.6rem;
        -webkit-tap-highlight-color: transparent; /* sin destello gris */
        transition: color 0.2s ease, background-color 0.2s ease;
    }

    /* Flecha que entra desde la izquierda al pasar o tocar */
    .main-menu.nav li:not(.cost-button) > a::after {
        content: "→";
        color: var(--primary);
        opacity: 0;
        transform: translateX(-0.8rem);
        transition: opacity 0.2s ease, transform 0.3s var(--menu-curva);
    }

    .main-menu.nav li:not(.cost-button) > a:hover,
    .main-menu.nav li:not(.cost-button) > a:focus-visible,
    .main-menu.nav li:not(.cost-button) > a:active {
        color: var(--primary);
        background-color: var(--menu-tinte);
    }

    .main-menu.nav li:not(.cost-button) > a:hover::after,
    .main-menu.nav li:not(.cost-button) > a:focus-visible::after,
    .main-menu.nav li:not(.cost-button) > a:active::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Página actual: texto rojo y barrita roja a la izquierda */
    .main-menu.nav .current_page_item > a {
        color: var(--primary);
    }

    .main-menu.nav .current_page_item > a::before {
        content: "";
        position: absolute;
        left: 0;
        top: 28%;
        bottom: 28%;
        width: 0.3rem;
        border-radius: 0.3rem;
        background-color: var(--primary);
    }

    /* "Solicita una cotización": botón a todo el ancho al final de la
       lista. Los !important vencen a los de .cost-button (más abajo),
       pensados para el botón chico del menú de escritorio. */
    .main-menu.nav li.cost-button {
        margin-top: 2.4rem !important;
    }

    .main-menu.nav li.cost-button a {
        display: flex !important;
        justify-content: center;
        width: 100%;
        margin: 0 !important;
        padding: 1.4rem 2rem !important;
        border-radius: 99rem !important;
        font-size: 1.6rem !important;
        line-height: 1.4;
        -webkit-tap-highlight-color: transparent;
    }

    .main-menu.nav li.cost-button a:active {
        background: #b51a2d !important; /* rojo de marca un tono más oscuro */
        transform: scale(0.98) !important;
        box-shadow: none !important;
    }
}

/* ==============================================
   MENÚ TOGGLE (HAMBURGUESA)
   ============================================== */
/* Tres barras que se transforman en X. La animación va en dos pasos:
   al abrir, las barras se juntan al centro y después giran; al cerrar,
   primero se enderezan y después se separan. Se logra animando "top"
   y "transform" por separado, con retrasos opuestos en cada estado. */
.menu-toggle {
    --barra-ancho: 2.2rem;
    --barra-alto: 0.2rem;
    --barra-separacion: 0.7rem;
    --paso: 0.18s;

    position: relative;
    z-index: 1001;
    flex-shrink: 0;
    width: 4.4rem;  /* Área de toque mínima recomendada (44 px) */
    height: 4.4rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.menu-toggle__bar {
    position: absolute;
    left: calc(50% - var(--barra-ancho) / 2);
    top: calc(50% - var(--barra-alto) / 2);
    width: var(--barra-ancho);
    height: var(--barra-alto);
    border-radius: var(--barra-alto);
    background-color: var(--dark);
    /* Cerrar: primero se endereza (transform), luego se separa (top) */
    transition:
        top var(--paso) ease var(--paso),
        transform var(--paso) ease,
        opacity var(--paso) ease var(--paso);
}

.menu-toggle__bar:nth-child(1) {
    top: calc(50% - var(--barra-alto) / 2 - var(--barra-separacion));
}

.menu-toggle__bar:nth-child(3) {
    top: calc(50% - var(--barra-alto) / 2 + var(--barra-separacion));
}

/* Abierto: primero se juntan (top), luego giran (transform) */
.menu-toggle.is-open .menu-toggle__bar {
    top: calc(50% - var(--barra-alto) / 2);
    transition:
        top var(--paso) ease,
        transform var(--paso) var(--menu-curva) var(--paso),
        opacity 0s linear var(--paso);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(3) {
    transform: rotate(-45deg);
}

/* Quien pidió menos movimiento en su sistema ve el cambio sin animar */
@media (prefers-reduced-motion: reduce) {
    .main-menu.nav,
    .main-menu.nav li,
    .main-menu.nav a,
    .main-menu.nav a::after,
    .menu-toggle__bar,
    .main-menu.nav.active,
    .main-menu.nav.active li,
    .menu-toggle.is-open .menu-toggle__bar {
        transition: none;
    }
}

@keyframes menu-linea-activa {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .main-menu .current_page_item > a::after {
        animation: none;
    }

    .main-menu li:not(.cost-button) > a::after {
        transition: none;
    }
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .header {
        padding: 1.25rem 0;
    }

    .mobile-header {
        display: none;
    }

    .menu-toggle {
        display: none;
    }

    .main-menu {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .main-menu ul {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }

    .main-menu li {
        margin-right: 2rem;
    }

    .main-menu li:last-of-type {
        margin-right: 0;
    }

    .main-menu.nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        width: auto;
        height: auto;
        background: none;
        border-top: none;
        padding: 0;
        overflow: visible;
        clip-path: none;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        transition: none;
    }

    .main-menu.nav ul {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
    }

    .main-menu.nav li {
        margin: 0;
        opacity: 1;
        transform: none;
        transition: none;
    }

    .main-menu.nav a,
    .main-menu a {
        font-size: 1.4rem;
        position: relative;
        z-index: 1;
    }

    /* Línea roja bajo el enlace: aparece en la página activa y al pasar
       el mouse (antes el hover pintaba un fondo rojo que competía con el
       botón "Solicita una cotización").

       Es un ::after posicionado y no un border-bottom: el border le sumaba
       3px de alto al ítem activo y, como el menú centra en vertical, su
       texto quedaba más arriba que los demás. Crece desde el centro con la
       misma curva que el menú móvil. */
    .main-menu li:not(.cost-button) > a::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -0.3rem;
        height: 0.3rem;
        background-color: var(--primary);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform var(--menu-salida) var(--menu-curva);
    }

    .main-menu li:not(.cost-button) > a:hover::after,
    .main-menu li:not(.cost-button) > a:focus-visible::after {
        transform: scaleX(1);
        transition-duration: var(--menu-entrada);
    }

    /* Página activa: la línea queda fija (scaleX(1) también cubre el caso
       sin animación, con prefers-reduced-motion) y se anima al cargar */
    .main-menu .current_page_item > a::after {
        transform: scaleX(1);
        animation: menu-linea-activa var(--menu-entrada) var(--menu-curva) 0.15s both;
    }

    .main-menu li:not(.cost-button) > a {
        transition: color var(--transition-base);
    }

    .main-menu li:not(.cost-button) > a:hover,
    .main-menu li:not(.cost-button) > a:focus-visible {
        color: var(--primary);
    }
}

/* ==============================================
   BOTÓN ESPECIAL
   ============================================== */
.main-menu li.cost-button a,
a.cost-button {
    display: inline-block !important; /* Forces bounding box for proper transforms */
    background: var(--primary) !important;
    font-size: 1.3rem !important;
    color: var(--white) !important;
    border-radius: 20px !important;
    padding: 0.8rem 1.8rem !important; /* Slightly more space per standard buttons */
    transition: all var(--transition-base) !important;
    margin: 4px !important; /* Space so shadow doesn't get chopped off */
}

.main-menu li.cost-button a:hover,
a.cost-button:hover {
    background: #c8143e !important;
    transform: translateY(-0.2rem) !important;
    box-shadow: 0 0.6rem 1.8rem rgba(237, 23, 79, 0.3) !important;
}

li.cost-button {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

.hidden {
    display: none !important;
}

/* ---- footer.css ---- */
/* ==============================================
   FOOTER - MOBILE FIRST
   ============================================== */
.main-footer {
    background: #E01A4F; /* Solid red to match mockup closely, or fallback to var(--primary) */
    background: var(--primary, #E01A4F);
    color: white;
    padding: 60px 0 30px;
    margin-top: auto;
    font-family: var(--main-font, sans-serif);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* Logo Section */
.footer-logo {
    display: flex;
    justify-content: center;
}

.logo-img {
    max-width: 220px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Navigation Menu */
.footer-nav {
    width: 100%;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-menu a {
    color: white;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 400;
    transition: opacity 0.3s;
}

.footer-menu a:hover,
.footer-menu a:focus {
    opacity: 0.8;
}

/* Social Media Section */
.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform var(--transition-base), opacity 0.3s;
}

.social-link:hover,
.social-link:focus {
    transform: translateY(-3px) scale(1.05);
    opacity: 0.8;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Copyright Section */
.footer-copyright {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 1.4rem;
    color: white;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-legal a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: opacity 0.3s;
}

.footer-legal a:hover {
    opacity: 0.8;
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .main-footer {
        padding: 80px 0 40px;
    }
    
    .footer-container {
        display: grid;
        grid-template-columns: minmax(200px, auto) 1fr auto auto;
        align-items: flex-start;
        text-align: left;
        gap: 0;
    }
    
    .footer-logo {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        justify-content: flex-start;
    }
    
    .footer-nav {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
        display: flex;
        justify-content: flex-end;
        /* Separar más el menú de las redes hacia la izquierda */
        padding-right: 120px;
    }
    
    .footer-menu {
        align-items: flex-start;
        gap: 25px;
    }
    
    .social-section {
        grid-column: 4 / 5;
        grid-row: 1 / 2;
        align-items: flex-start;
        min-width: 200px;
    }
    
    .social-icons {
        /* Aumentado de 15px a 30px */
        gap: 30px; 
    }
    
    .footer-copyright {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        margin-top: 80px;
        flex-direction: column;
        gap: 15px;
    }
}

/* ---- buttons.css ---- */
/* ==============================================
   BOTONES GLOBALES
   ============================================== */

/* Botón primario */
.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 0.4rem 1.2rem rgba(237, 23, 79, 0.2);
}

.btn-primary:hover {
    background: #c8143e;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.8rem rgba(237, 23, 79, 0.3);
}

.btn-primary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Botón secundario */
.btn-secondary {
    display: inline-block;
    background: var(--dark-gray);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-secondary:hover {
    background: #1f1f1f;
    transform: translateY(-0.2rem);
}

/* Botón terciario (outline) — para un 3er botón opcional, ej. en slides del Hero */
.btn-tertiary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-base);
    border: 2px solid var(--white);
    cursor: pointer;
    text-align: center;
}

.btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-0.2rem);
}

/* Slider buttons */
.slider-btn {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 2px solid var(--primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.3);
}

.slider-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Sector buttons */
.sector-btn {
    background: rgba(237, 23, 79, 0.1);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-family: var(--main-font);
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.sector-btn:hover,
.sector-btn.active {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(237, 23, 79, 0.3);
}

.sector-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-secondary,
    .slider-btn,
    .sector-btn {
        transition: none;
    }

    .btn-primary:hover,
    .btn-secondary:hover,
    .slider-btn:hover,
    .sector-btn:hover {
        transform: none;
    }
}

/* ---- contacto.css ---- */
/* ==============================================
   PÁGINA DE CONTACTO
   ============================================== */
.contact-section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.contact-title {
    font-size: 3.8rem;
    font-family: var(--secondary-font);
    font-weight: 500;
    margin-bottom: 5rem;
    color: var(--dark);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-family: var(--main-font);
}

.form-control {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 2rem;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: var(--main-font);
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.form-control::placeholder {
    color: #AAA;
    opacity: 0.8;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 23, 79, 0.1);
}

.form-control.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 15rem;
}

.form-submit-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-family: var(--main-font);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-submit:hover {
    background: #c8143e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(237, 23, 79, 0.3);
}

.btn-submit svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Feedback messages */
.form-feedback {
    grid-column: 1 / -1;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.form-feedback.success {
    background: #d4edda;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

.form-feedback.error {
    background: #f8d7da;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.validation-msg {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.has-error .validation-msg {
    display: block;
}

/* ==============================================
   RESPONSIVO
   ============================================== */
@media (min-width: 768px) {
    .contact-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-form {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* ---- cotizacion.css ---- */
/* ==============================================
   PÁGINA DE COTIZACIÓN
   ============================================== */
.cotizacion-section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
    min-width: 0; /* Evita que el contenedor flex de Elementor se niegue a encogerlo */
}

.cotizacion-title {
    font-size: 3.8rem;
    font-family: var(--secondary-font);
    font-weight: 500;
    margin-bottom: 5rem;
    color: var(--dark);
}

.cotizacion-form {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    min-width: 0;
}

/* User Info Row */
.user-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    min-width: 0;
}

@media (min-width: 768px) {
    .user-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .user-info-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* Products Dynamic Rows */
.products-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.product-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
    min-width: 0;
    animation: fadeIn 0.3s ease;
}

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

@media (min-width: 768px) {
    .product-row {
        grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto;
        align-items: start;
        /* Col 1: Tipo, Col 2: Cantidad, Col 3: Remove btn */
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.form-label {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-family: var(--main-font);
}

.form-control, .form-select {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 1.5rem 2rem;
    border: 1px solid #EBEBEB;
    border-radius: 12px;
    font-size: 1.5rem;
    font-family: var(--main-font);
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 55px; /* Fijar altura que se alinee */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* En mobile, "Tipo de producto" y "¿Cuántas piezas?" son los campos que
   más desbordan (el texto del producto más largo obliga al <select> a
   crecer). Los achicamos aquí; de tablet en adelante hay espacio de sobra. */
.product-row .form-select,
.product-row input[type="number"].form-control {
    padding: 1.1rem 3rem 1.1rem 1.5rem;
    font-size: 1.2rem;
    height: 46px;
}

.product-row .form-select {
    background-position: right 1.2rem center;
    background-size: 14px;
}

@media (min-width: 768px) {
    .product-row .form-select,
    .product-row input[type="number"].form-control {
        padding: 1.5rem 2rem;
        font-size: 1.5rem;
        height: 55px;
    }

    .product-row .form-select {
        background-position: right 2rem center;
        background-size: 16px;
    }
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2rem center;
    background-size: 16px;
    cursor: pointer;
}

.form-control::placeholder {
    color: #AAA;
    opacity: 0.8;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237, 23, 79, 0.1);
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.validation-msg {
    color: #e74c3c;
    font-size: 1.2rem;
    margin-top: 0.5rem;
    display: none;
}

.form-group.has-error .validation-msg {
    display: block;
}

/* Actions */
.dynamic-actions {
    margin-top: 1rem;
}

.btn-add-product {
    background: transparent;
    color: var(--dark);
    border: 1px solid #EBEBEB;
    padding: 1.2rem 2.5rem;
    border-radius: 30px;
    font-size: 1.4rem;
    font-family: var(--main-font);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-add-product:hover {
    border-color: var(--dark);
    background: #f9f9f9;
}

.btn-remove-row {
    background: transparent;
    color: #e74c3c;
    border: none;
    cursor: pointer;
    padding: 1rem 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    height: 55px; /* Alinera base con input */
    margin-top: 2.8rem; /* espacio para saltar el label */
}

.btn-remove-row:hover {
    transform: scale(1.1);
    color: #c0392b;
}

.submit-container {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-family: var(--main-font);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.btn-submit:hover {
    background: #c8143e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(237, 23, 79, 0.3);
}

/* Feedback messages */
.form-feedback {
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.form-feedback.success {
    background: #d4edda;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}
.form-feedback.error {
    background: #f8d7da;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

/* ==============================================
   PANTALLA DE AGRADECIMIENTO
   ============================================== */
.cotizacion-thankyou {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 3rem 0 5rem;
}

@media (min-width: 768px) {
    .cotizacion-thankyou {
        flex-direction: row;
        justify-content: space-between;
        gap: 4rem;
        padding: 6rem 0;
    }
}

.thankyou-text {
    max-width: 46rem;
    text-align: center;
}

@media (min-width: 768px) {
    .thankyou-text {
        text-align: left;
    }
}

.thankyou-text h1 {
    font-size: 3.2rem;
    font-family: var(--secondary-font);
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.thankyou-text p {
    font-size: 1.6rem;
    line-height: 1.7;
    color: #777;
    margin-bottom: 2.5rem;
}

.btn-thankyou {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border: 1px solid #EBEBEB;
    border-radius: 30px;
    font-size: 1.4rem;
    font-family: var(--main-font);
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-thankyou:hover {
    border-color: var(--dark);
    background: #f9f9f9;
}

.thankyou-illustration {
    flex-shrink: 0;
    width: 100%;
    max-width: 28rem;
}

.thankyou-illustration svg {
    width: 100%;
    height: auto;
}

/* ---- calculadora.css ---- */
/* ==============================================
   CALCULADORA DE RESPALDO
   ============================================== */
.calculadora-section {
    padding: 6rem 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.calculadora-eyebrow {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Rojo un poco más oscuro que --primary: sobre este fondo rosado,
       --primary quedaba en 4.36:1 y el mínimo es 4.5:1 */
    color: #b81b2f;
    background: rgba(218, 32, 55, 0.08);
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.calculadora-title {
    font-size: 3.8rem;
    font-family: var(--secondary-font);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.calculadora-intro {
    font-size: 1.6rem;
    color: #666; /* contraste mínimo 4.5:1 */
    max-width: 70rem;
    margin-bottom: 4rem;
}

.calculadora-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .calculadora-layout {
        grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
    }
}

.calculadora-panel {
    background: var(--white);
    border: 1px solid var(--ligth-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    transition: box-shadow var(--transition-base);
}

.calculadora-panel:focus-within {
    box-shadow: var(--shadow-lg);
}

.calculadora-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.calculadora-form .form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.calculadora-form .form-label {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-family: var(--main-font);
}

.calc-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.2rem;
    height: 2.2rem;
    margin-right: 1rem;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
}

.calculadora-form .form-control,
.calculadora-form .form-select {
    width: 100%;
    padding: 1.5rem 2rem;
    border: 1px solid var(--ligth-gray);
    border-radius: 1.2rem;
    font-size: 1.5rem;
    font-family: var(--main-font);
    background: var(--white);
    color: var(--dark);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 55px;
}

.calculadora-form .form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2rem center;
    background-size: 16px;
    cursor: pointer;
}

/* Selector de modelo (Paso 2) mientras no se eligió categoría todavía
   (Paso 1) — ver js/calculadora.js, aplicarFiltroCategoria(). */
.calculadora-form .form-select:disabled {
    background-color: #F5F5F5;
    color: #999;
    cursor: not-allowed;
}

.calculadora-form .form-control::placeholder {
    color: #AAA;
    opacity: 0.8;
}

.calculadora-watts-hint {
    margin: 0.8rem 0 0;
    font-size: 1.3rem;
    color: #888;
    min-height: 1.8rem;
}

.calculadora-form .form-control:focus,
.calculadora-form .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(218, 32, 55, 0.1);
}

.calculadora-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.5rem 3rem;
    border-radius: 30px;
    font-size: 1.6rem;
    font-family: var(--main-font);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.calculadora-form .btn-submit::before {
    content: '';
    width: 1.8rem;
    height: 1.8rem;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'%3E%3C/polygon%3E%3C/svg%3E") no-repeat center / contain;
}

.calculadora-form .btn-submit:hover {
    background: #c8143e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(218, 32, 55, 0.3);
}

.calculadora-form .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(218, 32, 55, 0.25);
}

/* Resultado — banner de ancho completo, arriba del form y la gráfica,
   para que no quede perdido dentro de la columna angosta del formulario. */
.calculadora-resultado {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0;
    padding: 2.5rem 3rem;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    display: none;
}

.calculadora-resultado.is-visible {
    display: block;
    animation: calculadoraFadeInUp 0.35s ease;
}

@keyframes calculadoraFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.calculadora-resultado.error {
    background: #f8d7da;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    font-weight: 600;
}

.calculadora-resultado.success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
    background: linear-gradient(135deg, rgba(218, 32, 55, 0.1), rgba(218, 32, 55, 0.03));
    border: 1px solid rgba(218, 32, 55, 0.2);
    box-shadow: var(--shadow-lg);
}

.calculadora-resultado-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
}

.calculadora-resultado-icon {
    flex-shrink: 0;
    color: var(--primary);
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.calculadora-resultado-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.calculadora-resultado-value {
    font-family: var(--secondary-font);
    font-size: 5.2rem;
    line-height: 1;
    color: var(--primary);
}

.calculadora-resultado-label {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calculadora-resultado-detail {
    margin: 0;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    font-weight: 400;
    color: #555;
}

.calculadora-resultado-cta {
    flex-shrink: 0;
}

/* Gráfica */
.calculadora-chart-panel {
    background: var(--white);
    border: 1px solid var(--ligth-gray);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 3rem;
    min-width: 0;
}

.calculadora-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 30rem;
    color: #666; /* contraste mínimo 4.5:1 */
    font-size: 1.5rem;
    text-align: center;
}

.calculadora-chart-empty-icon {
    color: var(--ligth-gray);
}

.calculadora-chart-wrap {
    position: relative;
    width: 100%;
    min-height: 30rem;
    display: none;
}

.calculadora-chart-wrap.is-visible {
    display: block;
    animation: calculadoraFadeInUp 0.35s ease;
}

.calculadora-chart-wrap canvas {
    max-width: 100%;
}

/* Mobile */
@media (max-width: 767px) {
    .calculadora-section {
        padding: 4rem 1.6rem;
    }

    .calculadora-title {
        font-size: 2.8rem;
    }

    .calculadora-intro {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .calculadora-panel,
    .calculadora-chart-panel {
        padding: 2rem;
    }

    .calculadora-chart-empty,
    .calculadora-chart-wrap {
        min-height: 24rem;
    }

    .calculadora-resultado {
        padding: 2rem;
    }

    .calculadora-resultado.success {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .calculadora-resultado-main {
        flex-direction: column;
        text-align: center;
    }

    .calculadora-resultado-value {
        font-size: 3.6rem;
    }

    .calculadora-resultado-detail {
        padding-left: 0;
        border-left: none;
    }

    .calculadora-resultado-cta {
        align-self: center;
    }
}

/* ---- hero.css ---- */
/* ==============================================
   HERO / CARRUSEL - MOBILE FIRST
   ============================================== */
.hero {
    /* Full-bleed: ocupa todo el ancho de la ventana sin importar el
       padding/max-width de la sección de Elementor que lo contenga
       (por defecto Elementor usa un layout "Boxed" con márgenes). */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 90vh;
    /* Solo se recorta el eje horizontal (necesario para el truco de
       full-bleed 100vw de arriba, que si no deja scroll horizontal). El
       vertical se deja libre: con elementos de ancho/posición libres por
       dispositivo, un texto grande puede necesitar más de 90vh al saltar
       de línea en mobile — cortarlo con overflow:hidden lo escondía sin
       avisar. overflow-y:visible + overflow-x:hidden se computa como
       overflow-y:auto (regla de la spec de CSS), así que si de plano no
       cabe, se ve con scroll en vez de desaparecer. */
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Fondo de imagen: el widget pone la URL en --hero-bg y, si hay, el
   recorte central para celular en --hero-bg-movil (inc/hero-background.php).
   La media query debe coincidir con KOBLENZ_HERO_MOVIL_MEDIA. Sin
   variables (slides de color o video) queda sin imagen, como antes. */
.hero-slide {
    background-image: var(--hero-bg, none);
}

@media (max-aspect-ratio: 5/8) {
    .hero-slide {
        background-image: var(--hero-bg-movil, var(--hero-bg, none));
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    /* Duración: --hero-trans, ajustable en el widget ("Duración de la
       transición"). visibility se retrasa para que el slide que sale siga
       visible mientras se desvanece. */
    transition: opacity var(--hero-trans, 700ms) ease, visibility 0s linear var(--hero-trans, 700ms);
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

/* Caja de contenido del slide: el fondo (imagen/video/overlay) ocupa
   todo el ancho de la ventana, pero las capas se posicionan dentro de
   esta caja, centrada y con el mismo tope que .container. Así, en
   pantallas de más de 1920px (o con el zoom del navegador reducido) los
   textos quedan alineados con el contenido de abajo en vez de pegarse a
   los bordes de la ventana. Hasta 1920px mide lo mismo que el slide,
   por lo que las posiciones ya guardadas no cambian. */
.hero-slide-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: min(100%, var(--container-max));
    margin: 0 auto;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1;
}

/* Capa posicionada del Hero Carousel — posición y ancho vienen inline
   desde PHP/JS (ver Koblenz_Hero_Carousel_Widget::get_layer_position_style
   y el <style> de overrides tablet/mobile que arma get_responsive_css()).
   Sin max-width: por años tuvimos un tope fijo (60rem/90%) que topaba en
   silencio cualquier intento de ensanchar la caja desde la manija o el
   panel — el "ancho" que fijes ahí es el que manda, sin nada compitiendo. */
.hero-layer-free {
    z-index: 3;
}

/* Solo dentro del editor de Elementor (ver hero-carousel-editor-drag.js).
   El padding + margin negativo agranda el área donde puedes hacer clic
   para arrastrar SIN mover el texto de su lugar (el contenido visual
   queda exactamente donde estaba) — así es mucho más fácil "pescar" la
   capa en vez de agarrar por error el widget completo de abajo. */
.hero-layer-free.is-draggable {
    padding: 1.2rem 1.6rem;
    margin: -1.2rem -1.6rem;
    box-sizing: border-box;
    outline: 1px dashed rgba(255, 255, 255, 0.28);
    outline-offset: -1px;
    transition: outline-color 0.15s ease, background-color 0.15s ease;
}

.hero-layer-free.is-draggable:hover {
    outline-color: rgba(255, 255, 255, 0.75);
    background-color: rgba(255, 255, 255, 0.06);
}

.hero-layer-free.is-draggable.is-dragging {
    outline: 2px solid var(--primary, #da2037);
    outline-offset: -2px;
    background-color: rgba(218, 32, 55, 0.08);
    user-select: none;
}

/* Manija para redimensionar el ancho de la caja, arrastrando desde la
   esquina inferior derecha. */
.hero-layer-resize-handle {
    position: absolute;
    right: 0.2rem;
    bottom: 0.2rem;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
    background: var(--primary, #da2037);
    border: 2px solid #fff;
    cursor: nwse-resize;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    z-index: 4;
}

.hero-layer-free.is-draggable:hover .hero-layer-resize-handle,
.hero-layer-free.is-draggable.is-dragging .hero-layer-resize-handle,
.hero-layer-free.is-draggable.is-resizing .hero-layer-resize-handle {
    opacity: 1;
}

.hero-layer-resize-handle:hover {
    transform: scale(1.2);
}

/* Guía de límites — el área dentro de la cual se puede mover el texto,
   alineada con los márgenes de contenido del slide (ver hero-carousel-
   editor-drag.js). Solo aparece mientras arrastras o redimensionas. */
.hero-drag-guide {
    position: absolute;
    border: 1px dashed rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 2;
}

/* Aviso solo visible dentro del editor de Elementor (ver
   Koblenz_Hero_Carousel_Widget::is_elementor_edit_mode) cuando un slide
   no tiene ninguna capa configurada todavía. */
.hero-empty-hint {
    position: relative;
    z-index: 4;
    max-width: 44rem;
    margin: 4rem auto;
    padding: 2rem 2.5rem;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1.6;
    text-align: center;
}

.hero-empty-hint strong {
    display: block;
    font-size: 1.7rem;
    margin-bottom: 0.8rem;
}

.hero-slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ----------------------------------------------
   Transiciones entre slides
   Clases que pone js/hero-carousel.js:
     .is-active  slide que entra (o el visible)
     .is-prev    slide que sale (se quita al terminar la transición)
     [data-dir]  en el carrusel: "next" al avanzar, "prev" al retroceder
   Un slide en reposo (ni .is-active ni .is-prev) no tiene transición:
   salta al instante a su punto de partida, oculto, y desde ahí entra la
   próxima vez. Así nunca cruza la pantalla ni se ve fuera del banner.
   Efectos: Koblenz_Hero_Layer_Renderer::transition_effects().
   ---------------------------------------------- */
.hero-carousel {
    --hero-curva: cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slide.is-active {
    transition: opacity var(--hero-trans, 700ms) ease, visibility 0s;
}

.hero-slide:not(.is-active):not(.is-prev) {
    transition: none !important;
}

/* Efectos que mueven o recortan el slide: el que sale queda visible
   debajo hasta que el nuevo termina de entrar. */
.hero-carousel--effect-slide .hero-slide.is-prev,
.hero-carousel--effect-slide-vertical .hero-slide.is-prev,
.hero-carousel--effect-cover .hero-slide.is-prev,
.hero-carousel--effect-wipe .hero-slide.is-prev,
.hero-carousel--effect-circle .hero-slide.is-prev {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-carousel--effect-slide .hero-slide.is-active,
.hero-carousel--effect-slide-vertical .hero-slide.is-active,
.hero-carousel--effect-cover .hero-slide.is-active,
.hero-carousel--effect-wipe .hero-slide.is-active,
.hero-carousel--effect-circle .hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

/* Deslizar: el nuevo empuja al anterior. Avanzar = entra por la derecha;
   retroceder = entra por la izquierda. */
.hero-carousel--effect-slide .hero-slide {
    transform: translateX(100%);
    transition: transform var(--hero-trans, 700ms) var(--hero-curva);
}
.hero-carousel--effect-slide[data-dir="prev"] .hero-slide { transform: translateX(-100%); }
.hero-carousel--effect-slide .hero-slide.is-active { transform: none; }
.hero-carousel--effect-slide .hero-slide.is-prev { transform: translateX(-100%); }
.hero-carousel--effect-slide[data-dir="prev"] .hero-slide.is-prev { transform: translateX(100%); }

/* Deslizar vertical: igual, de abajo hacia arriba (al revés al retroceder) */
.hero-carousel--effect-slide-vertical .hero-slide {
    transform: translateY(100%);
    transition: transform var(--hero-trans, 700ms) var(--hero-curva);
}
.hero-carousel--effect-slide-vertical[data-dir="prev"] .hero-slide { transform: translateY(-100%); }
.hero-carousel--effect-slide-vertical .hero-slide.is-active { transform: none; }
.hero-carousel--effect-slide-vertical .hero-slide.is-prev { transform: translateY(-100%); }
.hero-carousel--effect-slide-vertical[data-dir="prev"] .hero-slide.is-prev { transform: translateY(100%); }

/* Cubrir: el nuevo pasa por encima; el anterior se queda quieto debajo */
.hero-carousel--effect-cover .hero-slide {
    transform: translateX(100%);
    transition: transform var(--hero-trans, 700ms) var(--hero-curva);
}
.hero-carousel--effect-cover[data-dir="prev"] .hero-slide { transform: translateX(-100%); }
.hero-carousel--effect-cover .hero-slide.is-active,
.hero-carousel--effect-cover .hero-slide.is-prev { transform: none; }

/* Cortina: el nuevo se revela de lado a lado (como el menú móvil) */
.hero-carousel--effect-wipe .hero-slide {
    clip-path: inset(0 100% 0 0);
    transition: clip-path var(--hero-trans, 700ms) var(--hero-curva);
}
.hero-carousel--effect-wipe[data-dir="prev"] .hero-slide { clip-path: inset(0 0 0 100%); }
.hero-carousel--effect-wipe .hero-slide.is-active,
.hero-carousel--effect-wipe .hero-slide.is-prev { clip-path: inset(0); }

/* Círculo: el nuevo se revela en un círculo que crece desde el centro
   (75% del radio de referencia alcanza las esquinas) */
.hero-carousel--effect-circle .hero-slide {
    clip-path: circle(0% at 50% 50%);
    transition: clip-path var(--hero-trans, 700ms) var(--hero-curva);
}
.hero-carousel--effect-circle .hero-slide.is-active,
.hero-carousel--effect-circle .hero-slide.is-prev { clip-path: circle(75% at 50% 50%); }

/* Zoom: fundido + el fondo entra con un ligero acercamiento */
.hero-carousel--effect-zoom .hero-slide {
    transform: scale(1.08);
    transition:
        opacity var(--hero-trans, 700ms) ease,
        visibility 0s linear var(--hero-trans, 700ms),
        transform calc(var(--hero-trans, 700ms) * 1.4) ease;
}
.hero-carousel--effect-zoom .hero-slide.is-active {
    transform: scale(1);
    transition:
        opacity var(--hero-trans, 700ms) ease,
        visibility 0s,
        transform calc(var(--hero-trans, 700ms) * 1.4) ease;
}

/* Acercamiento lento (Ken Burns): fundido, y la imagen de fondo se acerca
   muy despacio mientras el slide se muestra (--hero-intervalo = tiempo de
   autoplay + transición). El fondo se copia a ::before (background:
   inherit) para escalarlo sin agrandar los textos. La animación sigue
   mientras el slide sale, para que no "salte" al desvanecerse. */
.hero-carousel--effect-kenburns .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: inherit;
}
.hero-carousel--effect-kenburns .hero-slide.is-active::before,
.hero-carousel--effect-kenburns .hero-slide.is-prev::before,
.hero-carousel--effect-kenburns .hero-slide.is-active .hero-slide-video,
.hero-carousel--effect-kenburns .hero-slide.is-prev .hero-slide-video {
    animation: heroKenBurns var(--hero-intervalo, 6700ms) linear forwards;
}

@keyframes heroKenBurns {
    from { transform: scale(1); }
    to   { transform: scale(1.12); }
}

/* "Animar textos después de la transición": al navegar, los textos del
   slide nuevo esperan a que termine de entrar (el primer slide, al cargar
   la página, no espera: .is-navegado lo pone el JS al primer cambio). */
.hero-carousel--esperar-textos.is-navegado .hero-slide.is-active .hero-layer:not(.hero-layer--static) {
    animation-delay: calc(var(--layer-delay, 0ms) + var(--hero-trans, 700ms));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    width: min(95%, var(--container-max));
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
    margin-top: 30vh;
}

.hero-content--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-content--center .hero-buttons {
    align-items: center;
}

.hero-content--right {
    text-align: right;
}

.hero-content--right .hero-buttons {
    align-items: flex-end;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 4.5rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.8rem;
    line-height: 2rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex !important;
    flex-direction: column;
    gap: 1rem !important;
    align-items: flex-start;
    margin-top: 40px;
}

.hero-buttons a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-size: 1.4rem;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}

/* Capas del Hero Carousel (widget nuevo, tipo Revolution Slider) — cada
   capa vive dentro de su propio .hero-layer-free posicionado, color
   blanco por defecto igual que el Hero clásico. */
.hero-layer-free {
    color: var(--white);
}

.hero-layer-free h1.hero-layer,
.hero-layer-free h2.hero-layer,
.hero-layer-free h3.hero-layer {
    display: block;
    line-height: 1.15;
    margin: 0;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.hero-layer-free h1.hero-layer { font-size: 4rem; }
.hero-layer-free h2.hero-layer { font-size: 2.8rem; }
.hero-layer-free h3.hero-layer { font-size: 2rem; }

.hero-layer-free p.hero-layer {
    display: block;
    font-size: 1.8rem;
    line-height: 1.5;
    margin: 0;
}

.hero-layer-free img.hero-layer {
    display: block;
    height: auto;
}

.hero-layer-free a.hero-layer.btn {
    display: inline-block;
}

/* ----------------------------------------------
   Diseño "Bloque de texto" (por slide)
   Las capas "en el bloque" se apilan solas dentro de .hero-bloque, que
   ocupa todo el slide y coloca su contenido según la posición elegida.
   El widget manda la posición como variables por dispositivo (ver
   Koblenz_Hero_Layer_Renderer::block_style_vars()):
     --bh-*  alineación horizontal (flex-start | center | flex-end)
     --bv-*  alineación vertical
     --ta-*  alineación del texto (left | center | right)
   con *: d = escritorio, t = tablet, m = celular. Tablet y celular sin
   valor propio heredan el del dispositivo más grande. Mismos cortes que
   las posiciones libres (1024 y 767 px).
   ---------------------------------------------- */
.hero-bloque {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    justify-content: var(--bh-d, flex-start);
    align-items: var(--bv-d, center);
    padding: 2rem;
    pointer-events: none; /* el área vacía deja pasar clics al slide */
}

.hero-bloque__contenido {
    display: flex;
    flex-direction: column;
    align-items: var(--bh-d, flex-start);
    gap: var(--bloque-gap, 2.4rem);
    width: 100%;
    max-width: var(--bloque-ancho, 80rem);
    text-align: var(--ta-d, left);
    pointer-events: auto;
}

.hero-bloque__botones {
    display: flex;
    flex-wrap: wrap;
    justify-content: var(--bh-d, flex-start);
    gap: calc(var(--bloque-gap, 2.4rem) * 0.66);
}

/* En el bloque no hay posición propia: fluye con el resto */
.hero-layer-free--bloque {
    position: static;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .hero-bloque {
        justify-content: var(--bh-t, var(--bh-d, flex-start));
        align-items: var(--bv-t, var(--bv-d, center));
    }

    .hero-bloque__contenido {
        align-items: var(--bh-t, var(--bh-d, flex-start));
        text-align: var(--ta-t, var(--ta-d, left));
    }

    .hero-bloque__botones {
        justify-content: var(--bh-t, var(--bh-d, flex-start));
    }
}

@media (max-width: 767px) {
    /* Opción "Ocultar en celular" de cada elemento */
    .hero-layer-free--sin-movil {
        display: none !important;
    }

    .hero-bloque {
        justify-content: var(--bh-m, var(--bh-t, var(--bh-d, flex-start)));
        align-items: var(--bv-m, var(--bv-t, var(--bv-d, center)));
    }

    .hero-bloque__contenido {
        align-items: var(--bh-m, var(--bh-t, var(--bh-d, flex-start)));
        text-align: var(--ta-m, var(--ta-t, var(--ta-d, left)));
    }

    .hero-bloque__botones {
        justify-content: var(--bh-m, var(--bh-t, var(--bh-d, flex-start)));
    }
}

/* Animación de entrada al cargar la página (el hero ya está visible, no depende de scroll) */
.hero-anim {
    opacity: 0;
    transform: translateY(2rem);
    animation: heroFadeInUp 0.7s ease forwards;
}

.hero-anim-1 { animation-delay: 0.1s; }
.hero-anim-2 { animation-delay: 0.25s; }
.hero-anim-3 { animation-delay: 0.4s; }
.hero-anim-4 { animation-delay: 0.5s; }
.hero-anim-5 { animation-delay: 0.6s; }

@keyframes heroFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de entrada por capa (Hero Carousel): cada capa arranca en
   opacity:0 y solo se anima mientras su slide está activo — al quitar
   la clase .is-active del slide, deja de matchear la regla de abajo y
   la animación se reinicia sola la próxima vez que vuelva a activarse. */
.hero-layer {
    opacity: 0;
}

.hero-layer--static {
    opacity: 1;
}

.hero-slide.is-active .hero-layer:not(.hero-layer--static) {
    animation-duration: var(--layer-duration, 700ms);
    animation-delay: var(--layer-delay, 0ms);
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

.hero-slide.is-active .hero-layer--fade-in    { animation-name: heroLayerFadeIn; }
.hero-slide.is-active .hero-layer--fade-up    { animation-name: heroLayerFadeUp; }
.hero-slide.is-active .hero-layer--fade-down  { animation-name: heroLayerFadeDown; }
.hero-slide.is-active .hero-layer--fade-left  { animation-name: heroLayerFadeLeft; }
.hero-slide.is-active .hero-layer--fade-right { animation-name: heroLayerFadeRight; }
.hero-slide.is-active .hero-layer--zoom-in    { animation-name: heroLayerZoomIn; }

@keyframes heroLayerFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes heroLayerFadeUp {
    from { opacity: 0; transform: translateY(2.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroLayerFadeDown {
    from { opacity: 0; transform: translateY(-2.5rem); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroLayerFadeLeft {
    from { opacity: 0; transform: translateX(3rem); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroLayerFadeRight {
    from { opacity: 0; transform: translateX(-3rem); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroLayerZoomIn {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* Flechas prev/next — reusan .slider-btn (buttons.css) */
.hero-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
}

.hero-carousel-arrow--prev {
    left: 2rem;
}

.hero-carousel-arrow--next {
    right: 2rem;
}

/* Puntos de navegación */
.hero-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 2.5rem;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.hero-carousel-dot {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-base);
}

.hero-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-carousel-dot.is-active {
    background: var(--white);
    transform: scale(1.2);
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .hero {
        height: 80vh;
    }

    .hero-content {
        margin-top: 30vh;
    }

    .hero-content h1 {
        font-size: 6rem;
        line-height: 1.1;
    }

    .hero-content p {
        font-size: 2.4rem;
    }

    .hero-layer-free h1.hero-layer {
        font-size: 6rem;
        line-height: 1.1;
    }

    .hero-layer-free p.hero-layer {
        font-size: 2.4rem;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }

    .hero-buttons a {
        padding: 1rem 2rem;
    }
}

/* ---- products.css ---- */
/* ==============================================
   PRODUCTOS - MOBILE FIRST
   ============================================== */

/* Full-bleed: el ancho debe llegar a los bordes de la ventana sin
   importar el ancho/padding de la sección de Elementor que lo contenga,
   para que su .container interno se centre igual que en las demás
   secciones (Hero, Why Koblenz, etc.) y el margen izquierdo coincida. */
.products-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Header de sección */
.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    text-align: left;
    margin-bottom: 3rem;
}

.section-header__text {
    flex: 1 1 30rem;
}

/* Flechas de navegación del carrusel de productos */
.products-nav {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.products-nav__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--ligth-gray);
    color: var(--dark-gray);
    cursor: pointer;
    transition: all var(--transition-base);
}

.products-nav__btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.products-nav__btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.section-title {
    font-family: var(--secondary-font);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-family: var(--main-font);
    font-size: 1.6rem;
    color: var(--dark-gray);
    line-height: 1.5;
    max-width: 40rem;
    opacity: 0.8;
}

/* Container con scroll horizontal */
.products-container {
    position: relative;
    margin-bottom: 4rem;
}

.products-grid {
    display: flex !important;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.products-grid::-webkit-scrollbar {
    height: 8px;
}

.products-grid::-webkit-scrollbar-track {
    background: transparent;
}

.products-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Card de producto */
.products-grid .card {
    flex: 0 0 28rem !important;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.products-grid .card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.products-grid .card-image {
    position: relative;
    height: 20rem;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.products-grid .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.products-grid .card:hover .card-image img {
    transform: scale(1.05);
}

.products-grid .content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.products-grid .content h3 {
    font-family: var(--main-font);
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-grid .content h3 a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

.products-grid .content h3 a:hover {
    color: var(--primary);
}

.products-grid .product-sku {
    font-family: var(--main-font);
    font-size: 1.3rem;
    color: #666; /* #888 no llegaba al contraste mínimo (4.5:1) sobre blanco */
    margin-bottom: 2rem;
}

.products-grid .btn-primary {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Indicador de scroll */
.scroll-indicator {
    display: block;
    text-align: center;
    color: var(--dark-gray);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

/* Enlace al catálogo */
.catalog-link {
    text-align: center;
    margin-top: 4rem;
}

.catalog-link a {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-gray);
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.8rem;
    transition: color var(--transition-base);
}

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

.catalog-link .arrow {
    transition: transform var(--transition-base);
    font-size: 2rem;
}

.catalog-link a:hover .arrow {
    transform: translateX(0.5rem);
}

/* ==============================================
   TABLET
   ============================================== */
@media (min-width: 768px) {
    .section-title {
        font-size: 4rem;
    }

    .section-subtitle {
        font-size: 1.8rem;
        max-width: 50rem;
    }

    .products-grid .card {
        flex: 0 0 32rem;
    }

    .products-grid .card-image {
        height: 22rem;
    }

    .products-grid .content h3 {
        font-size: 2.1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .products-nav {
        display: flex;
    }
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 5rem;
    }

    .section-title {
        font-size: 4.8rem;
    }

    .section-subtitle {
        font-size: 2rem;
        max-width: 60rem;
    }

    .products-grid {
        gap: 3rem;
        padding: 2rem 0;
    }

    .products-grid .card {
        flex: 0 0 35rem;
    }

    .products-grid .card-image {
        height: 24rem;
    }

    .products-grid .content {
        padding: 2.5rem;
    }

    .products-grid .content h3 {
        font-size: 2.2rem;
    }
}

/* Accesibilidad: solo para navegación por teclado, no al hacer clic con mouse */
.card:has(:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==============================================
   CATALOGO DE PRODUCTOS (GRID, FILTROS, PAGINACION)
   ============================================== */
.products-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4rem 0;
    flex-wrap: wrap;
    gap: 2rem;
}

.products-maintitle {
    font-size: 3.8rem;
    font-weight: 500;
    margin: 0;
    color: var(--dark);
}

.products-filters {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.filter-pill {
    padding: 0.6rem 1.4rem;
    border: 1px solid #EBEBEB;
    border-radius: 30px;
    color: var(--dark);
    text-decoration: none;
    font-size: 1.15rem;
    white-space: nowrap;
    flex-shrink: 0;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.filter-pill:hover {
    background: #F9F9F9;
    border-color: #DDD;
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 0.2rem 0.6rem rgba(218, 32, 55, 0.3);
}

@media (min-width: 768px) {
    .products-filters {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .filter-pill {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}

.products-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .products-catalog-grid {
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .products-catalog-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 3rem;
    }
}

.products-catalog-grid .card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.products-catalog-grid .card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-md);
}

.products-catalog-grid .card-image {
    position: relative;
    height: 15rem;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
}

@media (min-width: 768px) {
    .products-catalog-grid .card-image {
        height: 24rem;
        padding: 2rem;
    }
}

.products-catalog-grid .card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.products-catalog-grid .card:hover .card-image img {
    transform: scale(1.05);
}

.products-catalog-grid .content {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.products-catalog-grid .content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: var(--dark);
}

.products-catalog-grid .content a {
    text-decoration: none;
}

.products-catalog-grid .product-sku {
    font-size: 1.1rem;
    color: #666; /* contraste mínimo 4.5:1 */
    margin-bottom: 1.2rem;
}

.products-catalog-grid .btn-primary {
    margin-top: auto;
    width: 100%;
    text-align: center;
    background: var(--primary);
    color: var(--white);
    font-size: 1.2rem;
    padding: 0.9rem 1rem;
}

@media (min-width: 768px) {
    .products-catalog-grid .content {
        padding: 2rem;
    }

    .products-catalog-grid .content h3 {
        font-size: 2rem;
    }

    .products-catalog-grid .product-sku {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }

    .products-catalog-grid .btn-primary {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }
}

/* ==============================================
   ANIMACIÓN DE ENTRADA (Fade In Up)
   La cabecera de la sección aparece primero y las
   tarjetas de producto entran una después de otra.
   ============================================== */
.products-header-bar,
.products-catalog-grid .card {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.products-header-bar.is-visible,
.products-catalog-grid .card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    color: #666;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    color: var(--dark);
    font-weight: 700;
}

.pagination .page-numbers:hover:not(.current) {
    background: #F5F5F5;
    border-radius: 50%;
}

/* ---- why-koblenz.css ---- */
/* ==============================================
   WHY KOBLENZ - MOBILE FIRST
   ============================================== */
   .why-koblenz-section {
    /* Full-bleed: el fondo debe llegar a los bordes de la ventana sin
       importar el ancho/padding de la sección de Elementor que lo contenga. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 5rem 0;
    background: #f8f9fa;
}

.why-koblenz-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.why-koblenz-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.why-koblenz-section h2 {
    font-family: var(--secondary-font);
    font-size: 3.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.why-koblenz-section .subtitle {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    line-height: 1.4;
    font-weight: 600;
}

.why-koblenz-section .description {
    font-size: 1.6rem;
    color: var(--dark-gray);
    line-height: 1.6;
    opacity: 0.8;
}

/* MOBILE: Scroll horizontal */
.stats-scroll,
.stats-scroll.slides-container {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.stats-scroll::-webkit-scrollbar {
    height: 8px;
}

.stats-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.stats-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* CARDS */
.stat-card,
.stat-card.slide-item {
    flex: 0 0 28rem; /* Ancho fijo para scroll */
    background: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-image {
    /* Alto fijo 60px por defecto (el inline style de cada tarjeta lo
       sobreescribe); el ancho queda libre ("auto") para que cada imagen
       conserve su propia proporción sin deformarse ni quedar encajonada
       en una caja de ancho fijo. Así todas comparten el mismo alto. */
    height: 6rem;
    width: auto;
    max-width: 100%;
    margin-bottom: 1.5rem;
}

.stat-number {
    font-family: var(--secondary-font);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.stat-description {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--dark-gray);
    opacity: 0.8;
    margin: 0;
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .why-koblenz-section {
        padding: 10rem 0 !important;
    }

    .why-koblenz-section .container {
        display: flex !important;
        align-items: flex-start !important;
        gap: 6rem !important;
    }

    .why-koblenz-section .section-header {
        flex: 0 0 45% !important;
        text-align: left !important;
        margin-bottom: 0 !important;
    }

    .why-koblenz-section h2 {
        font-size: 4.8rem !important;
        margin-bottom: 3rem !important;
    }

    .why-koblenz-section .subtitle {
        font-size: 2.4rem !important;
    }

    .stats-scroll,
    .stats-scroll.slides-container {
        flex: 0 0 55% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
    }

    .stat-card,
    .stat-card.slide-item {
        padding: 3rem 2.5rem !important;
        text-align: left !important;
        min-height: 16rem !important;
        align-items: flex-start !important;
    }

    .stat-number {
        font-size: 4rem !important;
    }
}

/* ---- resources.css ---- */
/* ==============================================
   RECURSOS - MOBILE FIRST
   ============================================== */
   .resources-section {
    /* Full-bleed: ver why-koblenz.css para la explicación completa. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 4rem 0;
}

.resources-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ED174F' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    z-index: 1;
}

.resources-container {
    position: relative;
    z-index: 2;
}

.resources-title {
    font-family: var(--secondary-font);
    font-size: 3.2rem;
    font-weight: 400;
    color: var(--dark-gray);
    margin-bottom: 4rem;
    line-height: 1.3;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--primary), #ff4081);
}

.resource-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.card-title {
    font-family: var(--secondary-font);
    font-size: 2.2rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.card-subtitle {
    font-family: var(--main-font);
    font-size: 1.6rem;
    color: var(--dark-gray);
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.4;
}

.access-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-size: 1.6rem;
    font-weight: 600;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: 0 0.4rem 1.2rem rgba(237, 23, 79, 0.3);
}

.access-button:hover {
    background: #c8143e;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.8rem rgba(237, 23, 79, 0.4);
}

.access-button svg {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
    transition: transform var(--transition-base);
}

.access-button:hover svg {
    transform: translateX(0.3rem);
}

/* ==============================================
   TABLET
   ============================================== */
@media (min-width: 768px) {
    .resources-title {
        font-size: 3.8rem;
        margin-bottom: 5rem;
    }

    .resources-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 5rem;
    }

    .resource-card {
        padding: 4rem 3rem;
    }

    .card-icon {
        width: 7rem;
        height: 7rem;
        margin-bottom: 2.5rem;
    }

    .card-title {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }

    .card-subtitle {
        font-size: 1.7rem;
    }

    .access-button {
        padding: 1.4rem 3rem;
        font-size: 1.7rem;
    }
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .resources-title {
        font-size: 4.8rem;
        margin-bottom: 6rem;
    }

    .resources-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        margin-bottom: 6rem;
    }

    .resource-card {
        padding: 5rem 4rem;
    }

    .card-icon {
        width: 8rem;
        height: 8rem;
        margin-bottom: 3rem;
    }

    .card-title {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
    }

    .card-subtitle {
        font-size: 1.8rem;
    }

    .access-button {
        padding: 1.6rem 3.5rem;
        font-size: 1.8rem;
    }

    .access-button svg {
        width: 2rem;
        height: 2rem;
    }
}

/* Accesibilidad */
.resource-card:focus-within,
.access-button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ---- cta.css ---- */
/* ==============================================
   CTA SECTION - MOBILE FIRST
   ============================================== */
   .cta-section {
    /* Full-bleed: ver why-koblenz.css para la explicación completa. */
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* El oscurecido (opacity) lo define el widget: control "Oscurecer
       imagen" en Elementor, 60% por defecto. */
    background: #000;
    opacity: 0.6;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 90rem;
    width: 100%;
}

.cta-title {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--white);
}

.cta-subtitle {
    font-family: var(--main-font);
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.2rem 2.4rem;
    border-radius: 2.5rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-size: 1.5rem;
    font-weight: 600;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 22rem;
    text-align: center;
}

.cta-btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0.4rem 1.2rem rgba(237, 23, 79, 0.3);
}

.cta-btn--primary:hover {
    background: #c8143e;
    border-color: #c8143e;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.8rem rgba(237, 23, 79, 0.4);
}

.cta-btn--secondary {
    background: var(--white);
    color: var(--dark-gray);
    border-color: var(--white);
    box-shadow: 0 0.4rem 1.2rem rgba(255, 255, 255, 0.2);
}

.cta-btn--secondary:hover {
    background: var(--ligth-gray);
    border-color: var(--ligth-gray);
    transform: translateY(-0.2rem);
    box-shadow: 0 0.6rem 1.8rem rgba(255, 255, 255, 0.3);
}

.cta-btn-icon {
    width: 1.8rem;
    height: 1.8rem;
    fill: currentColor;
}

/* ==============================================
   TABLET
   ============================================== */
@media (min-width: 768px) {
    .cta-section {
        min-height: 70vh;
        padding: 5rem 3rem;
    }

    .cta-title {
        font-size: 4rem;
        margin-bottom: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.8rem;
        margin-bottom: 4rem;
    }

    .cta-buttons {
        flex-direction: row;
        gap: 2rem;
        justify-content: center;
    }

    .cta-btn {
        padding: 1.4rem 2.8rem;
        font-size: 1.6rem;
        min-width: 24rem;
    }

    .cta-btn-icon {
        width: 2rem;
        height: 2rem;
    }
}

/* ==============================================
   DESKTOP
   ============================================== */
@media (min-width: 1024px) {
    .cta-section {
        min-height: 75vh;
        padding: 6rem 4rem;
    }

    .cta-content {
        max-width: 140rem;
    }

    .cta-title {
        font-size: 5.2rem;
        margin-bottom: 3rem;
        line-height: 1.1;
    }

    .cta-subtitle {
        font-size: 2.2rem;
        margin-bottom: 4.5rem;
        max-width: 80rem;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        gap: 2.5rem;
    }

    .cta-btn {
        padding: 1.6rem 3.2rem;
        font-size: 1.7rem;
        min-width: 26rem;
    }

    .cta-btn-icon {
        width: 2.2rem;
        height: 2.2rem;
    }
}

@media (min-width: 1200px) {
    .cta-title {
        font-size: 6rem;
    }

    .cta-subtitle {
        font-size: 2.4rem;
    }
}

/* Accesibilidad */
.cta-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* ---- product-detail.css ---- */
/* ==============================================
   DETALLE DE PRODUCTO — REDISEÑO v2
   Carrusel + Zoom + Acordeones
   Mobile First
   ============================================== */

/* Breadcrumbs */
.product-detail.section {
    padding-top: 2rem;
}

/* ==============================================
   BARRA STICKY DE PRODUCTO
   Aparece al hacer scroll, anclada debajo del menú,
   con la imagen y el nombre del producto.
   ============================================== */
.sticky-product-bar {
    position: fixed;
    top: var(--header-height, 86px);
    left: 0;
    width: 100%;
    z-index: 900;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--ligth-gray);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.sticky-product-bar.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.sticky-product-bar__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.6rem 0;
}

.sticky-product-bar__media {
    flex-shrink: 0;
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ligth-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sticky-product-bar__media img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sticky-product-bar__title {
    font-family: var(--main-font);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
    font-family: var(--main-font);
}

.breadcrumbs a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 400;
}

.breadcrumbs a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.breadcrumbs .separator {
    color: var(--dark-gray);
    opacity: 0.4;
    font-size: 1.2rem;
}

.breadcrumbs .current {
    color: var(--dark-gray);
    font-weight: 400;
}

/* ==============================================
   LAYOUT PRINCIPAL
   ============================================== */
.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 3rem;
    margin-bottom: 4rem;
}

/* ==============================================
   GALERÍA — Imagen principal + Thumbnails
   ============================================== */
.product-gallery {
    width: 100%;
}

.gallery-main {
    position: relative;
    width: 100%;
    /* Alto fijo e independiente del ancho de columna y de la imagen mostrada:
       nunca cambia al alternar miniaturas, y se limita a la altura de pantalla
       para que la imagen principal y el carrusel de miniaturas quepan juntos. */
    height: clamp(31rem, calc(48vh + 5rem), 51rem);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
}

/* Efecto zoom-in al cargar la imagen principal por primera vez (carga inicial de la página) */
@keyframes galleryImageZoomIn {
    from {
        opacity: 0;
        transform: scale(1.08);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-main img.zoom-in {
    animation: galleryImageZoomIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Efecto fade + slide al cambiar de imagen en el carrusel, según la dirección */
@keyframes galleryImageSlideInRight {
    from {
        opacity: 0;
        transform: translateX(4rem) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes galleryImageSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-4rem) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.gallery-main img.slide-in-right {
    animation: galleryImageSlideInRight 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-main img.slide-in-left {
    animation: galleryImageSlideInLeft 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gallery-main.gallery-placeholder img {
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* Botón de zoom */
.gallery-zoom-btn {
    position: absolute;
    bottom: 1.2rem;
    right: 1.2rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid #ddd;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.gallery-zoom-btn:hover {
    background: var(--dark-gray);
    color: var(--white);
    border-color: var(--dark-gray);
}

/* Thumbnails */
.gallery-thumbnails {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 7rem;
    height: 7rem;
    border: 2px solid #ddd;
    border-radius: 0.6rem;
    overflow: hidden;
    cursor: pointer;
    background: var(--white);
    padding: 0.4rem;
    transition: border-color var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-thumb:hover {
    border-color: #999;
}

.gallery-thumb.active {
    border-color: var(--dark-gray);
}

/* Imagen extra debajo del carrusel (ej. infografía de características/certificaciones) */
.product-gallery-extra {
    width: 80%;
    margin: 0 auto;
    padding-top: 80px;
}

.product-gallery-extra img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* ==============================================
   INFO DEL PRODUCTO — Derecha
   ============================================== */
.product-info {
    width: 100%;
}

.product-title {
    font-family: var(--main-font);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.8rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.product-sku {
    font-family: var(--main-font);
    font-size: 1.4rem;
    color: #666; /* #888 no llegaba al contraste mínimo (4.5:1) sobre blanco */
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ==============================================
   ACORDEONES
   ============================================== */
.product-accordions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.accordion-item {
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 2rem;
    background: #F9F9F9;
    border: none;
    cursor: pointer;
    font-family: var(--main-font);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--dark-gray);
    transition: color var(--transition-base), background var(--transition-base);
}

.accordion-header:hover {
    color: var(--primary);
}

.accordion-arrow {
    flex-shrink: 0;
    transition: transform var(--transition-base);
    color: var(--dark-gray);
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.accordion-content {
    padding: 1.6rem 2rem 2rem;
    font-size: 1.5rem;
    line-height: 1.7;
    color: #555;
}

.accordion-content p {
    margin-bottom: 1rem;
}

/* reset.css quita las viñetas a todos los <ul>; aquí se restauran porque
   el contenido viene de un WYSIWYG y el editor espera verlas. */
.accordion-content ul,
.accordion-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.accordion-content ul {
    list-style: disc;
}

.accordion-content ol {
    list-style: decimal;
}

.accordion-content ul ul {
    list-style: circle;
    margin-bottom: 0;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

/* ==============================================
   BOTÓN COTIZACIÓN
   ============================================== */
.product-actions {
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
}

.btn-cotizacion {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary);
    color: var(--white);
    padding: 1.2rem 2.8rem;
    border-radius: 3rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    box-shadow: 0 0.4rem 1.2rem rgba(218, 32, 55, 0.25);
}

.btn-cotizacion:hover {
    background: #c4162f;
    transform: translateY(-2px);
    box-shadow: 0 0.6rem 1.8rem rgba(218, 32, 55, 0.35);
}

.btn-cotizacion svg {
    flex-shrink: 0;
}

/* Botón secundario junto a "Solicita una cotización" — mismas medidas que
   .btn-cotizacion (mismo tamaño de botón, se ven como un par), pero con
   el tono oscuro de .btn-secondary (buttons.css) en vez del rojo primario,
   para que "Solicitar cotización" se mantenga como la acción principal. */
.btn-ficha-tecnica {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--dark-gray);
    color: var(--white);
    padding: 1.2rem 2.8rem;
    border-radius: 3rem;
    text-decoration: none;
    font-family: var(--main-font);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.btn-ficha-tecnica:hover {
    background: #1f1f1f;
    transform: translateY(-2px);
}

.btn-ficha-tecnica svg {
    flex-shrink: 0;
}

/* ==============================================
   BADGES
   ============================================== */
.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--main-font);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-gray);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color var(--transition-base);
}

.badge-item:hover,
.badge-item:focus-visible {
    color: var(--primary);
    outline: none;
}

.badge-item svg {
    color: var(--dark-gray);
    flex-shrink: 0;
    transition: color var(--transition-base);
}

.badge-item:hover svg,
.badge-item:focus-visible svg {
    color: var(--primary);
}

/* ==============================================
   MODALES DE BADGES (Soporte, Garantía, Pago seguro)
   ============================================== */
.badge-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.badge-modal.active {
    display: flex;
}

.badge-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.badge-modal-box {
    position: relative;
    width: fit-content;
    min-width: 28rem;
    max-width: min(90vw, 46rem);
    max-height: 85vh;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid #ececec;
    border-radius: 1.2rem;
    padding: 3.2rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12);
}

/* El tamaño del modal se ajusta a la cantidad de contenido de cada badge */
.badge-modal--garantia .badge-modal-box {
    max-width: min(90vw, 58rem);
}

.badge-modal--pago-seguro .badge-modal-box {
    max-width: min(90vw, 44rem);
}

.badge-modal--soporte .badge-modal-box {
    max-width: min(90vw, 32rem);
}

.badge-modal-box h3 {
    font-family: var(--main-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 1.8rem;
    padding-right: 2.8rem;
}

.badge-modal-content {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #555;
}

.badge-modal-content p {
    margin-bottom: 1.2rem;
}

.badge-modal-content p:last-child {
    margin-bottom: 0;
}

.badge-modal-content strong {
    color: var(--dark-gray);
}

.badge-modal-content ul {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.badge-modal-close {
    position: absolute;
    top: 2.8rem;
    right: 2.8rem;
    width: 2rem;
    height: 2rem;
    border-radius: 0;
    background: none;
    border: none;
    padding: 0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: color var(--transition-base);
}

.badge-modal-close:hover {
    color: var(--dark-gray);
}

/* ==============================================
   ZOOM MODAL / LIGHTBOX
   ============================================== */
.zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zoom-modal.active {
    opacity: 1;
    visibility: visible;
}

.zoom-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 4.4rem;
    height: 4.4rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-base);
    z-index: 10;
}

.zoom-modal-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.zoom-modal-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.zoom-nav-btn {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-base);
    pointer-events: all;
}

.zoom-nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.12);
}

.zoom-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.zoom-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-modal-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.15s ease;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

/* ==============================================
   DESCRIPCIÓN COMPLETA
   ============================================== */
.product-full-description {
    margin-bottom: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--ligth-gray);
}

.product-full-description h2 {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.content-formatted {
    font-size: 1.6rem;
    line-height: 1.8;
    color: var(--dark-gray);
}

.content-formatted p {
    margin-bottom: 1.5rem;
}

.content-formatted ul,
.content-formatted ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

/* ==============================================
   DOCUMENTOS DESCARGABLES
   ============================================== */
.product-downloads {
    margin-bottom: 5rem;
    padding-top: 3rem;
    border-top: 2px solid var(--ligth-gray);
}

.product-downloads h2 {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.downloads-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--ligth-gray);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--dark-gray);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.download-card:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-0.2rem);
    box-shadow: var(--shadow-md);
}

.download-icon {
    width: 3rem;
    height: 3rem;
    fill: var(--primary);
    flex-shrink: 0;
}

.download-card span {
    font-weight: 600;
    font-size: 1.6rem;
}

/* ==============================================
   PRODUCTOS RELACIONADOS
   ============================================== */
.related-products {
    padding-top: 3rem;
    border-top: 2px solid var(--ligth-gray);
}

.related-products h2 {
    font-family: var(--secondary-font);
    font-size: 2.8rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.related-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.related-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-lg);
}

.related-card a {
    text-decoration: none;
    color: var(--dark-gray);
    display: block;
}

.related-image {
    width: 100%;
    height: 20rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
    padding: 2rem;
}

.related-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-card h3 {
    font-family: var(--secondary-font);
    font-size: 2rem;
    padding: 1.5rem 2rem 1rem;
    margin: 0;
}

.view-product {
    display: block;
    padding: 0 2rem 1.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.4rem;
}

/* ==============================================
   NO ENCONTRADO
   ============================================== */
.no-product {
    text-align: center;
    padding: 5rem 2rem;
}

.no-product h1 {
    font-family: var(--secondary-font);
    font-size: 3.6rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.no-product p {
    font-size: 1.8rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

/* ==============================================
   TABLET — 768px+
   ============================================== */
@media (min-width: 768px) {
    .product-content-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .product-title {
        font-size: 3rem;
    }

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

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .gallery-thumb {
        width: 8rem;
        height: 8rem;
    }
}

/* ==============================================
   DESKTOP — 1024px+
   ============================================== */
@media (min-width: 1024px) {
    .breadcrumbs {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .product-detail.section {
        padding-top: 2.5rem;
    }

    .badge-modal-box {
        padding: 4rem;
    }

    .product-content-wrapper {
        gap: 5rem;
        margin-bottom: 5rem;
    }

    .product-title {
        font-size: 3.4rem;
        margin-bottom: 1rem;
    }

    .product-sku {
        font-size: 1.5rem;
    }

    .accordion-header {
        font-size: 1.7rem;
        padding: 1.8rem 2rem;
    }

    .accordion-content {
        font-size: 1.6rem;
    }

    .product-full-description h2,
    .product-downloads h2,
    .related-products h2 {
        font-size: 3.6rem;
    }

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

    .related-card h3 {
        font-size: 2.2rem;
    }
}

/* ==============================================
   ACCESIBILIDAD
   ============================================== */
.download-card:focus-visible,
.related-card:has(:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.accordion-header:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.gallery-thumb:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .gallery-main img,
    .accordion-body,
    .zoom-modal,
    .btn-cotizacion,
    .download-card,
    .related-card,
    .related-image img {
        transition: none;
    }
}

/* ---- page.css ---- */
/* ==============================================
   PÁGINA GENÉRICA (page.php)
   Páginas de contenido libre sin plantilla propia:
   Aviso de Privacidad y Términos y Condiciones.
   Todo va acotado a .page-generica para no afectar
   el resto del sitio.
   ============================================== */

.page-generica > h1 {
    text-align: center;
}

/* Texto de las páginas legales. Sin esto heredan el gris de Elementor
   (#7a7a7a), que no llega al contraste mínimo 4.5:1. .page-content es la
   clase del texto pegado en Términos y Condiciones (página de Elementor). */
.page-generica,
.page-content {
    color: var(--dark-gray);
}

/* reset.css quita las viñetas de todos los <ul> (menús, tarjetas, etc.).
   Aquí se devuelven para el texto redactado en el editor. Se aplican al
   <li> (no al <ul>) porque algunos <ul> pegados traen
   style="display:list-item" en línea, y así el <ul> no muestra una
   viñeta propia. */
.page-generica ul {
    margin: 1rem 0 2rem;
    padding-left: 2.4rem;
}

.page-generica ul > li {
    list-style-type: disc;
    margin-bottom: 0.6rem;
}

.page-generica ul ul > li {
    list-style-type: circle;
}

.page-generica ol {
    margin: 1rem 0 2rem;
    padding-left: 2.4rem;
}

.page-generica ol > li {
    margin-bottom: 0.6rem;
}

/* ---- 404.css ---- */
/* ==============================================
   PÁGINA NO ENCONTRADA (404.php)
   ============================================== */

.pagina-404 {
    max-width: 72rem;
    text-align: center;
}

.pagina-404__codigo {
    margin: 0;
    color: var(--primary);
    font-size: clamp(8rem, 22vw, 16rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.4rem;
}

.pagina-404__titulo {
    margin: 1.6rem 0 1.2rem;
}

.pagina-404__texto {
    margin: 0 auto 3.2rem;
    max-width: 52rem;
    font-size: 1.6rem;
    line-height: 1.6;
}

.pagina-404__atajos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
}

.pagina-404__inicio {
    margin-top: 3.2rem;
    font-size: 1.5rem;
}

.pagina-404__inicio a {
    color: var(--dark-gray);
    font-weight: 600;
}

.pagina-404__inicio a:hover,
.pagina-404__inicio a:focus {
    color: var(--primary);
}

/* En celular los botones ocupan todo el ancho, uno debajo de otro */
@media (max-width: 480px) {
    .pagina-404__atajos {
        flex-direction: column;
    }
}

/* ---- utilities.css ---- */
/* ==============================================
   ELEMENTOR: contenedores full-bleed
   Elementor le agrega su propio padding vertical (--padding-block-start/
   end, vía .e-con / .e-con-inner) al contenedor que envuelve cada widget.
   Nuestras secciones full-bleed (Hero, Why Koblenz,
   Recursos, CTA, Productos) ya definen su propio espaciado, así que ese
   padding extra de Elementor solo deja un espacio en blanco no deseado
   antes o después. Se anula únicamente en los contenedores que envuelven
   estas secciones puntuales, sin afectar el resto del sitio armado con
   Elementor.
   ============================================== */
.e-con:has(> .hero),
.e-con:has(> .why-koblenz-section),
.e-con:has(> .resources-section),
.e-con:has(> .cta-section),
.e-con:has(> .products-section),
.e-con-inner:has(> .hero),
.e-con-inner:has(> .why-koblenz-section),
.e-con-inner:has(> .resources-section),
.e-con-inner:has(> .cta-section),
.e-con-inner:has(> .products-section) {
    padding-block-start: 0 !important;
    padding-block-end: 0 !important;
}

/* ==============================================
   UTILITIES
   ============================================== */
   .text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-white {
    color: var(--white);
}

.text-dark {
    color: var(--dark);
}

.spacing-small {
    padding: 3rem 0;
}

.spacing-normal {
    padding: 5rem 0;
}

.spacing-large {
    padding: 8rem 0;
}

.spacing-xlarge {
    padding: 12rem 0;
}

/* ==============================================
   ANIMACIONES DE ENTRADA AL HACER SCROLL (Scroll Reveal)
   Ver js/scroll-reveal.js. El JS agrega "is-visible" al
   entrar en pantalla y calcula el retraso escalonado entre
   elementos hermanos (tarjetas de una misma grilla/fila).
   --reveal-duration y --reveal-distance son editables desde
   Elementor: widget "Koblenz — Animaciones (configuración)".
   ============================================== */
.reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 3rem));
    transition: opacity var(--reveal-duration, 0.6s) ease, transform var(--reveal-duration, 0.6s) ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity var(--reveal-duration, 0.6s) ease, transform var(--reveal-duration, 0.6s) ease;
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}

/* ==============================================
   ACCESIBILIDAD
   ============================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

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

/* ==============================================
   ZONA EDITABLE (Elementor / editor de WordPress)
   Se usa en front-page, page-products y page-cotizacion
   para permitir contenido adicional editable sin afectar
   las secciones ya construidas a la medida.
   ============================================== */
.editable-content-zone {
    margin: 3rem 0;
}

.editable-content-zone:empty {
    display: none;
}
