

.hablemos-page {
    width: 100%;
    background: var(--color-white);
    overflow-x: hidden;
    font-family: var(--font-family-base);
    color: var(--color-text);
}

.hablemos-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
    box-sizing: border-box;
}

/* =========================
   HERO
========================= */

.hablemos-hero {
    position: relative;
    width: 100%;
    min-height: 596px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(99.54deg, rgba(20, 88, 170, 0.9) 39.74%, rgba(255, 255, 255, 0) 67.34%),
        url('../images/hablemos.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hablemos-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hablemos-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 72px;
    padding-right: 72px;
    box-sizing: border-box;
}

.hablemos-hero__title {
    margin: 0 0 32px;
    max-width: 481px;
    font-family: var(--font-family-heading);
    font-size: var(--text-title-size);
    line-height: 78px;
    font-weight: var(--text-title-weight);
    color: var(--color-white);
}

.hablemos-hero__text {
    margin: 0;
    max-width: 481px;
    font-family: var(--font-family-base);
    font-size: var(--text-body-md-size);
    line-height: 32px;
    font-weight: var(--text-body-md-weight);
    color: var(--color-white);
}

/* =========================
   FORMULARIO
========================= */

.hablemos-form-section {
    width: 100%;
    background: #F0F7FF;
    padding: 72px 0;
}

.hablemos-form {
    width: 100%;
}

.hablemos-form__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.hablemos-form__left,
.hablemos-form__right {
    width: 100%;
}

.hablemos-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.hablemos-form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.hablemos-form__group--message {
    margin-bottom: 0;
}

.hablemos-form__label {
    margin: 0 0 12px;
    font-family: var(--font-family-heading);
    font-size: var(--text-body-bold-size);
    line-height: var(--text-body-bold-line);
    font-weight: var(--text-body-bold-weight);
    color: var(--color-text);
}

.hablemos-form__input,
.hablemos-form__textarea {
    width: 100%;
    box-sizing: border-box;
    border: var(--form-input-border-light);
    background: var(--color-white);
    font-family: var(--font-family-base);
    font-size: var(--text-body-secondary-size);
    line-height: var(--text-body-secondary-line);
    font-weight: var(--text-body-secondary-weight);
    color: var(--color-text);
    outline: none;
    transition:
        border-color var(--transition-base),
        box-shadow var(--transition-base),
        background var(--transition-base);
    appearance: none;
    -webkit-appearance: none;
}

.hablemos-form__input {
    height: var(--form-input-height-small);
    padding: 12px 16px;
    border-radius: var(--border-radius-md);
}

.hablemos-form__textarea {
    min-height: 252px;
    padding: 16px;
    border-radius: var(--border-radius-lg);
    resize: vertical;
}

.hablemos-form__input::placeholder,
.hablemos-form__textarea::placeholder {
    color: var(--color-gray-medium);
    opacity: 1;
}

.hablemos-form__input:focus,
.hablemos-form__textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(43, 125, 229, 0.12);
    background: var(--color-white);
}

.hablemos-form__error {
    min-height: 20px;
    margin-top: 8px;
    font-family: var(--font-family-base);
    font-size: var(--text-label-size);
    line-height: var(--text-label-line);
    font-weight: 400;
    color: #D93025;
}

.hablemos-form__actions {
    margin-top: 8px;
}

.hablemos-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--btn-cta-width);
    height: var(--btn-cta-height);
    padding: var(--btn-cta-padding);
    border: none;
    border-radius: var(--btn-radius);
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-family-heading);
    font-size: var(--text-body-bold-size);
    line-height: var(--text-body-bold-line);
    font-weight: var(--text-body-bold-weight);
    cursor: pointer;
    transition:
        background var(--transition-base),
        transform var(--transition-base),
        box-shadow var(--transition-base);
}

.hablemos-form__submit:hover {
    background: var(--color-primary-hover);
}

.hablemos-form__submit:active {
    transform: translateY(1px);
}

.hablemos-form__input.is-invalid,
.hablemos-form__textarea.is-invalid {
    border-color: #D93025;
    box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.08);
}

/* =========================
   SECCIÓN CONTACTO
========================= */

.hablemos-contact-section {
    width: 100%;
    background: var(--color-white);
    padding: 72px 0 96px;
}

.hablemos-contact-section__title {
    margin: 0 0 48px;
    text-align: center;
    font-family: var(--font-family-heading);
    font-size: var(--text-subtitle-size);
    line-height: var(--text-subtitle-line);
    font-weight: var(--text-subtitle-weight);
    color: #1A1E22;
}

/* =========================
   GRID
========================= */

.hablemos-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.hablemos-contact-grid--bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 0;
}

/* =========================
   TARJETAS
========================= */

.hablemos-contact-card {
    box-sizing: border-box;
    min-height: 220px;
    padding: 16px;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    text-align: center;
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.hablemos-contact-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.hablemos-contact-card--wide {
    min-height: 220px;
}

.hablemos-contact-card--location {
    padding: 40px 24px 24px;
}

.hablemos-contact-card__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* =========================
   ICONOS
========================= */

.hablemos-contact-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--color-primary);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
    flex-shrink: 0;
}

.hablemos-contact-card__icon--general {
    background-image: url('../images/sobre.png');
}

.hablemos-contact-card__icon--support {
    background-image: url('../images/consultas.png');
}

.hablemos-contact-card__icon--phone {
    background-image: url('../images/telefono.png');
}

.hablemos-contact-card__icon--schedule {
    background-image: url('../images/reloj.png');
}

.hablemos-contact-card__icon--mailbox {
    background-image: url('../images/sobre.png');
}

.hablemos-contact-card__icon--location {
    background-image: url('../images/ubicacion_icon.png');
}

/* =========================
   TEXTOS
========================= */

.hablemos-contact-card__text {
    margin: 0;
    max-width: 440px;
    font-family: var(--font-family-base);
    font-size: var(--text-body-md-size);
    line-height: var(--text-body-md-line);
    font-weight: var(--text-body-md-weight);
    color: #585858;
    text-align: center;
}

/* =========================
   BOTONES MAPAS
========================= */

.hablemos-contact-card__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}
.hablemos-map-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 250px;
    height: 65px;
    padding: 16px;
    border: 1px solid var(--color-primary);
    border-radius: var(--border-radius-md);
    background: var(--color-white);
    text-decoration: none;
    color: #585858;
    font-family: var(--font-family-heading);
    font-size: var(--btn-large-font-size);
    line-height: 24px;
    font-weight: 700;
    transition:
        background var(--transition-base),
        color var(--transition-base),
        border-color var(--transition-base),
        box-shadow var(--transition-base);
}

.hablemos-map-btn:hover {
    background: #F5F9FF;
    color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(43, 125, 229, 0.12);
}

.hablemos-map-btn::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
}

.hablemos-map-btn--waze::after {
    background-image: url('../images/waze.png');
}

.hablemos-map-btn--maps::after {
    background-image: url('../images/google-maps.png');
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1399px) {
    .hablemos-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hablemos-contact-grid--bottom {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1199px) {
    .hablemos-container,
    .hablemos-hero__content {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hablemos-form__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 991px) {
    .hablemos-hero {
        min-height: 500px;
        background-position: center right;
    }

    .hablemos-hero__title {
        font-size: var(--text-title-size);
        line-height: 58px;
        max-width: 100%;
    }

    .hablemos-hero__text {
        max-width: 560px;
        font-size: var(--text-body-secondary-size);
        line-height: 26px;
    }

    .hablemos-form-section,
    .hablemos-contact-section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .hablemos-form__row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .hablemos-contact-section__title {
        font-size: var(--text-subtitle-size);
        line-height: 36px;
        margin-bottom: 32px;
    }

    .hablemos-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 24px;
    }

    .hablemos-contact-card__buttons {
        gap: 16px;
    }

    .hablemos-map-btn {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 767px) {
    .hablemos-container,
    .hablemos-hero__content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hablemos-hero {
        min-height: 420px;
    }

    .hablemos-hero__title {
        margin-bottom: 20px;
        font-size: var(--text-title-size);
        line-height: 48px;
    }

    .hablemos-hero__text {
        font-size: var(--text-body-secondary-size);
        line-height: 25px;
    }

    .hablemos-form__label {
        font-size: var(--text-body-secondary-size);
        line-height: 22px;
    }

    .hablemos-contact-card__text,
    .hablemos-map-btn {
        font-size: var(--text-body-secondary-size);
        line-height: 22px;
    }

    .hablemos-contact-card {
        min-height: auto;
    }
}

@media (max-width: 575px) {
    .hablemos-container,
    .hablemos-hero__content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .hablemos-hero {
        min-height: 380px;
    }

    .hablemos-hero__title {
        font-size: var(--text-subtitle-size);
        line-height: 40px;
    }

    .hablemos-hero__text {
        font-size: var(--text-body-secondary-size);
        line-height: 22px;
    }

    .hablemos-form__submit {
        width: 100%;
        min-width: 0;
    }

    .hablemos-map-btn {
        font-size: var(--text-body-secondary-size);
        line-height: 20px;
        min-width: 100%;
        height: auto;
        min-height: 60px;
        padding: 14px 16px;
    }

    .hablemos-map-btn::after {
        width: 24px;
        height: 24px;
    }
}
