@import url('https://fonts.googleapis.com/css2?family=Amaranth:wght@400;700&family=Roboto+Condensed:wght@300;400;500;600;700&display=swap');


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================
   TIPOGRAFÍAS
========================================= */

body {
    font-family: 'Roboto Condensed', sans-serif;
}

h1,
h2,
h3,
nav a {
    font-family: 'Amaranth', sans-serif;
}


/* =========================================
   BODY
========================================= */

body {
    background: #B5B4AE;
    color: #000000;
}


/* =========================================
   HEADER
========================================= */

header {
    background: #ffffff;
    color: #000000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 30px;

    flex-wrap: wrap;
}

.header-left img {
    height: 80px;
    width: auto;
    display: block;
}

.header-center {
    text-align: center;
    flex: 1;
}

.header-center h1 {
    margin-bottom: 0.5rem;
    font-size: 2.3rem;
    color: #000000;
}

.header-center p {
    font-size: 1.1rem;
    color: #000000;
}

.header-right {
    text-align: right;
    font-size: 12px;
}


/* =========================================
   NAVEGACIÓN PRINCIPAL
========================================= */

.main-nav {
    background: #000000;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 1.5rem;
    padding: 0.8rem 1rem;

    flex-wrap: wrap;
}

.main-nav a {
    color: #ffffff;

    text-decoration: none;

    font-family: 'Amaranth', sans-serif;
    font-weight: 700;

    padding: 0.6rem 0.9rem;

    border-radius: 5px;

    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: #ffffff;
    color: #000000;
}


/* =========================================
   BOTÓN DESTACADO
   APOYOS Y DONACIONES
========================================= */

.main-nav .menu-destacado {
    background: #077d41 !important;
    color: #ffffff !important;

    padding: 0.7rem 1.2rem;

    border-radius: 6px;
    border: 2px solid #077d41;

    display: inline-block;

    transition: all 0.2s ease;
}

.main-nav .menu-destacado:hover {
    background: #ffffff !important;
    color: #077d41 !important;

    border-color: #077d41;

    transform: translateY(-2px);
}


/* =========================================
   CONTENEDOR PRINCIPAL
========================================= */

.container {
    width: 100%;
    max-width: 900px;

    margin: 1rem auto;

    padding: 1rem;
}


/* =========================================
   TARJETAS / POSTS
========================================= */

.post {
    width: 100%;

    background: #f8f5ed;

    margin-bottom: 1rem;

    padding: 1.5rem;

    border-radius: 10px;

    border-left: 2px solid #077d41;

    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.12);

    box-sizing: border-box;
}

.post h2 {
    margin-bottom: 0.5rem;

    color: #000000;

    font-size: 1.7rem;
}

.post a {
    text-decoration: none;

    color: #000000;
}


/* =========================================
   POSTER DE EMERGENCIA
========================================= */

.poster-emergencia {
    display: block;

    /*
       La imagen ocupa el ancho disponible
       de la tarjeta.
    */
    width: 100%;

    /*
       Nunca puede superar el ancho
       de la tarjeta.
    */
    max-width: 100%;

    /*
       Mantiene automáticamente la
       proporción original.
    */
    height: auto;

    /*
       Evita deformaciones o recortes.
    */
    object-fit: contain;

    /*
       Centrado horizontal.
    */
    margin: 0 auto;

    box-sizing: border-box;

    border-radius: 8px;
}


/* =========================================
   FECHA
========================================= */

.date {
    font-size: 0.8rem;

    color: #536158;

    margin-bottom: 1rem;
}


/* =========================================
   TEXTO
========================================= */

.excerpt {
    margin-bottom: 1rem;

    line-height: 1.6;

    color: #333333;

    font-size: 1.05rem;
}


/* =========================================
   ENLACES
========================================= */

.read-more {
    color: #0b2f60;

    font-weight: bold;
}

.read-more:hover {
    color: #077d41;
}


/* =========================================
   AYUDA / MUNICIPIOS
========================================= */

.ayuda {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 1rem;

    margin-bottom: 2rem;
}

.ayuda div {
    background: #D1D6DE;

    padding: 1.5rem 1rem;

    border-radius: 10px;

    text-align: center;

    font-family: 'Amaranth', sans-serif;

    font-weight: 700;

    font-size: 1.1rem;

    color: #000000;

    border-top: 2px solid #000000;

    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.10);

    transition: 0.2s;
}

.ayuda div:hover {
    background: #ffffff;

    color: #000000;

    transform: translateY(-3px);
}


/* =========================================
   DONACIÓN
========================================= */

.donacion {
    background: #f8f5ed;

    padding: 2rem;

    border-radius: 10px;

    border-top: 2px solid #0b2f60;

    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.12);

    text-align: center;
}

.donacion h2 {
    margin-bottom: 1rem;

    color: #000000;

    font-size: 1.8rem;
}

.donacion p {
    line-height: 1.6;

    margin-bottom: 1.5rem;

    color: #333333;

    font-size: 1.05rem;
}


/* =========================================
   QR
========================================= */

.qr {
    width: 280px;

    max-width: 80%;

    display: block;

    margin: 1.5rem auto;

    padding: 8px;

    background: #ffffff;

    border: 4px solid #0b2f60;

    border-radius: 8px;
}


/* =========================================
   WHATSAPP
========================================= */

.whatsapp {
    display: inline-block;

    background: #000000;

    color: #ffffff;

    text-decoration: none;

    font-family: 'Amaranth', sans-serif;

    font-weight: 700;

    padding: 0.9rem 1.5rem;

    border-radius: 6px;

    transition: 0.2s;
}

.whatsapp:hover {
    background: #0b2f60;

    color: #ffffff;
}


/* =========================================
   GALERÍA
========================================= */

.galeria {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 0.5rem;
}

.galeria img {
    width: 80%;

    height: auto;

    display: block;

    margin: 0 auto;

    border-radius: 8px;

    border: 3px solid #f8f5ed;

    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.15);

    cursor: default;
}


/* ==========================================
   GALERÍA DE FOTOS APOYOS
   ========================================== */

.apoyos-fotos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    max-width: 900px;
    margin: 1.5rem auto;
}

.apoyos-fotos img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    border: 2px solid #f8f5ed;
    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.15);
}


/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 900px) {

    .apoyos-fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        width: 100%;
        max-width: 800px;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .apoyos-fotos img {
        height: 300px;
    }
}


/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 768px) {

    .apoyos-fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        width: 100%;
        max-width: 100%;
        padding: 0 0.8rem;
        margin: 1.2rem auto;
        box-sizing: border-box;
    }

    .apoyos-fotos img {
        width: 100%;
        height: 360px;
        object-fit: contain;
        background: #B1B3BD;
        display: block;
        border-radius: 7px;
        border: 2px solid #f8f5ed;
        box-shadow:
            0 3px 8px rgba(12, 86, 38, 0.15);
    }
}


/* ==========================================
   MÓVILES PEQUEÑOS
   ========================================== */

@media (max-width: 480px) {

    .apoyos-fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
        padding: 0 0.7rem;
        margin: 1rem auto;
    }

    .apoyos-fotos img {
        height: 340px;
        object-fit: contain;
    }
}


/* ==========================================
   MÓVILES MUY PEQUEÑOS
   ========================================== */

@media (max-width: 360px) {

    .apoyos-fotos {
        gap: 0.6rem;
        padding: 0 0.6rem;
    }

    .apoyos-fotos img {
        height: 310px;
        object-fit: contain;
    }
}


/* =========================================
   LOGOS DE APOYO
========================================= */

.logos-apoyo {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 2rem;

    width: 100%;

    margin: 2rem auto;

    flex-wrap: wrap;
}

.logos-apoyo img {
    width: 240px;

    height: 220px;

    object-fit: contain;

    display: block;

    background: #ffffff;

    padding: 15px;

    border-radius: 8px;

    box-shadow:
        0 4px 12px rgba(12, 86, 38, 0.12);
}


/* =========================================
   FOOTER
========================================= */

footer {
    background: #000000;

    color: #ffffff;

    margin-top: 2rem;

    padding: 0;

    border-top: 2px solid #000000;
}


/* =========================================
   BARRA DEL FOOTER
========================================= */

.footer-bar {
    width: 100%;

    min-height: 150px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 20px 30px;
}


/* =========================================
   ESCUDO
========================================= */

.footer-bar .shield {
    display: flex;

    align-items: center;

    justify-content: center;
}

.footer-bar .shield img {
    height: 60px;

    width: auto;

    display: block;
}


/* =========================================
   INFORMACIÓN CENTRAL
========================================= */

.footer-info {
    text-align: center;

    flex: 1;
}

.footer-info p {
    margin: 5px 0;

    font-size: 1rem;
}


/* =========================================
   BANDERA
========================================= */

.footer-bar .flag {
    display: flex;

    align-items: center;

    justify-content: center;
}

.footer-bar .flag img {
    height: 30px;

    width: auto;

    display: block;
}


/* =========================================
   PROTECCIÓN GENERAL DE IMÁGENES
========================================= */

img {
    max-width: 100%;
}


/* =========================================
   RESPONSIVE
   TABLET
========================================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;

        text-align: center;
    }

    .header-left,
    .header-center,
    .header-right {
        text-align: center;

        margin: 10px 0;
    }

    .header-center {
        width: 100%;
    }

    .main-nav {
        flex-wrap: wrap;

        gap: 1rem;
    }

    .container {
        width: 95%;

        padding: 0.5rem;
    }

    .footer-bar {
        gap: 15px;
    }
}


/* =========================================
   RESPONSIVE
   MÓVIL
========================================= */

@media (max-width: 500px) {

    /* HEADER */

    .header-center h1 {
        font-size: 1.9rem;
    }

    .header-center p {
        font-size: 1rem;
    }


    /* MENÚ */

    .main-nav {
        gap: 0.5rem;

        padding: 0.7rem;
    }

    .main-nav a {
        font-size: 0.95rem;

        padding: 0.5rem 0.7rem;
    }

    .main-nav .menu-destacado {
        padding: 0.6rem 0.9rem;
    }


    /* CONTENEDOR */

    .container {
        width: 95%;

        padding: 0.5rem;
    }


    /* POSTS */

    .post {
        padding: 1rem;
    }


    /* POSTER */

    .poster-emergencia {
        width: 100%;
        max-width: 100%;
        height: auto;
    }


    /* AYUDA */

    .ayuda {
        grid-template-columns:
            repeat(2, 1fr);
    }


    /* DONACIÓN */

    .donacion {
        padding: 1.5rem 1rem;
    }


    /* QR */

    .qr {
        width: 240px;
    }


    /* GALERÍA */

    .galeria {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 0.6rem;
    }


    /* FOTOS DE APOYO */

    .apoyos-fotos {
        grid-template-columns: 1fr;

        max-width: 350px;
    }

    .apoyos-fotos img {
        height: 200px;
    }


    /* LOGOS */

    .logos-apoyo {
        flex-direction: column;

        gap: 1rem;
    }

    .logos-apoyo img {
        width: 220px;

        height: 160px;
    }


    /* FOOTER */

    .footer-bar {
        min-height: 130px;

        padding: 15px;

        gap: 10px;
    }

    .footer-bar .shield img {
        height: 40px;
    }

    .footer-bar .flag img {
        height: 24px;
    }

    .footer-info p {
        font-size: 0.9rem;
    }

    .footer-links {
        flex-direction: column;

        gap: 0.7rem;
    }

}

.visor-pdf {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visor-pdf iframe {
    display: block;
    margin: 0 auto;
}
