/* =========================================================
   FOOTER COMPACTO - ESTILO CÁLIDO
========================================================= */

.footer-tepos-compacto {
    position: relative;
    width: 100%;
    overflow: hidden;

    color: #ffffff;

    background: linear-gradient(
        110deg,
        #6f4a32 0%,
        #8a5a3b 42%,
        #8b4f58 72%,
        #6f3f52 100%
    );

    border-top: 3px solid #f1b56f;

    box-shadow:
        0 -8px 25px rgba(87, 48, 29, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Línea superior decorativa */
.footer-tepos-compacto::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #f2b36b,
        #f6c984,
        #eaa073,
        #cf7f8e
    );
}


/* =========================================================
   CONTENEDOR PRINCIPAL
========================================================= */

.footer-compacto-contenido {
    width: min(1680px, calc(100% - 80px));
    margin: 0 auto;
    padding: 42px 0 36px;

    display: grid;
    grid-template-columns: 1.35fr 1.65fr 0.9fr;
    gap: 50px;
}

.footer-columna {
    min-width: 0;
}

.footer-columna h3 {
    margin: 0 0 15px;

    color: #ffffff;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;

    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}


/* =========================================================
   IDENTIDAD MUNICIPAL
========================================================= */

.footer-identidad {
    display: flex;
    align-items: center;
    gap: 21px;
}

.footer-logo-compacto {
    width: 106px;
    min-width: 106px;
    height: 106px;

    padding: 8px;
    box-sizing: border-box;
    object-fit: contain;

    background: rgba(255, 245, 230, 0.14);

    border: 1px solid rgba(255, 220, 180, 0.35);
    border-radius: 18px;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.footer-identidad h3 {
    margin-bottom: 7px;
    font-size: 21px;
}

.footer-frase {
    margin: 0 0 10px;

    color: #ffd8c7;

    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
}

.footer-direccion {
    margin: 0;

    color: rgba(255, 255, 255, 0.82);

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   ENCABEZADOS DE CONTACTOS
========================================================= */

.footer-emergencias h3,
.footer-contactos h3 {
    padding-bottom: 10px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}


/* =========================================================
   NÚMEROS DE EMERGENCIA
========================================================= */

.footer-telefonos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 40px;
}

.footer-telefonos-grid a {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 3px 0;

    color: #ffffff;
    text-decoration: none;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.footer-telefonos-grid a:hover {
    padding-left: 8px;

    background: rgba(255, 255, 255, 0.07);

    transform: translateX(2px);
}

.footer-telefonos-grid span,
.footer-contactos span {
    color: rgba(255, 255, 255, 0.90);

    font-size: 13px;
    line-height: 1.4;
}

.footer-telefonos-grid strong {
    color: #ffd0df;

    font-size: 16px;
    letter-spacing: 0.25px;
}


/* =========================================================
   OTROS CONTACTOS
========================================================= */

.footer-contactos {
    display: flex;
    flex-direction: column;
}

.footer-contactos a {
    display: flex;
    flex-direction: column;
    gap: 3px;

    margin-bottom: 14px;
    padding: 3px 0;

    color: #ffffff;
    text-decoration: none;

    border-radius: 8px;

    transition:
        color 0.25s ease,
        transform 0.25s ease,
        background 0.25s ease;
}

.footer-contactos a:hover {
    padding-left: 8px;

    background: rgba(255, 255, 255, 0.07);

    transform: translateX(2px);
}

.footer-contactos strong {
    color: #ffd6a3;

    font-size: 16px;
}


/* =========================================================
   FRANJA INFERIOR
========================================================= */

.footer-compacto-inferior {
    width: min(1680px, calc(100% - 80px));
    margin: 0 auto;
    padding: 17px 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-compacto-inferior p {
    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 13px;
    line-height: 1.45;
}

.footer-compacto-inferior a {
    color: #ffd6a3;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-compacto-inferior a:hover {
    color: #ffffff;
    transform: translateX(2px);
}


/* =========================================================
   TABLETA
========================================================= */

@media (max-width: 1050px) {

    .footer-compacto-contenido {
        width: calc(100% - 50px);

        grid-template-columns: 1fr 1fr;
        gap: 35px;

        padding: 36px 0 30px;
    }

    .footer-identidad {
        grid-column: 1 / -1;
    }

    .footer-compacto-inferior {
        width: calc(100% - 50px);
    }
}


/* =========================================================
   CELULAR
========================================================= */

@media (max-width: 700px) {

    .footer-compacto-contenido {
        width: calc(100% - 30px);
        padding: 30px 0 24px;

        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-identidad {
        grid-column: auto;
        align-items: flex-start;
    }

    .footer-logo-compacto {
        width: 76px;
        min-width: 76px;
        height: 76px;

        border-radius: 14px;
    }

    .footer-identidad h3 {
        font-size: 17px;
    }

    .footer-frase,
    .footer-direccion {
        font-size: 12px;
    }

    .footer-columna h3 {
        font-size: 17px;
    }

    .footer-telefonos-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px 12px;
    }

    .footer-telefonos-grid span,
    .footer-contactos span {
        font-size: 11px;
    }

    .footer-telefonos-grid strong,
    .footer-contactos strong {
        font-size: 14px;
    }

    .footer-compacto-inferior {
        width: calc(100% - 30px);

        flex-direction: column;
        align-items: flex-start;
        gap: 6px;

        padding: 14px 0;
    }

    .footer-compacto-inferior p,
    .footer-compacto-inferior a {
        font-size: 11px;
    }
}


/* =========================================================
   CELULAR PEQUEÑO
========================================================= */

@media (max-width: 430px) {

    .footer-identidad {
        flex-direction: column;
        align-items: center;

        text-align: center;
    }

    .footer-telefonos-grid {
        grid-template-columns: 1fr;
    }

    .footer-emergencias,
    .footer-contactos {
        text-align: left;
    }
}