.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: 29%;
        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;
        top: 44%;
        left: 4%;
    }
}
P,
ul,
li {
    list-style: none;
}
.servicios {
    margin: 3rem auto;
    padding: 0 3rem;
}
.servicios-container {
    display: grid;
    gap: 2rem; /* Espacio entre tarjetas */
    width: 100%;
    padding: 2rem;

    /* En móviles y tablets, las tarjetas medirán mínimo 300px */
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
@media (min-width: 1340px) {
    .servicios-container {
        grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    }
}

@media (min-width: 1960px) {
    .servicios-container {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

@media (min-width: 2560px) {
    .servicios-container {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

@media (min-width: 3840px) {
    .servicios-container {
        /* Centramos el contenedor y le damos un límite lógico */
        max-width: 2800px;
        margin: 0 auto;

        gap: 3rem;
    }
}
@media (max-width: 768px) {
    .servicios {
        margin: 3rem auto;
        padding: 0 1rem;
    }
    .servicios-container {
        gap: 1rem;
        padding: 0;
    }
    .servicio-imagen img {
        height: clamp(25rem, 29vw, 24rem);
    }
}

/* El contenedor de la imagen controla el espacio */
.servicio-imagen {
    position: relative; /* Base para el overlay absoluto */
    overflow: hidden; /* Evita que el overlay o la imagen se salgan */
    width: 100%; /* Se adapta al ancho de la tarjeta */
    border-radius: 8% 8% 17% 17%;
}
.servicio-card {
    background: var(--gris);
    border-radius: 11% 9% 4rem 4rem;
}
.servicio-descripcion {
    padding: 3rem 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* La imagen debe llenar su contenedor */
.servicio-imagen img {
    display: block;
    width: 100%;
    height: clamp(15rem, 29vw, 24rem);
    object-fit: cover;
}

/* El overlay se adapta al 100% de la imagen */
.servicio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 2rem;
    background: var(--gris); /* Tu fondo personalizado */
    padding: 1rem 0;
    align-items: center;
    text-align: center;
    /* Opcional: Centrar el texto dentro del overlay */
}
.servicio-overlay span {
    display: block;
    font-size: 1rem;
    color: var(--primario);
    font-weight: 700;
}
.servicio-overlay h2 {
    font-size: clamp(1rem, 1.3rem, 2rem);
}
@media (max-width: 900px) {
    
    .servicio-overlay span {
        display: block;
        font-size: 1.3rem;
        color: var(--primario);
        font-weight: 700;
    }
}
