/* ==========================================================================
   COOPROAGRIG 2026 - SISTEMA DE DISEÑO CORPORATIVO CREADO DESDE CERO
   ========================================================================== */

:root {
    /* Paleta Oficial de Colores Solicitada */
    --primary: #29225B;
    --corporate: #001E57;
    --night: #101735;
    --bg-light: #F4F7FF;
    --white: #FFFFFF;
    --text-dark: #333333;
    --border-soft: #EEF1F7;
    --text-muted: #666666;
    --whatsapp-green: #25D366;

    /* Tipografías */
    --font-title: 'Montserrat', sans-serif;
    --font-body: 'Sora', sans-serif;

    /* Configuraciones de Interfaz Estándar 2026 */
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-sm: 6px;
    --shadow-sm: 0 4px 20px rgba(0, 30, 87, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 30, 87, 0.08);
    --shadow-lg: 0 24px 64px rgba(16, 23, 53, 0.12);
    --transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. RESET Y AJUSTES BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    color: var(--night);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
textarea {
    font-family: inherit;
}

/* 2. CLASES DE UTILIDAD Y DISEÑO NATIVO */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-width-md {
    max-width: 760px;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white) !important;
}

.section-spacing {
    padding: 120px 0;
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-corporate {
    background-color: var(--corporate);
}

.bg-night {
    background-color: var(--night);
}

.margin-top-md {
    margin-top: 32px;
}

.margin-top-lg {
    margin-top: 56px;
}

.margin-top-xl {
    margin-top: 80px;
}

.margin-bottom-sm {
    margin-bottom: 16px;
}

.margin-bottom-md {
    margin-bottom: 32px;
}

.margin-bottom-lg {
    margin-bottom: 48px;
}

.align-center {
    align-items: center;
}

/* Grid Estructurado Nivel Premium */
.grid-layout {
    display: grid;
    gap: 24px;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-md {
    gap: 24px;
}

.gap-lg {
    gap: 48px;
}

/* Componentes de Encabezado de Secciones */
.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--corporate);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
}

.section-subtitle {
    display: block;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.divider-line {
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    margin: 24px auto;
    border-radius: 2px;
}

/* Botones Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--corporate);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-white-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn-white-outline:hover {
    background-color: var(--white);
    color: var(--corporate);
}

.btn-white {
    background-color: var(--white);
    color: var(--corporate);
    font-weight: 600;
}

.btn-white:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Estructura de Tarjetas */
.card-modern {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
    padding: 40px;
    transition: var(--transition);
}

.card-modern:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
}

/* 3. TOP BAR */
.top-bar {
    background-color: var(--corporate);
    color: var(--white);
    font-size: 0.85rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-info {
    display: flex;
    gap: 24px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.top-bar-info i {
    color: var(--white);
    opacity: 0.7;
}

.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* 4. HEADER MODERNO STICKY */
#main-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

#main-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-bottom-color: var(--border-soft);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
}

#main-header.scrolled .header-flex {
    height: 75px;
}

.header-logo img {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

#main-header.scrolled .header-logo img {
    height: 42px;
}

/* Menú de Navegación */
.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--corporate);
    cursor: pointer;
}

/* ==================================================
   5. HERO PRINCIPAL CON SLIDER CINEMÁTICO
================================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 650px;

    display: flex;
    align-items: center;

    overflow: hidden;
    isolation: isolate;
    background-color: var(--corporate);
}

/* Contenedor de imágenes */

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: var(--bg-position, center center);
    background-repeat: no-repeat;

    opacity: 0;
    visibility: hidden;
    transform: scale(1.07);

    transition:
        opacity 1.1s ease,
        visibility 1.1s ease,
        transform 7s linear;

    will-change: opacity, transform;
}

.hero-slider .slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Superposición para mejorar la lectura */

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background:
        linear-gradient(90deg,
            rgba(0, 30, 87, 0.94) 0%,
            rgba(0, 30, 87, 0.78) 38%,
            rgba(16, 23, 53, 0.48) 68%,
            rgba(16, 23, 53, 0.22) 100%),
        linear-gradient(180deg,
            rgba(16, 23, 53, 0.08) 0%,
            rgba(16, 23, 53, 0.38) 100%);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: -1;

    height: 35%;
    pointer-events: none;

    background: linear-gradient(0deg,
            rgba(16, 23, 53, 0.45),
            transparent);
}

/* Contenido */

.hero-container-content {
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-text-block {
    width: min(760px, 100%);
    padding: 90px 0 120px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;

    margin-bottom: 24px;
    padding: 8px 18px;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.12);
    color: var(--white);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-section h1 {
    max-width: 760px;
    margin-bottom: 24px;

    color: var(--white);
    font-family: var(--font-title);
    font-size: clamp(2.8rem, 4.7vw, 4.8rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-section p {
    max-width: 630px;
    margin-bottom: 38px;

    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* Flechas laterales */

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 20;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;

    background: rgba(0, 30, 87, 0.42);
    color: var(--white);

    cursor: pointer;
    opacity: 0.78;

    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.hero-arrow i {
    font-size: 1.45rem;
    pointer-events: none;
}

.hero-arrow-prev {
    left: clamp(16px, 2vw, 36px);
}

.hero-arrow-next {
    right: clamp(16px, 2vw, 36px);
}

.hero-arrow:hover {
    opacity: 1;
    background: var(--primary);
    border-color: rgba(255, 255, 255, 0.85);
}

.hero-arrow-prev:hover {
    transform: translateY(-50%) translateX(-3px);
}

.hero-arrow-next:hover {
    transform: translateY(-50%) translateX(3px);
}

/* Indicadores inferiores */

.hero-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 20;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    transform: translateX(-50%);
}

.hero-slider-dot {
    width: 9px;
    height: 9px;

    padding: 0;
    border: none;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.48);
    box-shadow: none;

    cursor: pointer;

    transition:
        width 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.hero-slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.14);
}

.hero-slider-dot.active {
    width: 30px;
    background: var(--white);
}

/* Tablet */

@media (max-width: 1024px) {
    .hero-section {
        min-height: 650px;
    }

    .hero-text-block {
        width: min(680px, calc(100% - 70px));
    }

    .hero-section h1 {
        font-size: clamp(2.7rem, 6vw, 4rem);
    }
}

/* Móvil */

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 690px;
        align-items: flex-end;
    }

    .hero-section::before {
        background:
            linear-gradient(180deg,
                rgba(0, 30, 87, 0.35) 0%,
                rgba(0, 30, 87, 0.7) 45%,
                rgba(16, 23, 53, 0.97) 100%);
    }

    .hero-slider .slide {
        background-position:
            var(--bg-position-mobile,
                var(--bg-position, center center));
    }

    .hero-text-block {
        width: 100%;
        padding: 130px 8px 115px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: clamp(2.2rem, 10vw, 3.3rem);
        line-height: 1.05;
    }

    .hero-section p {
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 350px;
    }

    .hero-arrow {
        top: auto;
        bottom: 26px;

        width: 42px;
        height: 42px;

        transform: none;
    }

    .hero-arrow-prev {
        left: 18px;
    }

    .hero-arrow-next {
        right: 18px;
    }

    .hero-arrow-prev:hover,
    .hero-arrow-next:hover {
        transform: none;
    }

    .hero-slider-dots {
        bottom: 41px;
        max-width: calc(100% - 140px);
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 660px;
    }

    .hero-text-block {
        padding-bottom: 110px;
    }

    .hero-tag {
        padding: 7px 14px;
        font-size: 0.7rem;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .hero-section h1 br {
        display: none;
    }

    .hero-slider-dot.active {
        width: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hero-slider .slide,
    .hero-arrow,
    .hero-slider-dot {
        transition: none !important;
        transform: none !important;
    }
}

/* Overlay Lineal Gradiente Profesional */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 30, 87, 0.88), rgba(16, 23, 53, 0.55), rgba(16, 23, 53, 0.25));
    z-index: -1;
}

.hero-container-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-text-block {
    max-width: 780px;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-section h1 {
    font-size: 3.5rem;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 40px;
    max-width: 620px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* 6. SECCIÓN BIENVENIDA */
.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* 7. SECCIÓN DE VIDEO INSTITUCIONAL */
.video-card-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.video-preview-box {
    position: relative;
    width: 100%;
    height: 520px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 87, 0.4);
    transition: var(--transition);
}

.video-play-btn {
    position: relative;
    z-index: 5;
    width: 85px;
    height: 85px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.video-play-btn span {
    margin-left: 5px;
}

.video-preview-box:hover .video-overlay {
    background-color: rgba(0, 30, 87, 0.55);
}

.video-preview-box:hover .video-play-btn {
    transform: scale(1.1);
    color: var(--corporate);
}

/* Tarjetas de Resumen */
.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* 8. SECCIÓN DE PILARES */
.card-pillar {
    border-color: rgba(41, 34, 91, 0.08);
}

.pillar-icon {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.card-pillar h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

/* ==================================================
   9. SECCIÓN DE PRODUCCIÓN CORREGIDA
================================================== */

.production-section {
    position: relative;
    overflow: hidden;
}

/* Bloques principales */

.production-block {
    padding: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.production-block.card-modern {
    padding: 0;
}

.prod-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: 500px;
}

/* Alternancia del segundo bloque */

.prod-grid.inverse {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.prod-grid.inverse .prod-image-side {
    order: 2;
}

.prod-grid.inverse .prod-text-side {
    order: 1;
}

/* Imagen principal */

.prod-image-side {
    position: relative;
    width: 100%;
    min-height: 500px;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--bg-position, center center);

    overflow: hidden;
    isolation: isolate;
}

/* Capa suave sobre la imagen */

.prod-image-side::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    pointer-events: none;

    background:
        linear-gradient(135deg,
            rgba(0, 30, 87, 0.08),
            transparent 45%);
}

/* Texto */

.prod-text-side {
    min-width: 0;
    padding: clamp(42px, 5vw, 68px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--white);
}

.prod-text-side h3 {
    max-width: 520px;
    margin: 0 0 20px;

    color: var(--corporate);
    font-family: var(--font-title);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.prod-text-side p {
    max-width: 620px;
    margin: 0 0 16px;

    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.98rem;
    line-height: 1.75;
}

/* Etiqueta del producto */

.prod-badge {
    width: fit-content;
    align-self: flex-start;

    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 7px 13px;

    border: 1px solid rgba(41, 34, 91, 0.1);
    border-radius: 999px;

    background: rgba(41, 34, 91, 0.07);
    color: var(--primary);

    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

/* Características */

.prod-features {
    display: grid;
    gap: 12px;

    margin: 10px 0 0;
    padding: 0;

    list-style: none;
}

.prod-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--text-muted);
    font-size: 0.93rem;
    font-weight: 500;
    line-height: 1.5;
}

.prod-features i {
    flex-shrink: 0;
    margin-top: 2px;

    color: var(--primary);
    font-size: 1.1rem;
}

/* Encabezado de otros productos */

.products-heading {
    max-width: 720px;
    margin: 85px auto 38px;
}

.products-heading h3 {
    margin-bottom: 12px;

    color: var(--corporate);
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    line-height: 1.2;
}

.products-heading p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Tarjetas secundarias */

.card-product {
    min-width: 0;
    min-height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    background: var(--white);
}

.prod-thumb {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 220px;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: var(--bg-position, center center);

    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}

.card-product:hover .prod-thumb {
    transform: scale(1.04);
}

.prod-content {
    position: relative;
    z-index: 2;

    flex: 1;
    min-height: 225px;
    padding: 25px 24px 28px;

    background: var(--white);
}

.product-category {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--primary);
    font-family: var(--font-title);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.prod-content h4 {
    margin-bottom: 11px;

    color: var(--night);
    font-size: 1.13rem;
    line-height: 1.35;
}

.prod-content p {
    margin: 0;

    color: var(--text-muted);
    font-size: 0.89rem;
    line-height: 1.65;
}

/* Tablet */

@media (max-width: 1024px) {

    .prod-grid,
    .prod-grid.inverse {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        min-height: 450px;
    }

    .prod-image-side {
        min-height: 450px;
    }

    .prod-text-side {
        padding: 42px 36px;
    }

    .prod-text-side h3 {
        font-size: clamp(1.8rem, 3.5vw, 2.25rem);
    }

    .prod-content {
        min-height: 205px;
    }
}

/* Móvil */

@media (max-width: 768px) {

    .prod-grid,
    .prod-grid.inverse {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .prod-grid.inverse .prod-image-side {
        order: 1;
    }

    .prod-grid.inverse .prod-text-side {
        order: 2;
    }

    .prod-image-side {
        min-height: 310px;
        height: 310px;

        background-position:
            var(--bg-position-mobile,
                var(--bg-position, center center));
    }

    .prod-text-side {
        padding: 36px 26px 40px;
    }

    .prod-text-side h3 {
        max-width: 100%;
        font-size: clamp(1.75rem, 7vw, 2.2rem);
    }

    .products-heading {
        margin: 60px auto 30px;
    }

    .prod-thumb {
        height: 240px;
        min-height: 240px;
    }

    .prod-content {
        min-height: auto;
    }
}

/* Móviles pequeños */

@media (max-width: 480px) {
    .prod-image-side {
        min-height: 255px;
        height: 255px;
    }

    .prod-text-side {
        padding: 30px 21px 34px;
    }

    .prod-badge {
        font-size: 0.66rem;
    }

    .prod-text-side p {
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .prod-thumb {
        height: 215px;
        min-height: 215px;
    }

    .prod-content {
        padding: 23px 21px 26px;
    }
}

/* 10. PROCESO PRODUCTIVO (TIMELINE HORIZONTAL / TARJETAS EN ESCALÓN) */
.timeline-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    position: relative;
    padding-top: 24px;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-soft);
    z-index: 1;
}

.timeline-step {
    position: relative;
    z-index: 2;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.timeline-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.step-number {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: rgba(41, 34, 91, 0.15);
    margin-bottom: 12px;
    transition: var(--transition);
}

.timeline-step:hover .step-number {
    color: var(--primary);
}

.step-details h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.step-details p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* 11. SECCIÓN DE SOSTENIBILIDAD */
.badge-white {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 4px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.text-muted-light {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
}

.sus-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.sus-item-block {
    display: flex;
    gap: 16px;
}

.sus-item-icon {
    font-size: 1.75rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sus-item-block h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.sus-item-block p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.sus-image-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.sus-image-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ==================================================
   12. TESTIMONIOS
================================================== */

.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.card-testimonial {
    position: relative;
    min-height: 100%;
    padding: 34px;

    display: flex;
    flex-direction: column;

    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.card-testimonial::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(90deg,
            var(--primary),
            var(--corporate));

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.card-testimonial:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(41, 34, 91, 0.18);
}

.card-testimonial:hover::before {
    transform: scaleX(1);
}

.testimonial-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.quote-mark {
    position: static;

    display: block;

    font-family: Georgia, serif;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.8;

    color: rgba(41, 34, 91, 0.12);
}

.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 3px;

    color: #e1a900;
    font-size: 0.92rem;
}

.card-testimonial>p {
    flex-grow: 1;

    margin: 0 0 28px;

    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-style: normal;
    line-height: 1.75;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 14px;

    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}

.testimonial-icon {
    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--bg-light);
    color: var(--primary);

    font-size: 1.35rem;
}

.user-info strong {
    display: block;
    margin-bottom: 3px;

    color: var(--corporate);
    font-family: var(--font-title);
    font-size: 0.94rem;
    font-weight: 700;
}

.user-info span {
    display: block;

    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

/* Tablet */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Móvil */
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card-testimonial {
        padding: 28px 24px;
    }
}

/* Móvil pequeño */
@media (max-width: 480px) {
    .card-testimonial {
        padding: 25px 20px;
    }

    .quote-mark {
        font-size: 3.8rem;
    }

    .testimonial-rating {
        font-size: 0.82rem;
    }

    .card-testimonial>p {
        font-size: 0.94rem;
        line-height: 1.65;
    }
}

/* 13. LLAMADO A LA ACCIÓN */
.cta-section {
    padding: 90px 0;
}

.bg-gradient-corporate {
    background: linear-gradient(135deg, var(--corporate) 0%, var(--night) 100%);
}

/* 14. FORMULARIO Y CONTACTO */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.method-item {
    display: flex;
    gap: 20px;
}

.method-icon {
    font-size: 1.75rem;
    color: var(--primary);
    background-color: var(--bg-light);
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-item strong {
    display: block;
    color: var(--corporate);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.method-item p {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--corporate);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #D9E1EC;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(41, 34, 91, 0.05);
}

/* 15. FOOTER */
.main-footer {
    padding: 80px 0 0;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 64px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    height: 55px;
    width: auto;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
}

.main-footer h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 24px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.footer-bottom {
    padding: 28px 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
}

/* WhatsApp Floating */
.whatsapp-floating {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background-color: var(--whatsapp-green);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
    z-index: 90;
    transition: var(--transition);
}

.whatsapp-floating:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* 16. ANIMACIÓN DE APARICIÓN DE ELEMENTOS (Intersection Observer) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Delays Progresivos Controlados */
.reveal[data-delay="1"] {
    transition-delay: 0.1s;
}

.reveal[data-delay="2"] {
    transition-delay: 0.25s;
}

.reveal[data-delay="3"] {
    transition-delay: 0.4s;
}

.reveal[data-delay="4"] {
    transition-delay: 0.55s;
}

/* 17. PREFERS REDUCED MOTION (ACCESIBILIDAD) */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .slide,
    .timeline-step,
    .card-modern,
    .whatsapp-floating {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ==================================================
   18. MEDIA QUERIES RESPONSIVE MEJORADAS
================================================== */

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

iframe {
    border: 0;
}

input,
textarea,
select,
button {
    max-width: 100%;
}

.hero-section h1,
.hero-section p,
.card h3,
.card p {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Pantallas medianas y tablets grandes */
@media (max-width: 1100px) {
    .nav-list {
        gap: 22px;
    }

    .header-actions {
        gap: 10px;
    }

    .btn-nav {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
}

/* Tablets */
@media (max-width: 1024px) {

    .cols-4,
    .cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .timeline-wrapper::before {
        display: none;
    }

    .hero-section {
        min-height: 650px;
    }

    .hero-section h1 {
        font-size: clamp(2.6rem, 6vw, 3.8rem);
    }

    .hero-text-block {
        width: min(680px, calc(100% - 70px));
    }

    .footer-top-grid {
        gap: 40px;
    }
}

/* Tablets pequeñas y móviles */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }

    .cols-2,
    .cols-3,
    .cols-4 {
        grid-template-columns: 1fr;
    }

    .section-spacing {
        padding: 80px 0;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .section-header h2 {
        font-size: clamp(1.9rem, 7vw, 2.35rem);
        line-height: 1.2;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Header móvil */
    .header-flex {
        height: 80px;
    }

    #main-header.scrolled .header-flex {
        height: 72px;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        max-height: calc(100dvh - 80px);
        overflow-y: auto;

        padding: 24px;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-md);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        pointer-events: none;

        transition:
            opacity 0.25s ease,
            transform 0.25s ease,
            visibility 0.25s ease;
    }

    #main-header.scrolled .nav-container {
        top: 72px;
        max-height: calc(100dvh - 72px);
    }

    .nav-container.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 18px;
        text-align: center;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 10px 0;
    }

    .btn-nav {
        display: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero móvil */
    .hero-section {
        height: auto;
        min-height: calc(100svh - 80px);
        align-items: flex-end;
    }

    .hero-text-block {
        width: 100%;
        padding: 125px 8px 115px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: clamp(2.15rem, 10vw, 3.3rem);
        line-height: 1.05;
        overflow-wrap: break-word;
    }

    .hero-section p {
        max-width: 540px;
        margin-left: auto;
        margin-right: auto;
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 350px;
    }

    .hero-arrow {
        top: auto;
        bottom: 22px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .hero-arrow-prev {
        left: 18px;
    }

    .hero-arrow-next {
        right: 18px;
    }

    .hero-arrow-prev:hover,
    .hero-arrow-next:hover {
        transform: none;
    }

    .hero-slider-dots {
        bottom: 37px;
        width: 100%;
        max-width: none;
        padding-inline: 65px;
    }

    /* Producción */
    .prod-grid,
    .prod-grid.inverse {
        grid-template-columns: 1fr;
    }

    .prod-image-side {
        min-height: 300px;
        height: 300px;
        background-position:
            var(--bg-position-mobile,
                var(--bg-position, center center));
    }

    .prod-text-side {
        padding: 34px 24px;
    }

    /* Timeline */
    .timeline-wrapper {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .timeline-step {
        padding: 24px 20px;
    }

    /* Video */
    .video-preview-box {
        height: 320px;
        border-radius: 20px;
    }

    /* Footer */
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding-inline: 18px;
    }

    .section-spacing {
        padding: 64px 0;
    }

    .header-logo img {
        height: 44px;
    }

    #main-header.scrolled .header-logo img {
        height: 40px;
    }

    .hero-section {
        min-height: calc(100svh - 80px);
    }

    .hero-text-block {
        padding: 110px 4px 105px;
    }

    .hero-tag {
        padding: 7px 14px;
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .hero-section h1 {
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .hero-section h1 br {
        display: none;
    }

    .hero-section p {
        font-size: 0.96rem;
    }

    .hero-buttons .btn {
        padding: 13px 18px;
        font-size: 0.95rem;
    }

    .prod-image-side {
        min-height: 260px;
        height: 260px;
    }

    .prod-thumb {
        height: 210px;
        min-height: 210px;
    }

    .video-preview-box {
        height: 260px;
        border-radius: 18px;
    }

    .video-play-btn {
        width: 68px;
        height: 68px;
    }

    .card-modern,
    .card-pillar,
    .card-testimonial {
        padding: 26px 22px;
    }

    .whatsapp-floating {
        width: 54px;
        height: 54px;
        right: 18px;
        bottom: 18px;
    }
}

/* Teléfonos muy pequeños */
@media (max-width: 360px) {
    .container {
        padding-inline: 14px;
    }

    .hero-text-block {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-section h1 {
        font-size: 1.85rem;
    }

    .hero-slider-dots {
        padding-inline: 58px;
        gap: 7px;
    }

    .hero-slider-dot.active {
        width: 22px;
    }
}

/* ==========================================================================
   AJUSTES DE OPTIMIZACIÓN, ACCESIBILIDAD Y EFECTOS PROFESIONALES
   ========================================================================== */
img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button {
    -webkit-tap-highlight-color: transparent;
}

section[id] {
    scroll-margin-top: 96px;
}

:focus-visible {
    outline: 3px solid rgba(41, 34, 91, 0.35);
    outline-offset: 4px;
}

/* Tarjeta base: corrige cards sin fondo/padding en pilares, productos y testimonios */
.card {
    background: var(--white);
    border: 1px solid rgba(41, 34, 91, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(41, 34, 91, 0.16);
}

.card-pillar {
    padding: 32px;
}

.card-testimonial {
    background: var(--white);
}

/* Mejor carga visual de imágenes diferidas de fondo */
.lazy-bg {
    background-color: #E9EEFA;
    background-image: linear-gradient(110deg, #E9EEFA 8%, #F5F7FF 18%, #E9EEFA 33%);
    background-size: 200% 100%;
    animation: bgSkeleton 1.1s linear infinite;
}

.lazy-bg.bg-loaded {
    animation: none;
}

@keyframes bgSkeleton {
    to {
        background-position-x: -200%;
    }
}

/* Producción: imagen al borde y mejor lectura */
.production-block.card-modern {
    padding: 0;
    overflow: hidden;
}

.prod-image-side,
.prod-thumb,
.video-preview-box {
    background-repeat: no-repeat;
}

.prod-image-side {
    min-height: 420px;
}

.card-product {
    min-height: 100%;
}

.prod-content {
    background: var(--white);
}

/* Video con zoom elegante sin cargar imagen pesada antes de tiempo */
.video-preview-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 0;
}

.video-preview-box:hover::before {
    transform: scale(1.06);
}

.video-overlay {
    z-index: 1;
}

.video-play-btn {
    z-index: 2;
}

.video-play-btn::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    animation: pulsePlay 1.8s ease-out infinite;
}

@keyframes pulsePlay {
    0% {
        transform: scale(0.92);
        opacity: 0.85;
    }

    100% {
        transform: scale(1.28);
        opacity: 0;
    }
}

/* Header y navegación más limpios */
.nav-list {
    list-style: none;
}

#main-header {
    will-change: box-shadow;
}

.nav-container.open {
    display: block;
}

/* Botón flotante con entrada elegante */
.whatsapp-floating {
    animation: floatIn 0.6s ease both, floatSoft 3s ease-in-out 0.8s infinite;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes floatSoft {

    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -4px;
    }
}

/* Formulario: estado de error discreto */
.form-group input.is-invalid,
.form-group textarea.is-invalid {
    border-color: #B42318;
    box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08);
}

.form-status {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--corporate);
}

@supports not ((backdrop-filter: blur(12px))) {
    #main-header {
        background-color: var(--white);
    }
}

@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }

    .nav-container {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .nav-container.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .slider-controls {
        right: 24px;
        bottom: 24px;
    }

    .card-modern {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 18px;
    }

    .hero-section {
        min-height: 560px;
        height: 76vh;
    }

    .hero-section h1 {
        font-size: 1.9rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.85rem;
    }

    .video-preview-box {
        height: 260px;
        border-radius: 18px;
    }

    .video-play-btn {
        width: 70px;
        height: 70px;
    }

    .whatsapp-floating {
        width: 54px;
        height: 54px;
        right: 20px;
        bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .video-play-btn::after,
    .whatsapp-floating,
    .lazy-bg {
        animation: none !important;
    }
}


/* ==========================================================================
   CORRECCIONES SOLICITADAS: BOTONES REMOVIDOS, FOTOS OPTIMIZADAS,
   GALERÍAS AUTOMÁTICAS Y MICROANIMACIONES PROFESIONALES
   ========================================================================== */

/* Quita controles manuales del slider si alguna versión antigua del HTML los conserva */
.slider-controls {
    display: none !important;
}

/* Evita saltos laterales y mejora el rendimiento de secciones largas */
body {
    overflow-x: hidden;
}

main>section {
    content-visibility: auto;
    contain-intrinsic-size: 780px;
}

/* Las imágenes de producción se ven limpias, centradas y sin deformarse */
.prod-image-side,
.prod-thumb,
.video-preview-box,
.slide {
    background-position: var(--bg-position, center center);
    background-size: cover;
    background-repeat: no-repeat;
}

/* Mejora visual de las fotos: contraste controlado, sin quemar luces */
.prod-image-side,
.prod-thumb {
    filter: saturate(1.05) contrast(1.02);
    transition:
        filter 0.55s ease,
        transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.35s ease;
}

/* Estado de cambio automático de foto */
.auto-bg-gallery {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.auto-bg-gallery::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 32%),
        linear-gradient(0deg, rgba(0, 30, 87, 0.10), transparent 55%);
    opacity: 0.45;
    transition: opacity 0.35s ease;
}

.auto-bg-gallery.is-changing {
    opacity: 0.86;
    filter: saturate(1.1) contrast(1.05) brightness(0.96);
}

.production-block:hover .prod-image-side,
.card-product:hover .prod-thumb {
    filter: saturate(1.13) contrast(1.05);
}

/* Tarjetas de productos más elegantes y con mejor proporción de imagen */
.card-product {
    overflow: hidden;
    background: var(--white);
}

.prod-thumb {
    height: 210px;
    min-height: 210px;
}

.prod-content {
    min-height: 136px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Se eliminan visualmente los enlaces tipo botón dentro de producción si quedan en caché */
.production-section .link-elegant {
    display: none !important;
}

/* Efecto premium sutil en tarjetas sin afectar velocidad */
.card,
.card-modern,
.timeline-step,
.method-item {
    will-change: transform;
}

.card::before,
.card-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), transparent 34%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.card,
.card-modern {
    position: relative;
}

.card:hover::before,
.card-modern:hover::before {
    opacity: 1;
}

/* Mejor transición de aparición */
.reveal {
    transform: translateY(28px) scale(0.985);
}

.reveal.active {
    transform: translateY(0) scale(1);
}

/* Hero con lectura más sólida y aspecto cinematográfico */
.hero-section::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 32%;
    background: linear-gradient(0deg, rgba(16, 23, 53, 0.35), transparent);
    z-index: 0;
    pointer-events: none;
}

.hero-container-content {
    z-index: 2;
}

.hero-tag {
    backdrop-filter: blur(8px);
}

/* Botones principales más consistentes */
.btn {
    box-shadow: 0 10px 24px rgba(16, 23, 53, 0.08);
}

.btn:hover {
    box-shadow: 0 16px 34px rgba(16, 23, 53, 0.14);
}

/* Grilla de productos con movimiento limpio */
.grid-layout .card-product {
    transform: translateY(0);
}

.grid-layout .card-product:hover {
    transform: translateY(-8px);
}

/* Ajustes específicos de fotos en móvil */
@media (max-width: 768px) {
    main>section {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .prod-image-side {
        min-height: 300px;
        height: 300px;
        background-position: var(--bg-position-mobile, var(--bg-position, center center));
    }

    .prod-thumb {
        height: 230px;
        min-height: 230px;
    }
}

@media (max-width: 480px) {
    .prod-image-side {
        min-height: 260px;
        height: 260px;
    }

    .prod-thumb {
        height: 210px;
        min-height: 210px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main>section {
        content-visibility: visible;
        contain-intrinsic-size: auto;
    }

    .auto-bg-gallery,
    .auto-bg-gallery::after,
    .prod-image-side,
    .prod-thumb {
        transition: none !important;
    }
}