.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.5;
}

/* ===== 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: 44%;
        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: 2rem;
    }

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

    .hero-panel-blanco {
        width: 75%;
        height: 30%;
    }
    .hero-contenido {
        max-width: 193px;
    }
}

.proyectos {
    padding: 4rem 1.5rem;
    background-color: var(--bg-light);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.proyectos-encabezado {
    text-align: center;
    margin-bottom: 1rem;
}

.proyectos-titulo-cinta h2 {
    font-size: 2.2rem;
    color: var(white);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    position: relative;
    display: inline-block;
}

/* Pequeña línea decorativa debajo del título */
.proyectos-titulo-cinta h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primario);
    margin: 10px auto 0;
    border-radius: 2px;
}

.proyectos-subtitulo {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    color: var(white);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Grid de Proyectos (Sustituto del Carrusel)
   ========================================================================== */
.proyectos-contenedor {
    display: grid;
    /* Auto-fit crea columnas que se adaptan al ancho disponible. Min: 320px */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   Diseño de la Tarjeta (Card)
   ========================================================================== */
.proyecto-item {
    background-color: var(--negro);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.proyecto-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Imagen de la tarjeta */
.proyecto-imagen {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.proyecto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proyecto-item:hover .proyecto-imagen img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.proyecto-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Permite que el botón siempre baje al final si las tarjetas tienen diferente altura */
}

.proyecto-categoria {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primario);
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.proyecto-titulo {
    font-size: 1.3rem;
    color: var(white);
    margin-top: 0;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

/* Datos (Ubicación y Duración) */
.proyecto-dato {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(white);
    margin-bottom: 0.5rem;
}

.icono-dato {
    width: 18px;
    height: 18px;
    color: var(--primario);
    flex-shrink: 0;
}

/* Bloques de Problema/Solución */
.proyecto-bloque {
    margin-top: 1.2rem;
}

.proyecto-bloque h4 {
    font-size: 0.95rem;
    color: var(white);
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.proyecto-bloque p {
    font-size: 0.9rem;
    color: var(white);
    margin: 0;
    line-height: 1.5;
}

/* Lista de resultados */
.proyecto-lista {
    margin: 1.2rem 0;
    padding-left: 1.2rem;
    color: var(white);
    font-size: 0.9rem;
    line-height: 1.6;
}

.proyecto-lista li {
    margin-bottom: 0.3rem;
}

/* Botón (Llamada a la acción) */
.proyecto-boton {
    margin-top: auto; /* Empuja el botón hacia la parte inferior de la tarjeta */
    display: block;
    text-align: center;
    background-color: transparent;
    color: var(--primario);
    border: 2px solid var(--primario);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.proyecto-boton:hover {
    background-color: var(--primario);
    color: #ffffff;
}
