.hero {
    position: relative;
    width: 100%;
    height: 104vh;
    overflow: hidden;
}

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

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

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

.hero-contenido p {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    max-width: 480px;
}

/* ===== 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;
}

.hero-logo {
    width: 50%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1117px) {
    .hero {
        position: relative;
        width: 100%;
        height: 60vh;
    }
    .hero-contenido h1 {
        font-size: 2.8rem;
    }
    .hero-contenido p {
        font-size: 1.2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
    }
    .hero-contenido {
        top: 33%;
        left: 4%;
    }

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

    .hero-logo {
        width: 50%;
    }
    .hero-contenido p {
        max-width: 22rem;
    }
    .fondo-principal {
    position: absolute;
    top: 0;
    left: 0;
    width: 110%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    }
    
}
@media (max-width: 600px) {
    .hero-panel-blanco {
        position: absolute;
        bottom: 0;
        left: 155px;
    }
    .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;
    }
}

.contacto {
    margin: 3em auto;
}

/* ---------- Título en cinta ---------- */
.contacto-titulo-cinta {
    display: inline-block;
    background: var(--gris);
    padding: 10px 200px 2px 200px;
    border-radius: 0 40px 40px 0;
    margin-bottom: 44px;
    align-self: start;
}

.contacto-titulo-cinta h2 {
    margin: 0;
    font-family: "Orbitron", sans-serif;
    font-weight: 700;

    letter-spacing: 2px;
    font-size: clamp(28px, 4vw, 55px);
    color: var(--primario);
    text-transform: uppercase;
}

/* ---------- Intro ---------- */
.contacto-intro {
    text-align: center;
    max-width: 920px;
    margin: 0 auto 48px;
}

.contacto-intro Span {
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--negro);
    display: block;
    margin-bottom: 1rem;
    font-size: 40px;
}

.contacto-intro p {
    margin: 0;
    line-height: 1.6;
    font-size: 25px;
    color: var(--gris);
}

/* ---------- Layout principal ---------- */
.contacto-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: clamp(145px, 13.02vw, 250px);
    align-items: flex-start;
    max-width: 2000px;
    margin: auto;
}

/* ---------- Formulario ---------- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.campo {
    background: var(--gris);
    display: flex;
    padding: 15px 24px;
}
.campo-nombre {
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.campo-mensaje {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    display: block;
}

.campo label {
    display: block;
    color: var(--primario);
    font-weight: 700;
    font-size: 30px;
    margin-bottom: 8px;
}

.campo input,
.campo textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: "noto-sans", sans-serif;
    font-size: 25px;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.campo-mensaje {
    min-height: 200px;
}

.campo-mensaje textarea {
    resize: none;
    min-height: 150px;
}

.btn-enviar {
    align-self: center;
    font-family: "Noto Sans", sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    text-decoration: none;
    background-color: var(--negro, #0d0d1a);
    color: var(--primario, #f5c518);
    padding: 1.1rem 3rem;
    border-radius: 14px;
    transition: filter 0.2s ease;
}

.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(242, 206, 27, 0.35);
}

/* ---------- Tarjeta de datos ---------- */
.contacto-datos {
    background: var(--gris);
    border-radius: 26px;
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 500px;
}

.dato {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

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

.dato .icono img {
    width: clamp(35px, 3.125vw, 60px);
}

.dato p {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.125rem, 1rem + 1.04vw, 1.3rem);

    line-height: 1.5;
}
.dato a {
    text-decoration: auto;
    color: white;
}
.contacto-contenido {
    padding: 0px calc(1rem + 9vw);
}

@media (max-width: 1100px) {
    .contacto-titulo-cinta {
        padding: 10px 80px 2px 40px;
        margin-bottom: 32px;
    }

    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contacto-datos {
        padding: 40px;
    }

    .campo label {
        font-size: 24px;
    }

    .campo input,
    .campo textarea {
        font-size: 20px;
    }

    .dato .icono {
        width: 56px;
        height: 56px;
    }

    .dato p {
        font-size: 22px;
    }
    .contacto-contenido {
        padding: 0 100px;
    }
}

/* =========================================================
   MOBILE (≤ 600px)
   ========================================================= */
@media (max-width: 600px) {
    .contacto-titulo-cinta {
        padding: 8px 30px 2px 20px;
        border-radius: 0 24px 24px 0;
        margin-bottom: 24px;
        align-self: start;
    }

    .contacto-intro {
        margin: 0 auto 32px;
        padding: 0 12px;
    }

    .contacto-grid {
        gap: 40px;
        padding: 0 12px;
    }

    form {
        gap: 20px;
    }

    .campo {
        padding: 22px 18px;
    }

    .campo-nombre {
        border-top-left-radius: 24px;
        border-top-right-radius: 24px;
    }

    .campo-mensaje {
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
        min-height: 160px;
    }

    .campo-mensaje textarea {
        min-height: 110px;
    }

    .campo label {
        font-size: 18px;
    }

    .campo input,
    .campo textarea {
        font-size: 16px;
    }

    .btn-enviar {
        width: 100%;
        text-align: center;
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }

    .contacto-datos {
        padding: 28px 22px;
        border-radius: 20px;
        gap: 22px;
    }

    .dato {
        gap: 12px;
    }

    .dato .icono {
        width: 44px;
        height: 44px;
    }

    .dato p {
        font-size: 16px;
        line-height: 1.4;
    }
    .contacto-contenido {
        padding: 0;
    }
}
.mapa {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2rem;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Mapa ocupa más espacio */
.mapa > div:first-child {
    flex: 2;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mapa > div:first-child iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* En pantallas pequeñas, se apilan para que no se compriman demasiado */
@media (max-width: 768px) {
    .mapa {
        flex-direction: column;
        max-width: 600px;
    }
    .mapa > div:first-child {
        min-height: 300px;
    }
    .mapa > div:first-child iframe {
        min-height: 300px;
    }
}
