/* =========================================
   HERO CONTACTO
========================================= */

.hero-contacto {
    position: relative;
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center 35%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero-contacto__content {
    color: var(--white);
    max-width: 700px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}


.hero-contacto__sub {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-contacto__title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
}

.hero-contacto__btn {
    text-decoration: none;
    margin-top: 30px;
}


/* =========================================
   SECCIÓN PRINCIPAL
========================================= */

.contact-section {
    padding: 72px 40px;
    background: var(--white);
}

.contact-wrapper {
    display: flex;
    gap: 0;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.10);
}


/* =========================================
   PANEL IZQUIERDO — INFO
========================================= */

.contact-info {
    background: var(--color-primary);
    color: var(--white);
    padding: 48px 40px;
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.contact-info p {
    font-size: 14px;
    opacity: 0.75;
    margin-bottom: 32px;
}

/* Lista de datos */
.contact-info__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.contact-info__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-info__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 15px;
}

.contact-info__list a,
.contact-info__list address {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
    padding-top: 6px;
    opacity: 0.9;
}

.contact-info__list a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Redes sociales */
.contact-info__socials {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.contact-info__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}

.contact-info__socials a:hover {
    background: rgba(255, 255, 255, 0.3);
}


/* =========================================
   PANEL DERECHO — FORMULARIO
========================================= */

.contact-form {
    flex: 1;
    padding: 48px 48px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Fila de dos columnas */
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

/* Campo individual */
.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-form__field--full {
    grid-column: 1 / -1;
}

.contact-form__field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.contact-form__field input,
.contact-form__field textarea {
    border: none;
    border-bottom: 1.5px solid var(--color-border);
    outline: none;
    padding: 8px 0;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--color-text-dark);
    background: transparent;
    transition: border-color 0.2s;
    resize: none;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
    border-bottom-color: var(--color-primary);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: var(--color-text-light);
    font-size: 13px;
}

/* Radios */
.contact-form__radios {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.contact-form__radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-dark);
}

.contact-form__radio input[type="radio"] {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    border-bottom: none;
    padding: 0;
    cursor: pointer;
}

/* Botón enviar */
.contact-form__submit {
    display: flex;
    justify-content: flex-end;
}

.contact-form__submit .btn-primary {
    padding: 12px 36px;
    font-size: 15px;
}


/* =========================================
   RESPONSIVE — TABLET
========================================= */

@media (max-width: 992px) {

    .contact-section {
        padding: 48px 24px;
    }

    .contact-wrapper {
        flex-direction: column;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    }

    .contact-info {
        width: 100%;
        padding: 36px 32px;
        flex-direction: column;
    }

    .contact-info__list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .contact-info__socials {
        margin-top: 24px;
    }

    .contact-form {
        padding: 36px 32px;
    }
}


/* =========================================
   RESPONSIVE — MÓVIL
========================================= */

@media (max-width: 768px) {

    .hero-contacto {
        height: 300px;
    }

    .hero-contacto__title {
        font-size: 2.2rem;
    }

    .hero-contacto__btn {
        display: none;
    }
}

@media (max-width: 576px) {

    .hero-contacto {
        height: 260px;
    }

    .hero-contacto__title {
        font-size: 1.8rem;
    }

    .contact-section {
        padding: 32px 16px;
    }

    .contact-info {
        padding: 28px 20px;
    }

    .contact-info__list {
        flex-direction: column;
        gap: 20px;
    }

    .contact-form {
        padding: 28px 20px;
        gap: 24px;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-form__radios {
        gap: 16px;
    }

    .contact-form__submit {
        justify-content: stretch;
    }

    .contact-form__submit .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
}