/* ========================= EXTRAS PRODUCTS HERO ========================= */
.products-hero {
    position: relative;
}

/* Fondo de puntos muy sutil */
.products-hero__bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#b9251d4d 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 30% 50%, #000 0%, transparent 70%);
    pointer-events: none;
}

.products-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    /* ← lo que faltaba */
    grid-template-columns: 1fr 1fr;
    /* mitad y mitad */
    gap: 48px;
    align-items: center;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 50px;
    line-height: 1.1;
}

/* ---------- Imagen ---------- */
.media-tilt {
    position: relative;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.25s ease-out;
}

.media-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes glow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(0.95);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* ---------- Badges flotantes ---------- */
.float-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #000;
    backdrop-filter: blur(8px);
    border: 1px solid #ff0d00;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 500;
    color: #000;
    opacity: 0;
    transform: translateY(16px) scale(0.95);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-badge strong {
    font-size: 20px;
    color: #ff0d00;
}

.float-badge span {
    color: #fff;
}

.float-badge--top {
    top: 8%;
    right: 2%;
}

.float-badge--bottom {
    bottom: 6%;
    left: 2%;
}

.reveal-left.visible .float-badge {
    opacity: 1;
    transform: none;
    animation: float 5s ease-in-out infinite;
}

.reveal-left.visible .float-badge--top {
    transition-delay: 0.9s;
    animation-delay: 1.6s;
}

.reveal-left.visible .float-badge--bottom {
    transition-delay: 1.1s;
    animation-delay: 2.2s;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    70% {
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* ---------- Subrayado que se dibuja ---------- */
.underline-draw {
    background: linear-gradient(#ba251d, #ba251d) no-repeat 0 100% / 0% 3px;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding-bottom: 4px;
    transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.1s;
}

.reveal-right.visible .underline-draw {
    background-size: 100% 3px;
}

/* ---------- Eyebrow con línea animada ---------- */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ba251d;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-eyebrow::before {
    content: "";
    height: 2px;
    width: 0;
    background: #ba251d;
    transition: width 0.8s ease 0.5s;
}

.reveal-right.visible .section-eyebrow::before {
    width: 32px;
}

/* ---------- Lista de especialidades ---------- */
.feature-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-list li {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ff0000;
    background: #fff;
    border-radius: 999px;
    color: #000;
    transition: all 0.25s ease;
    cursor: default;
}

.feature-list li:hover {
    border-color: #ba251d;
    color: #ba251d;
    transform: translateY(-2px);
}

/* ---------- Entrada escalonada (REEMPLAZA tu bloque anterior) ---------- */
.reveal-right>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible>* {
    opacity: 1;
    transform: none;
}

.reveal-right.visible> :nth-child(1) {
    transition-delay: 0.40s;
}

.reveal-right.visible> :nth-child(2) {
    transition-delay: 0.55s;
}

.reveal-right.visible> :nth-child(3) {
    transition-delay: 0.70s;
}

.reveal-right.visible> :nth-child(4) {
    transition-delay: 0.85s;
}

.reveal-right.visible> :nth-child(5) {
    transition-delay: 1.00s;
}

.reveal-right.visible> :nth-child(6) {
    transition-delay: 1.15s;
}

@media (prefers-reduced-motion: reduce) {

    .media-img,
    .media-glow,
    .float-badge,
    .pulse-dot {
        animation: none !important;
    }

    .underline-draw {
        background-size: 100% 3px;
        transition: none;
    }
}

@media (max-width: 960px) {
    .products-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .float-badge {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 12px;
        gap: 6px;
        max-width: 48%;
        /* evita que el texto largo empuje el badge fuera de la imagen */
        white-space: normal;
        /* permite que "Asesoría técnica incluida" haga wrap si no cabe */
        line-height: 1.25;
    }

    .float-badge strong {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.6rem;
        font-weight: 00;
        color: #000;
        margin-bottom: 30px;
        line-height: 1.1;
    }

    .float-badge {
        padding: 7px 10px;
        font-size: 11px;
        gap: 5px;
    }

    .float-badge strong {
        font-size: 14px;
    }

    .float-badge--top {
        top: 5%;
        right: 3%;
    }

    .float-badge--bottom {
        bottom: 4%;
        left: 3%;
    }

    .feature-list {
        gap: 8px;
    }
}