:root {
    --rojo: #aa0d2e;
}

/* ============================================================
   MAPA
   ============================================================ */

.contactanos-page .map-container-section {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: var(--radius-card, 10px);
    transition: all 0.3s;
}

.contactanos-page .map-container-section iframe {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contactanos-page .map-container-section:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   FORMULARIO
   ============================================================ */

.contactanos-page .form-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--color-border, #dce5e9);
    border-radius: var(--radius-card, 10px);
    box-shadow: var(--shadow-soft, 0 8px 26px rgba(0, 49, 73, .08));
    transition: all 0.3s;
}

.contactanos-page .form-card:hover {
    transform: none;
    box-shadow: var(--shadow-hover, 0 14px 34px rgba(0, 49, 73, .13));
}


/* ============================================================
   ENCABEZADO CONTACTO
   ============================================================ */

.contactanos-page .form-header {
    background-color: var(--rojo) !important;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px 8px 0 0;
}

.contactanos-page .form-header h3 {
    margin: 0;
    color: #fff;
}

.contactanos-page .form-header i {
    cursor: pointer;
}


/* ============================================================
   CAMPOS
   ============================================================ */

.contactanos-page .md-form {
    position: relative;
    margin-bottom: 22px;
}

.contactanos-page .md-form input,
.contactanos-page .md-form textarea {
    border-radius: 8px;
    transition: all 0.3s;
}

.contactanos-page .md-form input:focus,
.contactanos-page .md-form textarea:focus {
    box-shadow: 0 0 10px rgba(170, 13, 46, 0.3);
    border-color: var(--rojo);
}


/* ============================================================
   ICONOS DE LOS CAMPOS
   ============================================================ */

.contactanos-page .md-form .prefix {
    color: #777;
}


/* ============================================================
   BOTÓN ENVIAR
   ============================================================ */

.contactanos-page #btnContacto {
    background-color: var(--rojo) !important;
    border: none;
    border-radius: 6px;
    padding: 10px 25px;
    color: #fff;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.contactanos-page #btnContacto:hover {
    background-color: var(--rojo) !important;
    transform: none;
    box-shadow: 0 6px 16px rgba(0, 49, 73, .18);
}

.contactanos-page #btnContacto:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}


/* ============================================================
   ALERTA DE ÉXITO
   ============================================================ */

.contactanos-page .alerta-exito {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s;
    z-index: 9999;
}

.contactanos-page .alerta-exito.show {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   ANIMACIÓN FADE-IN
   ============================================================ */

.contactanos-page .fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.contactanos-page .fade-in.show {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   BANNER INFERIOR
   ============================================================ */

.contactanos-page>.p-5 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.contactanos-page>.p-5 img {
    display: block;
    width: 100%;
    height: auto;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {

    .contactanos-page .form-card {
        padding: 25px;
    }

    .contactanos-page section h3 {
        font-size: 1.5rem;
    }
}


@media (max-width: 767.98px) {

    .contactanos-page .form-card {
        padding: 20px;
        border-radius: 10px;
    }

    .contactanos-page .map-container-section {
        margin-top: 10px;
        border-radius: 10px;
    }

    .contactanos-page #btnContacto {
        width: 100%;
    }

    .contactanos-page .alerta-exito {
        left: 15px;
        right: 15px;
        top: 15px;
        text-align: center;
    }
}

/* Refinamiento visual de la pagina de contacto */
.contactanos-page {
    background: #f4f7fa;
    color: #243746;
    overflow: hidden;
}

.contactanos-page main {
    padding: 1px 0 2rem;
}

.contactanos-page .container {
    max-width: 1180px;
}

.contactanos-page .contact-intro {
    max-width: 850px;
    margin-bottom: 2rem;
    color: #304a5a;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 400;
    line-height: 1.7;
}

.contactanos-page .form-card {
    padding: 0;
    border: 1px solid #e3e9ee;
    border-radius: var(--radius-card, 10px);
    box-shadow: var(--shadow-soft, 0 8px 26px rgba(0, 49, 73, .08));
    overflow: hidden;
}

.contactanos-page .form-header {
    display: flex;
    align-items: center;
    min-height: 78px;
    padding: 1.1rem 1.5rem;
    background: #aa0d2e !important;
    border-radius: 0;
}

.contactanos-page .form-header h3 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    font-size: 1.35rem;
    font-weight: 700;
}

.contactanos-page .form-header i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    font-size: 0.95rem;
}

.contactanos-page #formContacto {
    padding: 1.6rem 1.5rem 1.7rem;
}

.contactanos-page .md-form {
    margin-bottom: 1rem;
}

.contactanos-page .md-form .prefix {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 1;
    color: #7c8b95;
}

.contactanos-page .md-form input,
.contactanos-page .md-form textarea {
    min-height: 48px;
    padding: 0.75rem 1rem 0.75rem 2.65rem;
    border: 1px solid #dbe3e8;
    background: #fbfcfd;
    color: #243746;
}

.contactanos-page .md-form textarea {
    min-height: 116px;
    resize: vertical;
}

.contactanos-page .md-form label {
    display: block;
    position: static;
    margin: 0.45rem 0 0;
    color: #60727e;
    font-size: 0.82rem;
    font-weight: 600;
}

.contactanos-page .md-form input:focus,
.contactanos-page .md-form textarea:focus {
    border-color: #aa0d2e;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(170, 13, 46, 0.12);
}

.contactanos-page #btnContacto {
    min-width: 150px;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #aa0d2e !important;
    border-radius: 8px;
    font-weight: 700;
}

.contactanos-page #btnContacto:hover {
    background: #870a25 !important;
    transform: translateY(-2px);
}

.contactanos-page .map-container-section {
    min-height: 420px;
    padding-bottom: 0;
    border: 1px solid #e3e9ee;
    border-radius: var(--radius-card, 10px);
    box-shadow: var(--shadow-soft, 0 8px 26px rgba(0, 49, 73, .08));
    background: #dfe8ed;
}

.contactanos-page .map-container-section:hover {
    transform: none;
    box-shadow: var(--shadow-hover, 0 14px 34px rgba(0, 49, 73, .13));
}

@media (max-width: 767.98px) {
    .contactanos-page .contact-intro {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .contactanos-page #formContacto {
        padding: 1.25rem 1rem 1.4rem;
    }

    .contactanos-page .map-container-section {
        min-height: 320px;
    }
}

/* Formulario corporativo */
.contactanos-page .form-header {
    display: block;
    padding: 1.6rem 1.65rem 1.45rem;
    background: linear-gradient(135deg, #003149, #07557a) !important;
}

.contactanos-page .form-header h3 {
    margin: 0;
    font-size: 1.35rem;
}

.contactanos-page .form-header p {
    margin: .45rem 0 0 3rem;
    color: rgb(255 255 255 / 78%);
    font-size: .9rem;
}

.contactanos-page #formContacto {
    padding: 1.65rem;
}

.contactanos-page .contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.contactanos-page .contact-field {
    position: relative;
}

.contactanos-page .contact-field-full {
    grid-column: 1 / -1;
}

.contactanos-page .contact-field>label {
    display: block;
    margin: 0 0 .45rem;
    color: #334e5f;
    font-size: .82rem;
    font-weight: 700;
}

.contactanos-page .contact-field>label span {
    color: var(--rojo);
}

.contactanos-page .contact-field>i {
    position: absolute;
    top: 2.55rem;
    left: .9rem;
    z-index: 1;
    color: #718391;
    font-size: .9rem;
    pointer-events: none;
}

.contactanos-page .contact-field .form-control {
    width: 100%;
    min-height: 48px;
    padding: .72rem .9rem .72rem 2.55rem;
    border: 1px solid #d5e0e6;
    border-radius: 9px;
    background: #fbfcfd;
    color: #243746;
    font-size: .95rem;
    line-height: 1.4;
}

.contactanos-page .contact-field textarea.form-control {
    min-height: 130px;
    padding-top: .85rem;
    resize: vertical;
}

.contactanos-page .contact-field .form-control::placeholder {
    color: #98a7b1;
}

.contactanos-page .contact-field .form-control:focus {
    border-color: var(--azul-md);
    box-shadow: 0 0 0 3px rgb(6 101 165 / 14%);
}

.contactanos-page .contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.45rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e4ebef;
}

.contactanos-page .contact-form-footer p {
    margin: 0;
    color: #71808a;
    font-size: .78rem;
    line-height: 1.5;
}

.contactanos-page .contact-form-footer p i {
    color: var(--azul-md);
}

.contactanos-page #btnContacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-width: 172px;
    min-height: 46px;
    margin: 0;
    background: var(--rojo) !important;
    border-radius: 8px;
    box-shadow: 0 7px 15px rgb(170 13 46 / 18%);
}

@media (max-width: 767.98px) {

    .contactanos-page .form-header,
    .contactanos-page #formContacto {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }

    .contactanos-page .contact-fields {
        grid-template-columns: 1fr;
    }

    .contactanos-page .contact-form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contactanos-page #btnContacto {
        width: 100%;
    }
}

/* ============================================================
   ENCABEZADO EJECUTIVO DEL FORMULARIO
============================================================ */

.contactanos-page .form-card {
    border: 1px solid #d9e4e8;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(7, 49, 73, .08);
}

.contactanos-page .form-header {
    position: relative;
    display: block;
    min-height: 0;
    padding: 20px 24px 18px;
    border-bottom: 1px solid #e3ebee;
    background: #fff !important;
}

.contactanos-page .form-header::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    background: #a70d2d;
    content: '';
}

.contactanos-page .form-header h3 {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #073149;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 1.22rem;
    font-weight: 750;
}

.contactanos-page .form-header i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background: #073149;
    font-size: .85rem;
}

.contactanos-page .form-header p {
    margin: 7px 0 0 45px;
    color: #6a808a;
    font-size: .82rem;
}

.contactanos-page #formContacto {
    padding: 22px 24px 24px;
}

.contactanos-page .map-container-section {
    border-radius: 10px;
    box-shadow: 0 14px 32px rgba(7, 49, 73, .08);
}

@media (max-width: 767.98px) {
    .contactanos-page .form-header { padding: 18px 20px 16px; }
    .contactanos-page #formContacto { padding: 20px; }
}

/* Tipografia de lectura comoda */
.contactanos-page .form-header h3 {
    font-size: 1.38rem;
}

.contactanos-page .form-header p {
    font-size: .94rem;
}

.contactanos-page .contact-field > label {
    font-size: .9rem;
}

.contactanos-page .contact-field .form-control {
    min-height: 52px;
    font-size: 1rem;
}

.contactanos-page .contact-field textarea.form-control {
    min-height: 145px;
}

.contactanos-page .contact-field .form-control::placeholder {
    font-size: .94rem;
}

.contactanos-page .contact-form-footer p {
    font-size: .86rem;
}

@media (max-width: 767.98px) {
    .contactanos-page .contact-field > label {
        font-size: .88rem;
    }

    .contactanos-page .contact-field .form-control {
        font-size: .98rem;
    }
}