.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--negro);
}

.fondo-principal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
}

/* ===== TEXTO PRINCIPAL (Innovación Industrial Aplicada) ===== */
.hero-contenido {
    position: absolute;
    bottom: 2%;
    left: 5%;
    z-index: 1;
    max-width: 1500px;
}

.hero-contenido h1 {
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
    font-size: 8vw;
    line-height: 1.1;
    color: var(--primario);
    margin-bottom: 0.5rem;
}

.hero-contenido p {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: calc(1rem + 2vh);
    color: #fff;
    max-width: 900px;
}

/* ===== PANEL BLANCO CON LOGO (esquina inferior derecha) ===== */
.hero-panel-blanco {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 45%;
    height: 55%;

    border-top-left-radius: 80px;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1117px) {
    .hero {
        position: relative;
        width: 100%;
        height: 50vh;
    }
    .hero-contenido h1 {
        font-size: 2.8rem;
    }

    .hero-contenido {
        top: 40%;
        left: 4%;
    }

    .hero-panel-blanco {
        width: 60%;
        height: 40%;
        border-top-left-radius: 50px;
    }

    .hero-contenido p {
        max-width: 500px;
        font-size: calc(1rem + 1vh);
    }
}
@media (max-width: 600px) {
    .hero-panel-blanco {
        position: absolute;
        bottom: 0;
        left: 165px;
    }
    .hero-contenido h1 {
        font-size: 3rem;
    }

    .hero-contenido p {
        font-size: 1rem;
    }

    .hero-panel-blanco {
        width: 75%;
        height: 30%;
    }
    .hero-contenido {
        max-width: 22rem;
        top: 45%;
        left: 4%;
    }
}

.catalogos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}
/* =========================================
   1. CONTENEDOR PRINCIPAL Y GRID
   ========================================= */
.catalogo {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.catalogo-grid {
    display: grid;
    /* Crea columnas que se adaptan automáticamente al tamaño de la pantalla */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6rem; /* Espacio entre las tarjetas */
}

/* =========================================
   2. ESTILOS DE LA TARJETA (ITEM)
   ========================================= */
.catalogo-item {
    border-radius: 12px;
    overflow: hidden; /* Evita que la imagen se salga de los bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    cursor: pointer;

    /* Prepara la tarjeta para la animación de hover */
    transition:
        transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Asigna la animación de entrada */
    animation: entradaCascada 0.6s ease-out backwards;
}

/* Ajuste de las imágenes para que llenen su contenedor manteniendo proporción */
.catalogo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease; /* Transición para el zoom interno */
}

/* =========================================
   3. ANIMACIONES DE INTERACCIÓN (HOVER)
   ========================================= */
/* Al pasar el mouse, la tarjeta completa se eleva y proyecta más sombra */
.catalogo-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Al pasar el mouse, la imagen hace un ligero zoom interno */

/* =========================================
   4. ANIMACIÓN DE ENTRADA (KEYFRAMES)
   ========================================= */
/* Define el movimiento de abajo hacia arriba con un difuminado */
@keyframes entradaCascada {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retrasos escalonados para crear el efecto "cascada" al cargar */
.catalogo-item:nth-child(1) {
    animation-delay: 0.1s;
}
.catalogo-item:nth-child(2) {
    animation-delay: 0.2s;
}
.catalogo-item:nth-child(3) {
    animation-delay: 0.3s;
}
.catalogo-item:nth-child(4) {
    animation-delay: 0.4s;
}
.catalogo-item:nth-child(5) {
    animation-delay: 0.5s;
}
.catalogo-item:nth-child(6) {
    animation-delay: 0.6s;
}
