/* ─── Sección Hero ───────────────────────────────────────────────────────────
   Hero de inicio: logo del partner + texto.
   Hero de contacto: formulario en dos columnas.
   Fondo: imagen del edificio con gradiente oscuro encima.
   ─────────────────────────────────────────────────────────────────────────── */

.hero {
    min-height: clamp(360px, 44vh, 460px);
    height: clamp(360px, 44vh, 460px);
    background:
        linear-gradient(135deg, rgba(14, 14, 14, 0.78) 0%, rgba(34, 34, 34, 0.72) 100%),
        url('../../images/infraestructura-edificio-inteligente-seguridad-industrial-guadalajara-mexico.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 12px 0 8px;
}

/* Resplandor radial decorativo */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Destello animado que barre el hero */
.hero::after {
    content: '';
    position: absolute;
    inset: -20% -50%;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
    animation: heroSweep 14s linear infinite;
    pointer-events: none;
}

.hero-overlay { display: none; }

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

/* Marco del logo del partner (FAAC) */
.hero-logo-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 176px;
    height: 176px;
    flex-shrink: 0;
    transition: transform var(--anim-mid) ease, box-shadow var(--anim-mid) ease;
    border: 3px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.hero-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.hero-logo-left,
.hero-logo-right {
    width: 148px;
    height: 148px;
    padding: 7px;
    background: var(--white);
    box-sizing: border-box;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    border: none;
    outline: none;
    box-shadow: none;
    clip-path: inset(2px);
}

/* Bloque de texto */
.hero-text { max-width: 600px; margin: 0 auto; }

.hero-content h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.8px;
}

.hero-content p { font-size: 1.02rem; line-height: 1.3; letter-spacing: 0.2px; }
.hero-text p { color: var(--white); text-shadow: none; font-weight: 400; }

.hero-text .hero-intro {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
    font-size: 0.94rem;
    margin-bottom: 6px;
}

.hero-text .hero-description {
    color: var(--white);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.28);
    max-width: 620px;
    margin: 0 auto;
    font-size: 0.82rem;
    line-height: 1.32;
}

.hero-text .hero-tagline {
    color: var(--white);
    margin-top: 10px;
    padding-top: 8px;
    font-weight: 400;
    line-height: 1.24;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.35);
    font-size: 0.88rem;
}

/* ── Hero de contacto ── */

.hero-content-form { width: min(100%, 900px); }

/* Caja del formulario */
.hero-form-wrapper {
    width: min(100%, 900px);
    border: 2px solid var(--line-soft);
    border-radius: 14px;
    background: var(--panel-strong);
    padding: 10px 14px;
    text-align: left;
}

.hero-form-wrapper h2 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    text-align: center;
}

.hero-form-subtitle {
    margin: 2px 0 8px;
    font-size: 0.78rem;
    color: var(--white);
    text-align: center;
}

/* Dos columnas: campos cortos a la izquierda, textarea a la derecha */
.hero-contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 14px;
    align-items: stretch;
}

.hero-form-left,
.hero-form-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-contact-form label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
}

.hero-contact-form input,
.hero-contact-form textarea {
    width: 100%;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--line-faint);
    background: var(--panel);
    color: var(--white);
    font-size: 0.8rem;
}

.hero-contact-form textarea {
    min-height: 126px;
    height: 100%;
    flex: 1;
    resize: none;
}

/* Foco accesible */
.hero-contact-form input:focus,
.hero-contact-form textarea:focus {
    outline: 2px solid rgba(255, 255, 255, 0.45);
    outline-offset: 1px;
}

/* Botón ocupa todo el ancho del grid */
.hero-form-submit {
    grid-column: 1 / -1;
    justify-self: center;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 8px;
    padding: 9px 18px;
    font-size: 0.84rem;
    font-weight: 700;
    min-width: 170px;
    cursor: pointer;
    transition: transform var(--anim-fast) ease, background-color var(--anim-fast) ease;
}

.hero-form-submit:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.2); }

/* Desactivado mientras se envía */
.hero-form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
