/* =========================================================
   CASLA - MÓDULO CONTACTO
   Diseño compacto, elegante y estructurado
========================================================= */


/* =========================================================
   CONTENEDOR
========================================================= */

.contacto-contenedor {
    padding: 48px 0 65px;
}


/* =========================================================
   ENCABEZADO
========================================================= */

.contacto-header {
    max-width: 760px;
    margin: 0 auto 32px;
    text-align: center;

    animation: contactoEntrada .7s ease both;
}

.contacto-subtitulo {
    display: inline-block;

    margin-bottom: 5px;

    color: var(--azul-casla);

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;

    text-transform: uppercase;
}

.contacto-header h1 {
    margin: 0 0 9px;

    color: var(--azul-oscuro);

    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 1px;
}

.contacto-header p {
    margin: 0;

    color: var(--gris-texto);

    font-size: 16px;
    line-height: 1.6;
}


/* =========================================================
   ANIMACIÓN GENERAL
========================================================= */

@keyframes contactoEntrada {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   DATOS DE CONTACTO
========================================================= */

.contacto-datos {
    row-gap: 20px;
}


/* =========================================================
   TARJETAS PRINCIPALES
========================================================= */

.contacto-card {
    position: relative;

    height: 100%;

    padding: 24px 20px;

    border: 1px solid var(--gris-borde);
    border-radius: var(--radio-medio);

    background: var(--blanco);

    box-shadow: var(--sombra-suave);

    text-align: center;

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;

    animation: contactoEntrada .7s ease both;
}


/* Línea decorativa */

.contacto-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        var(--azul-oscuro),
        var(--azul-casla),
        var(--azul-casla-claro)
    );

    transform: scaleX(0);
    transform-origin: center;

    transition: transform .35s ease;
}

.contacto-card:hover::before {
    transform: scaleX(1);
}

.contacto-card:hover {
    transform: translateY(-6px);

    border-color: rgba(13, 91, 215, .20);

    box-shadow: var(--sombra-media);
}


/* Animación escalonada */

.contacto-datos .col-lg-4:nth-child(1) .contacto-card {
    animation-delay: .1s;
}

.contacto-datos .col-lg-4:nth-child(2) .contacto-card {
    animation-delay: .2s;
}

.contacto-datos .col-lg-4:nth-child(3) .contacto-card {
    animation-delay: .3s;
}


/* =========================================================
   ICONOS PRINCIPALES
========================================================= */

.contacto-icono {

    width: 58px;
    height: 58px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 23px;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.contacto-card:hover .contacto-icono {
    transform: scale(1.08) translateY(-3px);

    box-shadow: 0 8px 18px rgba(0,0,0,.10);
}


/* COLORES */

.contacto-icono-telefono {
    background: #e8f1ff;
    color: var(--azul-casla);
}

.contacto-icono-whatsapp {
    background: #e4f8eb;
    color: #198754;
}

.contacto-icono-correo {
    background: #e8efff;
    color: #0d6efd;
}


/* =========================================================
   TÍTULO TARJETA
========================================================= */

.contacto-card h3 {
    margin: 0 0 10px;

    color: var(--azul-oscuro);

    font-size: 20px;
    font-weight: 750;

    line-height: 1.25;
}


/* =========================================================
   CONTENIDO DE CONTACTO
========================================================= */

.contacto-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 4px;
}

.contacto-contenido a {
    color: var(--azul-casla);

    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color .25s ease,
        transform .25s ease;
}

.contacto-contenido a:hover {
    color: var(--azul-oscuro);

    transform: translateY(-1px);
}


/* =========================================================
   INFORMACIÓN ADICIONAL
========================================================= */

.contacto-informacion {
    margin-top: 20px;
    row-gap: 20px;
}


/* =========================================================
   TARJETAS DE INFORMACIÓN
========================================================= */

.contacto-card-info {

    display: flex;
    align-items: flex-start;

    gap: 18px;

    padding: 23px 25px;

    text-align: left;
}


/* =========================================================
   ICONOS DE INFORMACIÓN
========================================================= */

.contacto-info-icono {

    width: 46px;
    height: 46px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eaf2ff;
    color: var(--azul-casla);

    font-size: 19px;

    transition:
        transform .3s ease,
        background-color .3s ease;
}

.contacto-card-info:hover .contacto-info-icono {
    transform: rotate(-5deg) scale(1.08);

    background: #dceaff;
}


/* =========================================================
   CONTENIDO INFORMACIÓN
========================================================= */

.contacto-info-contenido {
    flex: 1;
}

.contacto-info-contenido h3 {
    margin: 0 0 12px;

    color: var(--azul-oscuro);

    font-size: 21px;
    font-weight: 750;
    line-height: 1.25;
}


/* =========================================================
   HORARIOS
========================================================= */

.contacto-horarios {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.contacto-horarios div {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-bottom: 6px;

    border-bottom: 1px solid var(--gris-borde);

    color: var(--gris-texto);

    font-size: 14.5px;
    line-height: 1.5;
}

.contacto-horarios div:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contacto-horarios strong {
    color: var(--gris-oscuro);
    font-weight: 700;
}

.contacto-horarios span {
    text-align: right;
}


/* =========================================================
   UBICACIÓN
========================================================= */

.contacto-ubicacion {
    margin: 0 0 12px;

    color: var(--gris-texto);

    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   BOTÓN GOOGLE MAPS
========================================================= */

.contacto-mapa-btn {

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 9px 16px;

    border: 2px solid var(--azul-casla);
    border-radius: var(--radio-pequeno);

    background: var(--azul-casla);
    color: var(--blanco);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    overflow: hidden;

    box-shadow: 0 5px 12px rgba(13,91,215,.18);

    transition:
        transform .25s ease,
        background-color .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


/* Brillo */

.contacto-mapa-btn::before {

    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.28),
        transparent
    );

    transform: skewX(-20deg);

    transition: left .55s ease;
}

.contacto-mapa-btn:hover::before {
    left: 140%;
}

.contacto-mapa-btn:hover {

    transform: translateY(-3px);

    background: var(--azul-oscuro);
    border-color: var(--azul-oscuro);

    color: var(--blanco);

    box-shadow: 0 9px 18px rgba(8,44,108,.23);
}

.contacto-mapa-btn:active {
    transform: scale(.95);
}


/* =========================================================
   RESPONSIVE - TABLETA
========================================================= */

@media (max-width: 992px) {

    .contacto-contenedor {
        padding-top: 42px;
    }

    .contacto-header h1 {
        font-size: 38px;
    }

    .contacto-card {
        padding: 23px 18px;
    }

    .contacto-card-info {
        padding: 22px 20px;
    }

}


/* =========================================================
   RESPONSIVE - CELULAR
========================================================= */

@media (max-width: 768px) {

    .contacto-contenedor {
        padding: 35px 0 50px;
    }

    .contacto-header {
        margin-bottom: 27px;
    }

    .contacto-header h1 {
        font-size: 33px;
    }

    .contacto-header p {
        font-size: 15px;
    }

    .contacto-datos {
        row-gap: 15px;
    }

    .contacto-informacion {
        margin-top: 15px;
    }

    .contacto-card-info {
        padding: 21px 19px;
    }

}


/* =========================================================
   RESPONSIVE - CELULAR PEQUEÑO
========================================================= */

@media (max-width: 576px) {

    .contacto-contenedor {
        padding-top: 30px;
    }

    .contacto-subtitulo {
        font-size: 13px;
        letter-spacing: 1.6px;
    }

    .contacto-header h1 {
        font-size: 29px;
    }

    .contacto-header p {
        font-size: 14.5px;
    }

    .contacto-card {
        padding: 21px 17px;
    }

    .contacto-icono {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .contacto-card h3 {
        font-size: 19px;
    }

    .contacto-contenido a {
        font-size: 14.5px;
    }

    .contacto-card-info {
        gap: 14px;
        padding: 20px 17px;
    }

    .contacto-info-icono {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .contacto-info-contenido h3 {
        font-size: 19px;
    }

    .contacto-horarios div {
        align-items: flex-start;
        flex-direction: column;
        gap: 1px;
    }

    .contacto-horarios span {
        text-align: left;
    }

    .contacto-mapa-btn {
        width: 100%;
    }

}



/* =========================================================
   CASLA DEL SURESTE - CONTACTO
   Diseño moderno, compacto y responsive
========================================================= */

.pagina-contacto {
    color: #253449;
    background: #f5f8fd;
}

/* =========================================================
   ENCABEZADO PRINCIPAL AZUL
========================================================= */

.contacto-titulo-seccion {
    position: relative;
    overflow: hidden;
    padding: 38px 0 35px;
    color: #ffffff;
    text-align: center;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(54, 133, 255, .32),
            transparent 30%
        ),
        linear-gradient(
            115deg,
            #061a3d,
            #082c6c 65%,
            #104ca4
        );
}

.contacto-titulo-seccion::after {
    content: "";
    position: absolute;
    right: 8%;
    bottom: -65px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    pointer-events: none;
}

.contacto-titulo-seccion .container {
    position: relative;
    z-index: 1;
}

.contacto-titulo-seccion .contacto-subtitulo {
    display: inline-block;
    margin-bottom: 9px;
    color: #bcd6ff;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
}

.contacto-titulo-seccion h1 {
    margin: 0 0 9px;
    color: #ffffff;
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 850;
    letter-spacing: 1px;
}

.contacto-titulo-seccion p {
    max-width: 700px;
    margin: 0 auto;
    color: #dce9ff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}

/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.contacto-contenedor {
    max-width: 1180px;
    padding-top: 36px;
    padding-bottom: 48px;
}

.contacto-datos,
.contacto-informacion {
    --bs-gutter-x: 1.25rem;
    --bs-gutter-y: 1.25rem;
}

.contacto-informacion {
    margin-top: 8px;
}

/* =========================================================
   TARJETAS DE CONTACTO
========================================================= */

.contacto-card {
    position: relative;
    height: 100%;
    padding: 26px 22px;
    background: #ffffff;
    border: 1px solid #e2eaf4;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(8, 44, 108, .055);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.contacto-datos .contacto-card {
    text-align: center;
}

.contacto-card:hover {
    transform: translateY(-4px);
    border-color: #c7dcfb;
    box-shadow: 0 13px 28px rgba(8, 44, 108, .10);
}

.contacto-card h3 {
    margin: 15px 0 12px;
    color: #082c6c;
    font-size: 19px;
    font-weight: 800;
}

/* =========================================================
   ICONOS
========================================================= */

.contacto-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    border-radius: 16px;
    font-size: 24px;
}

.contacto-icono-telefono {
    color: #0d5bd7;
    background: #eaf3ff;
}

.contacto-icono-whatsapp {
    color: #16864a;
    background: #e7f8ee;
}

.contacto-icono-correo {
    color: #8054c7;
    background: #f1eaff;
}

/* =========================================================
   ENLACES DE CONTACTO
========================================================= */

.contacto-contenido {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
}

.contacto-contenido a {
    color: #52657c;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color .2s ease;
}

.contacto-contenido a:hover {
    color: #0d5bd7;
}

.contacto-icono-whatsapp + h3 + .contacto-contenido a {
    color: #16864a;
}

.contacto-icono-whatsapp + h3 + .contacto-contenido a:hover {
    color: #106b39;
}

/* =========================================================
   TARJETAS DE INFORMACIÓN
========================================================= */

.contacto-card-info {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 25px;
}

.contacto-info-icono {
    display: flex;
    flex: 0 0 52px;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    color: #0d5bd7;
    background: #eaf3ff;
    border-radius: 14px;
    font-size: 22px;
}

.contacto-info-contenido {
    flex: 1;
    min-width: 0;
}

.contacto-info-contenido h3 {
    margin: 3px 0 17px;
    color: #082c6c;
    font-size: 20px;
    font-weight: 800;
}

/* =========================================================
   HORARIOS
========================================================= */

.contacto-horarios {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contacto-horarios > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f7;
    font-size: 13px;
}

.contacto-horarios > div:first-child {
    padding-top: 0;
}

.contacto-horarios > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.contacto-horarios strong {
    color: #35465c;
    font-weight: 700;
}

.contacto-horarios span {
    color: #607086;
    text-align: right;
}

.contacto-horarios > div:last-child span {
    color: #b42318;
    font-weight: 700;
}

/* =========================================================
   UBICACIÓN Y MAPA
========================================================= */

.contacto-ubicacion {
    margin: 0 0 17px;
    color: #607086;
    font-size: 14px;
    line-height: 1.7;
}

.contacto-mapa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 16px;
    color: #ffffff;
    background: #0d5bd7;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    transition:
        background-color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.contacto-mapa-btn:hover {
    color: #ffffff;
    background: #082c6c;
    box-shadow: 0 5px 14px rgba(13, 91, 215, .2);
    transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991.98px) {
    .contacto-contenedor {
        padding-top: 30px;
        padding-bottom: 38px;
    }

    .contacto-card {
        padding: 23px 18px;
    }

    .contacto-card-info {
        padding: 23px 20px;
    }
}

@media (max-width: 767.98px) {
    .contacto-titulo-seccion {
        padding: 30px 0 28px;
    }

    .contacto-titulo-seccion p {
        font-size: 14px;
    }

    .contacto-contenedor {
        padding-top: 25px;
        padding-bottom: 32px;
    }

    .contacto-datos,
    .contacto-informacion {
        --bs-gutter-y: 1rem;
    }

    .contacto-icono {
        width: 52px;
        height: 52px;
        border-radius: 14px;
    }

    .contacto-card-info {
        gap: 14px;
    }

    .contacto-info-icono {
        flex-basis: 45px;
        width: 45px;
        height: 45px;
        font-size: 19px;
    }

    .contacto-info-contenido h3 {
        font-size: 18px;
    }
}

@media (max-width: 575.98px) {
    .contacto-contenedor {
        padding-top: 20px;
        padding-bottom: 28px;
    }

    .contacto-card {
        padding: 22px 17px;
        border-radius: 13px;
    }

    .contacto-card-info {
        padding: 20px 16px;
    }

    .contacto-horarios > div {
        align-items: flex-start;
        font-size: 12px;
    }

    .contacto-mapa-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-card,
    .contacto-contenido a,
    .contacto-mapa-btn {
        transition: none;
    }
}


/* =========================================================
   CASLA DEL SURESTE
   MEJORA DE LEGIBILIDAD Y CONTRASTE - CONTACTO
   Encabezado + tarjetas + horarios + ubicación
========================================================= */

/* =========================================================
   TEXTO GENERAL Y ENCABEZADO
========================================================= */

.pagina-contacto {
    color: #253449;
}

.contacto-titulo-seccion .contacto-subtitulo {
    color: #d6e6ff;
    font-weight: 900;
    opacity: 1;
}

.contacto-titulo-seccion h1 {
    color: #ffffff;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.contacto-titulo-seccion p {
    color: #f0f5ff;
    font-weight: 500;
    opacity: 1;
    line-height: 1.8;
}

/* =========================================================
   ENCABEZADO ALTERNATIVO
========================================================= */

.contacto-header h1 {
    color: #082c6c;
    font-weight: 900;
}

.contacto-header p {
    color: #40516b;
    font-weight: 500;
    line-height: 1.8;
}

.contacto-subtitulo {
    color: #0d5bd7;
    font-weight: 800;
}

/* =========================================================
   TARJETAS DE CONTACTO
========================================================= */

.contacto-card {
    color: #253449;
    background-color: #ffffff;
    border-color: #d5deeb;
}

.contacto-card h3 {
    color: #082c6c;
    font-weight: 850;
    line-height: 1.4;
}

.contacto-card:hover {
    border-color: #a9c9f5;
}

/* =========================================================
   ICONOS
========================================================= */

.contacto-icono-telefono {
    color: #084bb5;
    background-color: #e8f1ff;
}

.contacto-icono-whatsapp {
    color: #146c3a;
    background-color: #e4f8eb;
}

.contacto-icono-correo {
    color: #0b55bd;
    background-color: #e8efff;
}

/* =========================================================
   TELÉFONO, WHATSAPP Y CORREO
========================================================= */

.contacto-contenido a {
    color: #334b68;
    font-weight: 700;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contacto-contenido a:hover {
    color: #082c6c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacto-icono-whatsapp + h3 + .contacto-contenido a {
    color: #146c3a;
    font-weight: 750;
}

.contacto-icono-whatsapp + h3 + .contacto-contenido a:hover {
    color: #0b512b;
}

/* =========================================================
   TARJETAS DE INFORMACIÓN ADICIONAL
========================================================= */

.contacto-card-info {
    color: #253449;
}

.contacto-info-icono {
    color: #084bb5;
    background-color: #e8f1ff;
}

.contacto-info-contenido h3 {
    color: #082c6c;
    font-weight: 850;
    line-height: 1.4;
}

/* =========================================================
   HORARIOS DE ATENCIÓN
========================================================= */

.contacto-horarios > div {
    color: #334155;
    border-bottom-color: #dbe4ef;
    font-size: 14px;
    line-height: 1.7;
}

.contacto-horarios strong {
    color: #253449;
    font-weight: 800;
}

.contacto-horarios span {
    color: #40516b;
    font-weight: 500;
}

.contacto-horarios > div:last-child span {
    color: #a61b1b;
    font-weight: 800;
}

/* =========================================================
   UBICACIÓN
========================================================= */

.contacto-ubicacion {
    color: #40516b;
    font-weight: 500;
    line-height: 1.8;
}

/* =========================================================
   BOTÓN GOOGLE MAPS
========================================================= */

.contacto-mapa-btn {
    color: #ffffff;
    background-color: #0b55c4;
    border: 2px solid #0b55c4;
    font-weight: 800;
    box-shadow: 0 5px 12px rgba(13, 91, 215, 0.18);
}

.contacto-mapa-btn:hover {
    color: #ffffff;
    background-color: #082c6c;
    border-color: #082c6c;
}

.contacto-mapa-btn:focus-visible {
    outline: 3px solid #2878e8;
    outline-offset: 3px;
}

/* =========================================================
   ACCESIBILIDAD Y RESPONSIVE
========================================================= */

.contacto-contenido a:focus-visible {
    outline: 2px solid #0d5bd7;
    outline-offset: 3px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .contacto-titulo-seccion h1 {
        font-weight: 900;
    }

    .contacto-titulo-seccion p {
        line-height: 1.8;
    }

    .contacto-card h3,
    .contacto-info-contenido h3 {
        font-weight: 850;
    }

    .contacto-contenido a {
        font-size: 14px;
    }

    .contacto-horarios > div {
        font-size: 13px;
    }
}

@media (max-width: 575.98px) {
    .contacto-titulo-seccion .contacto-subtitulo {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .contacto-titulo-seccion p {
        font-size: 14px;
    }

    .contacto-card h3,
    .contacto-info-contenido h3 {
        line-height: 1.45;
    }

    .contacto-ubicacion {
        font-size: 14px;
    }

    .contacto-horarios > div {
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacto-card,
    .contacto-icono,
    .contacto-contenido a,
    .contacto-mapa-btn {
        animation: none;
        transition: none;
        transform: none;
    }

    .contacto-card::before,
    .contacto-mapa-btn::before {
        transition: none;
    }
}