/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.contenedor {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.header {
    background: #6A1F2D;
    color: white;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    padding: 30px;
}

#map {
    margin: auto;
    height: 450px;
    /* Altura del mapa */
    width: 100%;
    /* Ancho completo */
}

.mapa-container {
    overflow: hidden;
}

/* Hero */
.hero {
    background: #f5f5f5;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    background: #007BFF;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
}

/* Features */
.features {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.feature-item {
    flex: 1;
    min-width: 250px;
}

/* Testimonials */
.reporte {
    background: #f0f0f0;
    padding: 3rem 0;
    text-align: center;
}

.reporte blockquote {
    font-style: italic;
    color: #555;
}

/* Contact */
.contact {
    padding: 4rem 0;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact input,
.contact textarea {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
}

.contact button {
    background: #6A1F2D;
    color: white;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.container img {
    width: 200px;
}

.boton-logo {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* Espacio entre logo y texto */
    padding: 20px 40px;
    font-size: 24px;
    font-weight: bold;
    background-color: #6A1F2D;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 250px;
    height: 220px;
}

.boton-logo:hover {
    background-color: #9b1a32;
}

.boton-logo img {
    width: 100%;
    /* Tamaño del logo */
    height: 70%;
    border-radius: 10px;
}

/* Tarjetas */
.contenedor-tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.fila2-1 {
    grid-column: 2 / span 1;
    ;
}

.fila2-2 {
    grid-column: 3 / span 1;
    ;
}

.tarjeta {
    background-color: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 180px;
    margin: 15px;
}

.tarjeta:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.tarjeta .icono {
    font-size: 48px;
    margin-bottom: 15px;
}

.tarjeta h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

/* Redes Sociales */
.redes-sociales {
    text-align: center;
    padding: 40px 0;
    background: #fff;
}

.redes-sociales h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.iconos-redes a {
    margin: 0 10px;
    display: inline-block;
}

.iconos-redes img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.iconos-redes a:hover img {
    transform: scale(1.2);
}

/* Formulario */
.btn-formulario {
    display: inline-block;
    background-color: #6A1F2D;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-formulario:hover {
    background-color: #9b1a32;
    text-decoration: none;
    color: white;
}

.btn-formulario:visited,
.btn-formulario:active,
.btn-formulario:focus {
    text-decoration: none;
    color: white;
}

/* Contactos */
.contactos {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contactos a,
.contactos a:hover,
.contactos a:visited,
.contactos a:focus {
    text-decoration: none;
}

.escritorio,
.movil {
    display: none;
}

.tarjeta a,
.tarjeta a:hover,
.tarjeta a:visited,
.tarjeta a:focus {
    text-decoration: none;
}

/* modal */
.modal {
    display: none;
    /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-contenido {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    height: 540px;
    overflow: hidden;
}

.modal-contenido img {
    border-radius: 8px;
    width: 90%;
    overflow: hidden;
}


.cerrar {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.refugios {
    background-image: url("/assets/images/JumilOficialOp.png");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    overflow: auto;
}

.titulo-modal {
    font-size: 20px;
    color: #bc9459;
    margin-bottom: 10px;
}


.lista-emergencia {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-emergencia li {
    background-color: #f9f9f98a;
    border-left: 5px solid #9b1a32;
    margin-bottom: 20px;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.lista-emergencia h3 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lista-emergencia p {
    margin: 0;
    color: #555;
    font-size: 14px;
}

.icono {
    font-size: 22px;
}

.lista-emergencia ul {
    padding-left: 20px;
    margin: 0;
    list-style-type: none;
}

.lista-emergencia ul li {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
}


/*  */









/* Responsive Design */
/* Mostrar en pantallas menores o iguales a 768px (ej. móviles) */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-grid {
        flex-direction: column;
    }

    .escritorio {
        display: none;
    }

    .movil {
        display: block;
    }

    #list-refugios .modal-contenido {
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px;
        width: 90%;
        max-width: 600px;
        position: relative;
        text-align: center;
        height: 400px;
        overflow: hidden;
    }

}

/* Mostrar en pantallas mayores a 768px (ej. escritorio/tablet horizontal) */
@media screen and (min-width: 769px) {
    .escritorio {
        display: block;
    }

    #list-refugios .modal-contenido {
        background-color: #fff;
        margin: 10% auto;
        padding: 20px;
        border-radius: 8px;
        width: 90%;
        max-width: 600px;
        position: relative;
        text-align: center;
        height: 600px;
        overflow: hidden;
    }
}