/* =========================================
   VARIABLES DE COLORES INSTITUCIONALES MEV
   ========================================= */
:root {
    --mev-green: #1B5E20; /* Verde oscuro del logo */
    --mev-gold: #C5A059;  /* Dorado del logo */
    --mev-light: #F9FBF9; /* Fondo claro */
    --mev-dark: #333333;  /* Texto oscuro */
}

/* =========================================
   ESTILOS BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--mev-light);
    color: var(--mev-dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    color: var(--mev-green);
    margin-bottom: 30px;
    font-size: 2rem;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--mev-green);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--mev-gold);
}

/* =========================================
   SECCIÓN HERO (INICIO)
   ========================================= */
.hero {
    background-color: var(--mev-green);
    color: white;
    text-align: center;
    padding: 100px 20px;
    background-image: url('../images/banner-principal.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
}

.hero h1 {
    font-size: 2.5rem;
    color: var(--mev-gold);
    margin-bottom: 20px;
}

/* =========================================
   BOTONES Y TAGS (PÁGINA PRINCIPAL)
   ========================================= */
.btn-mev {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--mev-gold);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-mev:hover {
    background-color: var(--mev-green);
}

.ministries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.ministry-tag {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid var(--mev-green);
    color: var(--mev-green);
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: transparent;
}

.ministry-tag:hover {
    background-color: var(--mev-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(27, 94, 32, 0.2);
}

/* =========================================
   TARJETAS DE MINISTERIOS (PÁGINA MINISTERIOS)
   ========================================= */
.grid-ministerios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-bottom: 4px solid var(--mev-gold);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    background-color: #e0e0e0;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    color: var(--mev-green);
    margin-bottom: 10px;
}

/* =========================================
   CALENDARIO (PÁGINA CENTROS)
   ========================================= */
.calendar-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.calendar-day {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    border-top: 5px solid var(--mev-gold);
}

.calendar-header {
    background-color: var(--mev-green);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.calendar-content {
    padding: 20px;
}

.event-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.event-time {
    color: var(--mev-gold);
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

.event-title {
    font-weight: bold;
    color: var(--mev-dark);
    display: block;
}

.event-contact {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 3px;
}

.badge-radio {
    display: inline-block;
    background-color: #e8f5e9;
    color: var(--mev-green);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--mev-green);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.social-links a {
    color: var(--mev-gold);
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVIDAD (MÓVILES)
   ========================================= */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .ministry-tag {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .calendar-container, .grid-ministerios {
        grid-template-columns: 1fr; /* Una sola columna en celulares para lectura fácil */
    }
}

/* =========================================
   BOTONES DE PROVINCIAS / CIUDADES
   ========================================= */
.provincias-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.btn-provincia {
    display: inline-block;
    padding: 10px 22px;
    background-color: white;
    color: var(--mev-green);
    border: 2px solid var(--mev-green);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-provincia:hover {
    background-color: var(--mev-green);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(27, 94, 32, 0.2);
}

/* =========================================
   SECCIÓN PRÓXIMOS RETIROS (Horizontal + Link)
   ========================================= */
.retiros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    margin-top: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.retiro-card {
    display: flex;             
    flex-direction: row;       
    background: white;
    border-radius: 20px;       /* Esquinas redondeadas */
    overflow: hidden;          
    border: 2px solid #000000; /* Borde negro */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    align-items: center;
    text-decoration: none;     /* IMPORTANTE: Quita el subrayado del link */
    color: inherit;            /* IMPORTANTE: Mantiene el color del texto original */
}

.retiro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    cursor: pointer;
}

.retiro-img-container {
    width: 40%;                
    aspect-ratio: 4 / 5;       
    flex-shrink: 0;            
}

.retiro-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.retiro-info {
    width: 60%;                
    padding: 20px;
    text-align: left;          
}

.retiro-nombre {
    font-weight: 800;
    color: #000;               
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.retiro-centro {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 3px;
    display: block; /* Asegura que cada línea esté separada */
}

.retiro-provincia {
    font-size: 0.85rem;
    color: var(--mev-gold);    
    font-weight: 700;
    text-transform: uppercase;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .retiros-grid {
        grid-template-columns: 1fr;
    }
}