/* ============================================
   RESET Y CONFIGURACIÓN BÁSICA
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    padding: 2rem 0;
}

section {
    margin-bottom: 2rem;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.card-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
}

.fecha {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card-body {
    padding: 2rem;
}

/* ============================================
   COMUNICADO
   ============================================ */
.comunicado p {
    margin-bottom: 1.2rem;
    text-align: justify;
    font-size: 1.05rem;
}

.saludo {
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem !important;
}

.highlight-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe8cc 100%);
    border-left: 4px solid var(--warning-color);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
}

.highlight-box p {
    margin-bottom: 0;
}

.nota {
    font-style: italic;
    color: var(--text-light);
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.agradecimiento {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin-top: 2rem;
}

.agradecimiento p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--success-color);
    font-weight: 600;
}

.destacado {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--success-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   GALERÍA DE IMÁGENES (EVIDENCIAS)
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.gallery-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.placeholder-img {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.caption {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.nota-imagenes {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ============================================
   VIDEOS
   ============================================ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.video-item {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.video-item:hover {
    transform: translateY(-5px);
}

.video-item video {
    width: 100%;
    height: auto;
    display: block;
    background: #000;
}

.video-caption {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
}

.nota-videos {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contacto-info p {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.contacto-info strong {
    color: var(--secondary-color);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    header .subtitle {
        font-size: 1rem;
    }

    .card-header h2 {
        font-size: 1.4rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .gallery-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }

    .destacado {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    header h1 {
        font-size: 1.5rem;
    }

    .card-header {
        padding: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .comunicado p {
        font-size: 1rem;
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

/* ============================================
   UTILIDADES
   ============================================ */
strong {
    color: var(--accent-color);
    font-weight: 700;
}

em {
    color: var(--text-light);
}

/* ============================================
   ICONOS FONT AWESOME
   ============================================ */
.contacto-info i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.contacto-info .fa-facebook {
    color: #1877f2;
}

.contacto-info .fa-envelope {
    color: #ea4335;
}

.contacto-info .fa-map-marker-alt {
    color: #34a853;
}

/* ============================================
   MODAL DE IMÁGENES
   ============================================ */
.gallery-img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-img:hover {
    opacity: 0.8;
    filter: brightness(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1;
    user-select: none;
}

.modal-close:hover,
.modal-close:focus {
    color: #ff4444;
    transform: scale(1.2);
}

#modalCaption {
    text-align: center;
    color: #ffffff;
    padding: 15px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    font-size: 1.1rem;
    max-width: 80%;
}

/* Responsive para el modal */
@media (max-width: 768px) {
    .modal-close {
        font-size: 40px;
        top: 10px;
        right: 20px;
    }
    
    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
    
    #modalCaption {
        font-size: 0.9rem;
        max-width: 90%;
        bottom: 10px;
    }
}
