/* ========================================
   1. HERO SECTION
   ======================================== */

.hero-section,
.prodcuts-section {
    position: relative;
    width: 100%;
    height: 140vh; 
    height: 140vh;
    height: 140dvh; 
    background-color: var(--color-gray-100);
    overflow: visible;
    padding-top: 70px;
}

.principal{
    font-size: 2rem !important;
}
.hero-splash-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
    transform: scaleX(0);
    transform-origin: right center;
}

.hero-splash-bg .splash-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-splash-bg .splash-svg--mobile {
    display: none;
}

@media (max-width: 64rem) {
    .hero-splash-bg .splash-svg--desktop { display: none; }
    .hero-splash-bg .splash-svg--mobile  { display: block; }
    .hero-splash-bg {
        transform: scaleX(1) scaleY(0);
        transform-origin: center bottom;
    }
    .splash-dot { display: none; }
}

.splash-dot { pointer-events: auto; }

.hero-section > * {
    position: relative;
    z-index: 1;
}

.hero-section > .hero-splash-bg {
    position: absolute;
    z-index: 0;
}



/* ========================================
   1b. ANTI-FOUC — Ocultar hero hasta que JS anime
   ======================================== */

.hero-content-inicial .hero-titulo,
.hero-content-inicial .posicionamiento,
.hero-content-inicial .hero-subtitulo,
.hero-content-inicial .hero-ctas,
.hero-content-inicial .hero-visual,
.hero-content-inicial .hero-image,
.hero-content-inicial .hero-imagen img,
.hero-splash-bg, .flotando {
    opacity: 0;
}
/* ========================================
   2. HERO — CONTENIDOS SUPERPUESTOS
   ======================================== */

.hero-content {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(140vh - 100px);
    display: grid;
    padding: var(--spacing-xl) var(--spacing-xl);
    grid-template-columns: 39rem auto;
    gap: var(--spacing-4xl);
}

.hero-content-inicial {
    opacity: 1;
    pointer-events: auto;
}

.hero-content-nuevo {
    position: relative;
    opacity: 0;
    pointer-events: none;
    display: flex !important;
    flex-direction: column;
    grid-template-columns: none;
    align-items: center;
    gap: var(--spacing-lg);
    justify-content: flex-start;   
    padding-top: 4rem;  

    
}


.hero-content-nuevo,
.hero-content-nuevo * {
    pointer-events: none !important;
}

.hero-content-nuevo.is-active,
.hero-content-nuevo.is-active * {
    pointer-events: auto !important;
}
.nuevo-overlay {
    position: absolute;
    top: -200px;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 200vw;
    z-index: 0;
    pointer-events: none;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(
            145deg,
            rgba(180, 6, 16, 0.92) 0%,
            rgba(139, 5, 12, 0.95) 35%,
            rgba(60, 2, 5, 0.97) 70%,
            rgba(18, 1, 2, 0.98) 100%
        );
}

.hero-content-nuevo > *:not(.nuevo-overlay) {
    position: relative;
    z-index: 1;
}

.contenedor-posicionamiento {
    display: flex;
    width: 100%;
    justify-content: center;
}

.nuevo-productos-header {
    text-align: center;
    max-width: 700px;
    align-items: center;
    flex-shrink: 0;
}

.hero-content-nuevo .hero-texto { pointer-events: none; }
.hero-content-nuevo .hero-texto .hero-subtitulo { color: rgba(255, 255, 255, 0.8); }
.hero-content-nuevo .hero-texto .hero-titulo { color: var(--color-white); }
.hero-content-nuevo .hero-texto .hero-titulo-destacado { color: #fde68a; }
.hero-content-nuevo .apareciendo-texto { color: var(--color-white); }


/* ========================================
   3. TEXTOS HERO
   ======================================== */

.hero-texto {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-lg) 0px var(--spacing-lg);
    pointer-events: none;
}

.hero-texto a, .hero-texto button, .hero-ctas, .hero-ctas * {
    pointer-events: auto;
}

.linea-general { margin: 0; line-height: var(--line-height-tight); }

.hero-titulo {
    font-family: var(--font-display);
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-gray-900);
    margin-bottom: var(--spacing-sm);
}

.hero-titulo-linea {
    display: block;
    width: 100%;
}

.hero-titulo .hero-titulo-linea.hero-titulo-destacado {
    display: block;
    width: fit-content;
}

.hero-subtitulo {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    color: var(--color-gray-600);
    margin-bottom: var(--spacing-md);
}

.hero-titulo-destacado {
    color: var(--color-red-500);
    position: relative;
    display: inline-block;
}



.hero-titulo-destacado::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 12px;
    background-color: rgba(229, 9, 20, 0.15);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.destacado {
    color: var(--color-red-500);
    position: relative;
    display: inline-block;
}

.destacado::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 12px;
    background-color: rgba(229, 9, 20, 0.15);
    z-index: -1;
    border-radius: var(--radius-sm);
}

.posicionamiento {
    font-family: var(--font-body);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

.posicionamiento span {
    color: var(--color-red-500);
    position: relative;
    display: inline-block;
}

.posicionamiento.sobreRojo {
    background-color: var(--color-white);
    padding: var(--spacing-sm);
    border-radius: var(--radius-lg);
    max-width: 200px;
}

.apareciendo-texto { color: var(--color-white); }


/* ========================================
   4. IMAGEN HERO — Visual + Tags flotantes
   ======================================== */

@keyframes float-products {
    0%, 100% { transform: translateY(0px); }
    50%      { transform: translateY(-20px); }
}

@keyframes fadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-imagen {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-imagen canvas {
    width: 100%; height: auto;
    display: block; max-width: 100%;
    object-fit: contain;
}

.hero-imagen img {
    position: absolute;
    width: 100%; height: auto;
    top: -120px;
    pointer-events: none;
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.15))
            drop-shadow(0 10px 30px rgba(0,0,0,0.1));
    animation: float-products 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.hero-imagen img:hover { transform: scale(1.02); }

.hero-visual {
    position: relative;
    animation: fadeLeft 0.8s 0.4s ease both;
    padding-top: 50px;
}

.hero-image-wrapper { position: relative; width: 100%; }

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 75%; height: 65%;
    background: radial-gradient(ellipse, rgba(212,43,43,0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
    animation: float-products 6s ease-in-out infinite;
}

@keyframes tagAppear {
    from { opacity: 0; transform: translateY(12px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.flotando {
    position: absolute;
    z-index: 4;
    animation: float-products 6s ease-in-out infinite;
}

.flotando--left   { animation-delay: -1s; left: -40px; top: 70%; }
.flotando--right  { animation-delay: -3s; left: 55%; top: 20%; }
.flotando--bottom { animation-delay: -5s; right: 0%; bottom: 10%; }

.product-tag {
    background: rgba(20,20,20,0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: tagAppear 0.6s ease both;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.product-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.08);
}

.flotando--left   .product-tag { animation-delay: 0.8s; }
.flotando--right  .product-tag { animation-delay: 1.1s; }
.flotando--bottom .product-tag { animation-delay: 1.4s; }

.tag-color {
    width: 14px; height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.2);
}

.tag-info { display: flex; flex-direction: column; }
.tag-name { font-size: 12px; font-weight: 600; color: #F5F5F5; line-height: 1.2; }
.tag-type { font-size: 10px; color: #888; letter-spacing: 0.5px; }


/* ========================================
   5. BOTONES CTA HERO
   ======================================== */

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    justify-content: start;
    width: 100%;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--color-red-500) 0%, var(--color-red-700) 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(229,9,20,0.25);
}

.btn-primary::after {
    content: '';
    position: absolute; inset: 0;
    background: var(--color-gray-900);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: -1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,26,26,0.2); }
.btn-primary:hover::after { opacity: 1; }
.btn-primary svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-hero-secondary {
    background-color: transparent;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    border-radius: var(--radius-md);
    box-shadow: rgba(0,0,0,0.02) 0px 1px 3px 0px, rgba(27,31,35,0.15) 0px 0px 0px 1px;
}

.btn-hero-secondary:hover {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    border-color: var(--color-gray-900);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-hero, .btn-hero-secondary {
    position: relative;
    z-index: 10;
    pointer-events: auto;
}


/* ========================================
   6. SECCIÓN PRODUCTOS — TARJETAS
   ======================================== */

.prodcuts-section,
.informacion-section {
    position: relative;
    width: 100%;
    height: auto;
    background-color: #fefefe;
    overflow: visible;
    padding-top: 100px;
}

.informacion-section { padding-top: 20px !important; }

.products-contenedor {
    position: relative;
    width: 100%;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.products-contenedor div h1 { font-size: 3.2em !important; }

.rowProductos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    justify-content: center;
    align-items: center;
    padding-top: 3rem;
}

.contenedor-completo {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ── Carrusel de productos ── */

.productos-carrusel {
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 3;
    display: block !important; 

    min-height: 0;
}

.productos-swiper {
    width: 100%;
    overflow: hidden;
    padding-bottom: 48px;
}

.productos-swiper .swiper-slide {
    height: auto;
}

.productos-swiper .swiper-slide .card-container {
    max-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}


.swiper-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.productos-swiper .swiper-button-prev,
.productos-swiper .swiper-button-next {
    position: static;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.productos-swiper .swiper-button-prev:hover,
.productos-swiper .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.productos-swiper .swiper-button-prev::after,
.productos-swiper .swiper-button-next::after {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.productos-swiper .swiper-pagination {
    position: static;
    display: flex;
    gap: 6px;
}

.productos-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transition: all 0.3s ease;
}

.productos-swiper .swiper-pagination-bullet-active {
    background: #fde68a;
    width: 24px;
    border-radius: 4px;
}

/* ── Card container ── */

.card-container {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.2rem;
    padding: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
    max-width: 24rem;
    width: 100%;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

/* Sweep de luz */
.card-container::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 5;
}

.card-container:hover::before { left: 100%; }

.card-container:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.card-container:hover .card-image { transform: scale(1.06); }
.card-container:hover .button-mas-info { box-shadow: 0 6px 24px rgba(229,9,20,0.4); }
.card-container:hover .button-mas-info .icon { transform: translateX(4px); }

/* ── Imagen ── */

.image-container {
    position: relative;
    width: 100%;
    height:clamp(300px, 40vh, 500px);
    border-radius: 1rem;
    overflow: hidden;
    background-color: #d1d1d1;
}

.card-image {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.swiper-slide:first-child .card-image {
    object-position: center bottom;
}


.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    pointer-events: none;
}

/* ── Contenido sobre imagen ── */

.content-container {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 14px 1.1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    z-index: 10;
    gap: 8px;
}

.texto-tarjeta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.texto-tarjeta .card-title {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-xl);
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.texto-tarjeta .card-info {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.4;
}

.texto-tarjeta .card-description { margin: 0; }

/* ── Botón ── */

@keyframes shine {
    0%  { left: -100px; }
    60% { left: 100%; }
    to  { left: 100%; }
}

.button-mas-info {
    position: relative;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 16px rgba(229, 9, 20, 0.3);
    padding: 0.45rem 1.1rem;
    background: linear-gradient(135deg, var(--color-red-500), var(--color-red-700));
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    color: #fff;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    border: none;
    outline: none;
    overflow: hidden;
    cursor: pointer;
    letter-spacing: 0.01em;
}

.button-mas-info .icon {
    width: 18px; height: 18px;
    transition: transform 0.3s ease;
}

.button-mas-info::before {
    content: "";
    position: absolute;
    width: 80px; height: 100%;
    background-image: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.4), rgba(255,255,255,0) 70%);
    top: 0; left: -100px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-container:hover .button-mas-info::before {
    opacity: 0.6;
    animation: shine 1.5s ease-out infinite;
}

.hero-wave-bottom {
    position: absolute;
    bottom: -310px; left: 0;
    width: 100%; height: auto;
    z-index: 3;
    pointer-events: none;
    display: block;
    line-height: 0;
}


/* ========================================
   7. TABLET (769px - 1024px)
   ======================================== */

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .hero-section { min-height: 100vh; padding: 2rem 1.5rem; }
    .hero-contenedor { max-width: 720px; margin: 0 auto; }
    .hero-content { display: flex; flex-direction: column; gap: 3rem; text-align: center; }
    .hero-texto { max-width: 100%; }
    .hero-titulo { font-size: 3rem; line-height: 1.1; }
    .hero-subtitulo { font-size: 1.1rem; line-height: 1.6; }
    .hero-ctas { flex-direction: column; gap: 1rem; align-items: center; }
    .btn-hero, .btn-hero-secondary { width: 100%; max-width: 300px; justify-content: center; }
    .hero-imagen { max-width: 400px; margin: 0 auto; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .hero-red-background { opacity: 0.7; box-shadow: -20px 0 50px rgba(229,9,20,0.2); }
    .productos-grid { grid-template-columns: repeat(3, 1fr) !important; gap: var(--spacing-md); max-width: 100%; }
    
}


/* ========================================
   8. MÓVIL GENERAL (0 - 1024px)
   ======================================== */

@media (max-width: 64rem) {

    /* --- Hero layout: mantener 140vh para que las tarjetas quepan --- */

    .hero-section {
        min-height: 140vh;
        min-height: 140dvh;
        height: 140vh;
        height: 140dvh;
        padding: 4rem 1rem 1.5rem;
        position: relative;
        overflow: hidden;
        background-color: var(--color-gray-100);
    }

    .hero-contenedor {
        width: 100%; max-width: 100%;
        padding: 0; height: 100%;
        position: relative;
    }

    .hero-titulo .hero-titulo-linea.hero-titulo-destacado {
        display: block;
        width: 100%;
    }


    .hero-content {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        gap: 1.5rem;
        height: calc(140vh - 80px);
        align-items: center;
        text-align: center;
        position: relative;
        z-index: 2;
    }

    .hero-content-inicial,
    .hero-content-nuevo {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
    }

    .hero-content-nuevo {
        width: 100%;
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    .hero-section::after {
        width: 100%; height: 50%;
        clip-path: polygon(0 15%, 100% 0%, 100% 100%, 0% 100%);
        bottom: 0; top: auto;
    }

    /* --- Textos --- */

    .hero-texto {
        width: 100%; max-width: 100%;
        order: 1; padding: 0;
    }

    .posicionamiento { font-size: 1rem; margin-bottom: 0.5rem; letter-spacing: 0.15em; }
    .posicionamiento span { display: inline; }
    .hero-titulo { font-size: 2.25rem; line-height: 1.1; margin-bottom: 1rem; }

    .hero-titulo-destacado { font-size: 2.75rem; margin: 0.25rem 0; }
    .hero-subtitulo { font-size: 1rem; line-height: 1.6; max-width: 100%; }

    /* --- CTAs --- */

    .hero-ctas { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 100%; }
    .btn-hero, .btn-hero-secondary { width: 100%; padding: 1rem 1.5rem; font-size: 1rem; justify-content: center; text-align: center; }
    .btn-hero-secondary { color: white; border: 1px white solid; }
    .btn-hero svg { margin-left: 0.5rem; }

    /* --- Imágenes --- */

    .hero-imagen { width: 100%; max-width: 700px; order: 2; margin: 0 auto; }
    .hero-imagen img { width: 100%; height: auto; object-fit: contain; top: -60px; }

    .hero-visual {
        order: 2;
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
        padding-top: 0;  
    }

    .hero-image { max-width: 100%; }

    .flotando--left   { left: -10px; top: auto; bottom: 18%; }
    .flotando--right  { left: auto; right: -10px; top: 15%; }
    .flotando--bottom { right: 5%; bottom: 2%; }
    .product-tag { padding: 7px 12px; border-radius: 10px; gap: 8px; }
    .tag-name { font-size: 6px; }
    .tag-type { font-size: 4px; }
    .tag-color { width: 11px; height: 11px; }

    /* --- Fondo rojo --- */

    .hero-red-background { display: none !important; }

    .hero-content-nuevo .posicionamiento.sobreRojo {
        background-color: var(--color-white);
        color: var(--color-gray-900);
        padding: 0.4rem 0.8rem;
        border-radius: 8px;
        display: inline-block;
    }

    .hero-content-nuevo .posicionamiento.sobreRojo span { color: #E50914; }
    .hero-content-nuevo .apareciendo-texto,
    .hero-content-nuevo .hero-texto .hero-titulo { color: var(--color-white); }
    .hero-content-nuevo .hero-texto .hero-titulo-destacado,
    .hero-content-nuevo .hero-titulo-destacado { color: #fde68a !important; }
    .hero-content-nuevo .hero-texto .hero-subtitulo { color: rgba(255,255,255,0.8) !important; }

    /* --- Contenido nuevo: compacto para que quepa texto + tarjetas --- */

    .hero-content-nuevo {
        padding: var(--spacing-sm) var(--spacing-sm) !important;
        gap: var(--spacing-sm) !important;
        justify-content: flex-start !important;
        padding-top: 3.5rem !important;
    }

    .nuevo-productos-header {
        max-width: 100%;
        order: 1;         
    }

    .productos-grid {
        order: 2;           
    }

    .nuevo-productos-header .hero-titulo {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .nuevo-productos-header .hero-titulo-destacado { font-size: 1.75rem; }

    .nuevo-productos-header .hero-subtitulo {
        font-size: 0.8rem;
        margin-bottom: 0;
        line-height: 1.4;
    }

    /* --- Grid: tarjetas HORIZONTALES en móvil --- */

     /* --- Carrusel en móvil --- */

    .productos-carrusel {
        order: 2;
        max-width: 100% !important;
        width: 100% !important;
    }

    .nuevo-productos-header {
        max-width: 100%;
        order: 1;
    }

    .productos-swiper .swiper-slide .card-container {
        padding: 0.25rem;
        border-radius: 0.7rem;
    }

    .productos-swiper .swiper-slide .image-container {
        height: clamp(220px, 42vh, 400px); 
        border-radius: 0.5rem;
    }

    .productos-swiper .swiper-slide .card-title {
        font-size: 0.9rem !important;
    }

    .productos-swiper .swiper-slide .card-info {
        display: none;
    }

    .productos-swiper .swiper-slide .button-mas-info {
        font-size: 0.5rem;
        padding: 0.2rem 0.5rem;
        gap: 3px;
    }

    .productos-swiper .swiper-slide .button-mas-info .icon {
        width: 11px; height: 11px;
    }

    .productos-swiper .swiper-button-prev,
    .productos-swiper .swiper-button-next {
        width: 28px; height: 28px;
    }

    .productos-swiper .swiper-button-prev::after,
    .productos-swiper .swiper-button-next::after {
        font-size: 11px;
    }

    /* --- Otros --- */

    .hero-content-nuevo .hero-imagen::before,
    .hero-content-nuevo .hero-imagen::after { display: none; }

    @keyframes float-products {
        0%, 100% { transform: translateY(0px); }
        50%      { transform: translateY(-10px); }
    }

    .btn, button, a {
        transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .seccion-post-hero {
        border-radius: 24px 24px 0 0;
        padding: 40px 20px 30px;
    }
}


/* ========================================
   9. MÓVIL PEQUEÑO (0 - 480px)
   ======================================== */

@media (max-width: 30rem) {

    .hero-section { padding: 3.5rem 0.75rem 1rem; }
    .hero-content { gap: 1rem; }
    .hero-titulo { font-size: 1.875rem; }
    .hero-titulo-destacado { font-size: 2.25rem; }
    .hero-subtitulo { font-size: 0.9375rem; line-height: 1.5; }
    .posicionamiento { font-size: 0.875rem; }
    .hero-imagen { max-width: 400px; }
    .hero-imagen img { max-height: 380px; }
    .hero-visual { max-width: 400px; }
    .btn-hero, .btn-hero-secondary { padding: 0.875rem 1.25rem; font-size: 0.9375rem; }
    header { padding: 0.75rem 1rem; }
    .navbar-brand img { height: 35px; }
    .navbar-menu-mobile { width: 90%; max-width: 100%; padding: 5rem 1.5rem 1.5rem; }
    .navbar-menu-mobile li a { padding: 0.875rem 1.25rem; font-size: 1rem; }

    /* --- Contenido nuevo más compacto --- */

    .hero-content-nuevo {
        padding: var(--spacing-lg) var(--spacing-lg) !important;
        padding-top: 3rem !important;
        gap: 6px !important;
    }

    .nuevo-productos-header .hero-titulo { font-size: 1.3rem; }
    .nuevo-productos-header .hero-titulo-destacado { font-size: 1.5rem; }
    .nuevo-productos-header .hero-subtitulo { font-size: 0.72rem; }

    /* --- Cards aún más compactas --- */

    /*
    .productos-grid .card-container {
        grid-template-columns: 100px 1fr;
    }

    .productos-grid .image-container { min-height: 90px; }
    .productos-grid .content-container { padding: 8px 10px; }
    .productos-grid .card-title { font-size: 1rem !important; }
    .productos-grid .card-info { display: none; }
    .productos-grid .button-mas-info { font-size: 0.55rem; padding: 0.25rem 0.6rem; }
    */

    .productos-swiper .swiper-slide .image-container { height: clamp(180px, 38vh, 320px); }
    .productos-swiper .swiper-slide .card-title { font-size: 0.75rem !important; }
    .seccion-post-hero {
        border-radius: 18px 18px 0 0;
        padding: 32px 16px 24px;
    }
}


/* ========================================
   10. LANDSCAPE (altura baja)
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero-section { padding: 2rem 1.5rem; min-height: auto; }
    .hero-content { gap: 1.5rem; }
    .hero-titulo { font-size: 1.75rem; }
    .hero-content{      grid-template-columns: 28rem auto;
        top: 40px;


    }
    .seccion-post-hero{
        margin-top: 100px;
    }
    .hero-titulo-destacado { font-size: 2rem; }
    .hero-subtitulo { font-size: 0.9rem; margin-bottom: 1.25rem; }
    .hero-imagen { max-width: 200px; }
    .hero-imagen img { max-height: 180px; }
    .hero-ctas { flex-direction: row; gap: 0.75rem; }
    .btn-hero, .btn-hero-secondary { width: auto; padding: 0.625rem 1rem; font-size: 0.875rem; }
    .navbar-menu-mobile { padding: 4rem 1.5rem 1.5rem; }
    .navbar-menu-mobile li a { padding: 0.75rem 1.25rem; font-size: 0.95rem; }
    .navbar-menu-mobile-cta { margin-top: 1rem; padding-top: 1rem; }
}


/* ========================================
    11. PANTALLAS EXTRA-GRANDES (≥96rem)
======================================== */

@media (width >= 96rem) {
    .hero-content {
        grid-template-columns: 48rem auto;
        padding: var(--spacing-2xl) var(--spacing-4xl);
        gap: var(--spacing-lg);
        margin: 0 auto;
    }

    .hero-texto {
        align-items: center;
        justify-content: center;
        margin-top: -150px;
    }

    .Titulo.Principall{
        margin-left: -260px;
    }

    .hero-content-nuevo {
        max-width: 1400px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
        padding-top: 200px;
    }

    .productos-grid { max-width: 1200px; }
    .nuevo-productos-header { max-width: 800px; }

    .hero-section { height: 100vh; min-height: 100vh; }
    .hero-content { height: calc(100vh - 100px); }

    .hero-visual {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }
}


/* ========================================
   12. ACCESIBILIDAD
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-paint-drop { animation: none; }
}

@media (prefers-contrast: high) {
    .btn-hero { border: 2px solid currentColor; }
    .hero-titulo-destacado { text-shadow: none; font-weight: 800; }
}


/* ========================================
   13. ANIMATION HELPERS
   ======================================== */

@keyframes simpleFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes simpleFadeOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-20px); }
}

@media (max-width: 64rem) {
    .mobile-transition-in  { animation: simpleFadeIn 0.4s ease forwards; }
    .mobile-transition-out { animation: simpleFadeOut 0.4s ease forwards; }
}

/* ========================================
   14. SECCIÓN POST-HERO — Información empresa
   ======================================== */

.seccion-post-hero {
    position: relative;
    background: var(--color-white);
    border-radius: 32px 32px 0 0;
    padding: 80px 0 60px;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.1);
    min-height: auto;
    overflow: hidden;
}

.seccion-post-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60px; height: 4px;
    background: linear-gradient(90deg, #E50914, #B00710);
    border-radius: 0 0 4px 4px;
}

/* ── Grid principal ── */

.grid-seccion-post-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-4xl);
    padding: var(--spacing-2xl);
    max-width: 1650px;
    margin: 0 auto;
    align-items: center;
}

/* ── Columna de texto ── */

.post-hero-texto {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.post-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-red-500);
    background: var(--color-red-soft);
    padding: 6px 14px;
    border-radius: 100px;
    width: fit-content;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.post-hero-badge svg {
    flex-shrink: 0;
    color: var(--color-red-500);
}

.post-hero-texto h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    color: var(--color-gray-900);
    margin: 0;
}

.post-hero-texto p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--color-gray-600);
    margin: 0;
}

.post-hero-texto p strong {
    color: var(--color-gray-900);
    font-weight: var(--font-weight-semibold);
}

/* ── Stats ── */

.post-hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-light);
    margin-top: var(--spacing-sm);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-numero {
    font-family: var(--font-display);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    color: var(--color-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Columna de imagen ── */

.post-hero-imagen {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.post-hero-imagen {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: visible;      
    transform-style: preserve-3d;
}

.post-hero-imagen img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    display: block;
    will-change: transform;
    transition: box-shadow 0.3s ease;
}

.post-hero-imagen:hover img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}


/* ── Responsive tablet ── */

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .grid-seccion-post-hero {
        gap: var(--spacing-2xl);
        padding: 0 var(--spacing-xl);
    }

    .post-hero-texto h2 {
        font-size: var(--font-size-3xl);
    }

    .post-hero-imagen img {
        height: 400px;
    }

    .post-hero-stats {
        gap: var(--spacing-lg);
    }

    .stat-numero {
        font-size: var(--font-size-2xl);
    }
}

/* ── Responsive móvil ── */

@media (max-width: 64rem) {
    .seccion-post-hero {
        padding: 50px 0 40px;
        border-radius: 24px 24px 0 0;
    }

    .grid-seccion-post-hero {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
        padding: 0 var(--spacing-lg);
    }

    .post-hero-texto {
        order: 1;
    }

    .post-hero-imagen {
        order: 2;
    }

    .post-hero-texto h2 {
        font-size: var(--font-size-3xl);
    }

    .post-hero-imagen img {
        height: 300px;
    }

    .post-hero-stats {
        gap: var(--spacing-lg);
    }

    .stat-numero {
        font-size: var(--font-size-2xl);
    }

    .imagen-acento {
        top: -8px;
        right: -8px;
    }
}

/* ── Responsive móvil pequeño ── */

@media (max-width: 30rem) {
    .seccion-post-hero {
        padding: 36px 0 30px;
        border-radius: 18px 18px 0 0;
    }

    .grid-seccion-post-hero {
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-xl);
    }

    .post-hero-texto h2 {
        font-size: var(--font-size-2xl);
    }

    .post-hero-texto p {
        font-size: var(--font-size-sm);
    }

    .post-hero-imagen img {
        height: 220px;
    }

    .post-hero-stats {
        flex-wrap: wrap;
        gap: var(--spacing-md);
    }

    .stat-numero {
        font-size: var(--font-size-xl);
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .imagen-acento {
        display: none;
    }
}



/* ========================================
    15. SCROLL LOCK DURANTE CARGA
   ======================================== */

body.loading-lock {
    overflow: hidden !important;
    height: 100vh !important;
    touch-action: none;
}

body.loading-lock * {
    scroll-behavior: auto !important;
}

/* ========================================
    16. PARA LA ANIMACION DE LOS TEXTOS
   ======================================== */

.anim-titulo,
.anim-texto-fade,
.anim-texto-words {
    visibility: hidden;
}

.anim-titulo {
    perspective: 400px;
}

.anim-char,
.anim-word {
    display: inline-block;
    will-change: transform, opacity;
}

.anim-line {
    will-change: transform, opacity, filter;
}


/* ========================================
    SECCIÓN MARCAS
   ======================================== */

.marcas-section {
    background: var(--color-white);
    padding: 80px 0;
    position: relative;
}

.marcas-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

/* ── Header ── */

.marcas-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.marcas-header h2 {
    font-family: var(--font-display);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin: 0;
}

.marcas-header p {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    max-width: 480px;
    margin: 0;
    line-height: 1.6;
}

/* ── Grid de marcas ── */

.marcas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* ── Tarjeta de marca ── */

.marca-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--border-light);
    border-radius: 1.2rem;
    padding: var(--spacing-xl);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.marca-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--color-red-500), var(--color-red-700));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.marca-card:hover::before {
    transform: scaleX(1);
}

.marca-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* ── Logo de marca ── */

.marca-card-logo {
    width: 100%;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    background: var(--color-gray-light);
    border-radius: var(--radius-lg);
    transition: background 0.3s ease;
}

.marca-card:hover .marca-card-logo {
    background: var(--color-red-soft);
}

.marca-card-logo img {
    max-height: 220px;
    max-width: 320px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.marca-card:hover .marca-card-logo img {
    transform: scale(1.05);
}

/* ── Info de marca ── */

.marca-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.marca-card-info h3 {
    font-family: var(--font-display);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-gray-900);
    margin: 0;
    letter-spacing: -0.01em;
}

.marca-card-info p {
    font-family: var(--font-body);
    font-size: var(--font-size-sm);
    color: var(--color-gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ── Flecha ── */

.marca-card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-gray-light);
    border: 1px solid var(--border-light);
    align-self: flex-end;
    color: var(--color-gray-600);
    transition: all 0.3s ease;
}

.marca-card:hover .marca-card-arrow {
    background: var(--color-red-500);
    border-color: var(--color-red-500);
    color: var(--color-white);
    transform: translateX(3px);
}

.cta {
    margin-top: var(--spacing-lg);
    display: flex ;
    align-items: center;
    justify-content: end;
}

.cta p{
    margin: 0px !important;
    color: var(--color-gray-900);
    font-size: var(--font-size-base);
    font-weight: 600;

}
.marca-card:hover .cta p{
    color: var(--color-red-500);
}
/* ── Responsive tablet ── */

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .marcas-container {
        padding: 0 var(--spacing-xl);
    }

    .marcas-header h2 {
        font-size: var(--font-size-3xl);
    }
}
/* ── Responsive móvil ── */

@media (max-width: 64rem) {
    .marcas-section {
        padding: 50px 0;
    }

    .marcas-container {
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-2xl);
    }

    .marcas-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    /* Card horizontal en móvil */
    .marca-card {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-md);
        padding: var(--spacing-lg);
    }

    .marca-card-logo {
        width: 100px;
        height: 70px;
        min-width: 100px;
        margin-bottom: 0;
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
        flex-shrink: 0;
    }

    .marca-card-logo img {
        max-height: 45px;
        max-width: 80px;
    }

    .marca-card-info {
        flex: 1;
        min-width: 0;
    }

    .marca-card-info p {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .marca-card-arrow {
        align-self: center;
        flex-shrink: 0;
    }

    .cta {
        display: none;
    }

    .marcas-header h2 {
        font-size: var(--font-size-3xl);
    }
}

/* ── Responsive móvil pequeño ── */

@media (max-width: 30rem) {
    .marcas-section {
        padding: 36px 0;
    }

    .marcas-container {
        padding: 0 var(--spacing-md);
    }

    .marca-card {
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
    }

    .marca-card-logo {
        width: 80px;
        height: 56px;
        min-width: 80px;
    }

    .marca-card-logo img {
        max-height: 35px;
        max-width: 65px;
    }

    .marca-card-info h3 {
        font-size: var(--font-size-base);
    }

    .marca-card-info p {
        font-size: var(--font-size-xs);
        -webkit-line-clamp: 1;
    }

    .marca-card-arrow {
        width: 30px;
        height: 30px;
    }

    .marca-card-arrow svg {
        width: 13px;
        height: 13px;
    }
}
/* ========================================
    BROCHAZO — Subrayado decorativo
   ======================================== */

.marcas-header {
    position: relative;
    overflow: visible;
}
.brochazo-underline {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: auto;
    pointer-events: none;
    z-index: 0;
    filter:
        brightness(0) saturate(100%)
        invert(12%) sepia(95%) saturate(6000%)
        hue-rotate(355deg) brightness(95%) contrast(110%);
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    will-change: clip-path, opacity;
    mix-blend-mode: multiply;
}

.marcas-header h2,
.marcas-header p,
.marcas-header .post-hero-badge {
    position: relative;
    z-index: 1;
}

@media (max-width: 64rem) {
    .brochazo-underline {
        width: 300px;
        top: -80px;
    }
}

@media (max-width: 30rem) {
    .brochazo-underline {
        width: 300px;
        top: -80px;
    }
}