/* Fuentes personalizadas */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Variables CSS para colores */
:root {
    --primary-color: #4a8c2a;
    --secondary-color: #6c757d;
    --success-color: #4a8c2a;
    --warning-color: #8fb14a;
    --danger-color: #7d8c2a;
    --info-color: #6b8c2a;
    --purple-color: #5a8c2a;
    --gradient-primary: linear-gradient(135deg, #4a8c2a 0%, #6b9936 100%);
    --gradient-secondary: linear-gradient(135deg, #6b9936 0%, #8fb14a 100%);
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navbar personalizada */
.navbar {
    padding: 1rem 0;
    box-shadow: var(--shadow-light);
    background: var(--gradient-primary) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Estilos para el logo */
.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.1);
}

/* Logo del hero con animación */
.hero-section img {
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(rgba(75, 140, 42, 0.7), rgba(107, 153, 54, 0.6)), 
                url('../images/pozo.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.hero-overlay {
    position: relative;
    z-index: 2;
}

/* Animaciones para el hero */
.animate-fade-in {
    animation: fadeInUp 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.animate-fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botones personalizados */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-warning {
    background: linear-gradient(45deg, #8fb14a, #a6c653);
    color: #fff;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
}

/* Títulos y secciones */
.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1rem;
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Cards de actividades */
.event-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.card-img-container {
    position: relative;
    overflow: hidden;
}

.event-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: all 0.3s ease;
}

.event-card:hover .event-placeholder {
    transform: scale(1.1);
}

.event-date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-light);
    min-width: 60px;
}

.event-date-badge .day {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.event-date-badge .month {
    display: block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

.card-title {
    color: #333;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.event-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.event-info i {
    width: 20px;
}

.btn-more-info {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more-info:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Colores para diferentes tipos de actividades */
.event-card:nth-child(1) .event-placeholder { background: linear-gradient(135deg, #4a8c2a 0%, #6b9936 100%); }
.event-card:nth-child(2) .event-placeholder { background: linear-gradient(135deg, #5a8c2a 0%, #7ba936 100%); }
.event-card:nth-child(3) .event-placeholder { background: linear-gradient(135deg, #6a8c2a 0%, #8bb936 100%); }
.event-card:nth-child(4) .event-placeholder { background: linear-gradient(135deg, #7a8c2a 0%, #9bc936 100%); }
.event-card:nth-child(5) .event-placeholder { background: linear-gradient(135deg, #8a8c2a 0%, #abc936 100%); }
.event-card:nth-child(6) .event-placeholder { background: linear-gradient(135deg, #4a9c2a 0%, #6bd936 100%); }

/* Iconos en placeholders */
.event-placeholder i {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Sección estadísticas */
.stats-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-light);
}

.stat-item {
    padding: 1rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: #f8f9fa;
    transform: translateY(-5px);
}

/* Modales */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-header {
    padding: 2rem;
    border: none;
}

.modal-body {
    padding: 2rem;
}

.event-details-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.event-details-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #3a6c2a 0%, #4a8c2a 100%) !important;
}

.social-links a {
    display: inline-block;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.8rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.3rem !important;
    }
    
    .hero-section img {
        height: 160px !important;
    }
    
    .hero-section .btn {
        font-size: 1.2rem !important;
        padding: 1rem 2.5rem !important;
    }
    
    .navbar-brand {
        font-size: 1.4rem !important;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
    
    .navbar-nav .nav-link {
        font-size: 1.1rem !important;
        padding: 0.7rem 1rem !important;
    }
    
    .event-card {
        margin-bottom: 2rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .stats-container {
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
    }
    
    .hero-section .btn {
        font-size: 1rem !important;
        padding: 0.9rem 2rem !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .event-details-card {
        margin-top: 1rem;
    }
}

/* Animaciones adicionales */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.btn-more-info:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Mejoras de accesibilidad */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Efectos de carga */
.event-card {
    animation: slideInUp 0.6s ease-out forwards;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Color personalizado para el evento de voleibol */
.text-purple {
    color: var(--purple-color) !important;
}

/* Estilos para carteles de actividades */
.event-poster {
    transition: all 0.3s ease;
    border-radius: 0;
}

.event-card:hover .event-poster {
    transform: scale(1.05);
}

/* Estilos para la actividad principal */
.event-detail-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-detail-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.event-detail-item i {
    transition: all 0.3s ease;
}

.event-detail-item:hover i {
    transform: scale(1.2);
}

/* Estilo para el scrolling suave en el navbar */
.navbar-nav .nav-link[href^="#"] {
    cursor: pointer;
}

/* Efectos hover adicionales */
.card-title:hover {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Gradientes para botones de modal */
.btn-success {
    background: linear-gradient(45deg, #4a8c2a, #6b9936);
}

.btn-warning {
    background: linear-gradient(45deg, #8fb14a, #a6c653);
    color: #fff;
}

.btn-info {
    background: linear-gradient(45deg, #6b8c2a, #8bb936);
}

.btn-danger {
    background: linear-gradient(45deg, #7d8c2a, #9bb936);
}

/* Estilos para botones de WhatsApp */
.btn-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(45deg, #128C7E, #25D366) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white !important;
    text-decoration: none;
}

/* Responsive para botones de WhatsApp en el modal */
@media (max-width: 576px) {
    .modal-footer .d-flex {
        flex-direction: column !important;
        width: 100%;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .modal-footer .btn:last-child {
        margin-bottom: 0;
    }
}

/* Línea Temporal de Actividades */
.timeline-section {
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: slideInTimeline 0.8s ease-out forwards;
}

.timeline-item.left {
    left: 0;
    padding-right: 2rem;
    animation-delay: 0.2s;
}

.timeline-item.right {
    left: 50%;
    padding-left: 2rem;
    animation-delay: 0.5s;
}

.timeline-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: var(--primary-color);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    transform: translateY(-50%);
}

.timeline-item.left .timeline-content::before {
    right: -20px;
    border-left-color: white;
}

.timeline-item.right .timeline-content::before {
    left: -20px;
    border-right-color: white;
}

.timeline-image {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-image img {
    transform: scale(1.1);
}

.timeline-date {
    text-align: center;
    margin-bottom: 1rem;
}

.timeline-date .date-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
}

.timeline-date .date-month {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 600;
}

.timeline-info {
    text-align: center;
}

.timeline-info h5 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.timeline-info p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Punto central en la línea */
.timeline-item::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 2;
    box-shadow: var(--shadow-light);
}

.timeline-item.left::after {
    right: -10px;
}

.timeline-item.right::after {
    left: -10px;
}

/* Animaciones para la línea temporal */
@keyframes slideInTimeline {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para línea temporal */
@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }
    
    .timeline-item {
        width: 100% !important;
        left: 0 !important;
        padding-left: 4rem !important;
        padding-right: 1rem !important;
    }
    
    .timeline-content::before {
        display: none;
    }
    
    .timeline-item::after {
        left: 20px !important;
        right: auto !important;
    }
    
    .timeline-image {
        width: 60px;
        height: 60px;
    }
    
    .timeline-info h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .timeline-container {
        padding: 1rem 0;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
        padding-left: 3rem !important;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item::after {
        left: 10px !important;
        width: 16px;
        height: 16px;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .timeline-image {
        width: 50px;
        height: 50px;
    }
}

/* Timeline Progress */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
    transition: width 1s ease-in-out;
    box-shadow: 0 0 10px rgba(74, 140, 42, 0.5);
}

/* Event Countdown */
.event-countdown {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent-color);
    text-align: center;
}

.countdown-label {
    font-size: 0.9em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-time {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.timeline-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(74, 140, 42, 0.3);
}

.timeline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 140, 42, 0.5);
    color: white;
    text-decoration: none;
}

.timeline-btn i {
    font-size: 0.8em;
}

/* Responsive countdown */
@media (max-width: 768px) {
    .event-countdown {
        padding: 12px 15px;
        margin: 10px 0;
    }
    
    .countdown-time {
        font-size: 1.2em;
    }
    
    .timeline-btn {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* ===== MEJORAS DE RESPONSIVIDAD MÓVIL ===== */

/* Mejoras para desktop - asegurar layout correcto */
@media (min-width: 992px) {
    .event-card {
        min-height: 650px;
    }
    
    .event-card .card-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .event-info {
        margin-top: auto;
    }
    
    .row.justify-content-center {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
    }
    
    .col-lg-6 {
        display: flex;
        margin-bottom: 2rem;
    }
}

/* Navegación móvil */
@media (max-width: 991px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        margin: 0.25rem 0;
        transition: all 0.3s ease;
        font-size: 1.05rem !important;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Hero Section móvil */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
        background-attachment: scroll; /* Mejor rendimiento en móviles */
        background-position: center center;
        background-size: cover;
    }
    
    .hero-section h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2rem !important;
        line-height: 1.4;
    }
    
    .hero-section img {
        height: 90px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section .btn {
        font-size: 1rem;
        padding: 0.8rem 1.8rem !important;
        margin-top: 1rem;
        display: block;
        text-align: center;
    }
    
    .hero-section .container {
        padding: 0 1.5rem;
    }
}

/* Timeline móvil */
@media (max-width: 768px) {
    .timeline-container {
        padding: 0 1rem;
    }
    
    .timeline-item {
        margin-bottom: 2rem;
        padding: 0;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-content {
        margin: 0 !important;
        padding: 1.2rem;
        max-width: 100%;
        transform: none !important;
    }
    
    .timeline-image img {
        width: 70px;
        height: 70px;
    }
    
    .timeline-date {
        position: relative;
        margin-bottom: 1rem;
    }
    
    .timeline-date .date-number {
        font-size: 1.2rem !important;
    }
    
    .timeline-date .date-month {
        font-size: 0.9rem !important;
    }
    
    .timeline-info h5 {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .timeline-info p {
        font-size: 0.95rem !important;
    }
    
    .event-countdown {
        padding: 12px 15px;
        margin: 12px 0;
    }
    
    .countdown-label {
        font-size: 0.85rem;
    }
    
    .countdown-time {
        font-size: 1.1rem;
    }
    
    .timeline-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Cards de actividades móvil */
@media (max-width: 768px) {
    .event-card {
        margin-bottom: 2rem !important;
    }
    
    .event-card .card-img-top {
        height: 280px !important;
    }
    
    .event-card .card-title {
        font-size: 1.4rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.3;
    }
    
    .event-card .card-text {
        font-size: 1rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem !important;
    }
    
    .event-detail-item {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .event-detail-item i {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .event-detail-item strong {
        font-size: 0.95rem !important;
        display: block;
        margin-bottom: 0.3rem;
    }
    
    .event-detail-item span {
        font-size: 0.9rem !important;
    }
    
    .btn-more-info {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
        margin-top: 1rem !important;
    }
    
    .event-date-badge {
        font-size: 0.9rem !important;
    }
    
    .event-date-badge .day {
        font-size: 1.1rem !important;
    }
    
    .event-date-badge .month {
        font-size: 0.8rem !important;
    }
}

/* Modales móvil */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 15px !important;
    }
    
    .modal-body {
        padding: 1rem !important;
    }
    
    .modal-body .row .col-md-8,
    .modal-body .row .col-md-4 {
        padding: 0.5rem;
    }
    
    .modal-body img {
        max-height: 200px;
        object-fit: cover;
        width: 100%;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
    
    .modal-footer .d-flex {
        flex-direction: column !important;
        width: 100%;
    }
}

/* Contacto modal móvil */
@media (max-width: 768px) {
    .contact-card {
        margin-bottom: 1rem;
    }
    
    .contact-card .btn {
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

/* Estadísticas móvil */
@media (max-width: 768px) {
    .stats-container .row .col-6 {
        margin-bottom: 1.5rem !important;
    }
    
    .stat-item h4 {
        font-size: 2rem !important;
    }
    
    .stat-item p {
        font-size: 0.85rem;
    }
}

/* Footer móvil */
@media (max-width: 768px) {
    footer {
        padding: 3rem 0 !important;
    }
    
    footer img {
        height: 55px !important;
        margin-bottom: 1rem !important;
    }
    
    footer h5 {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    footer p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    footer .btn {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
    }
}

/* Textos generales móvil */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.2rem !important;
    }
    
    .display-5 {
        font-size: 2rem !important;
    }
    
    .lead {
        font-size: 1.1rem !important;
    }
    
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    h3 {
        font-size: 1.4rem !important;
    }
    
    h4 {
        font-size: 1.2rem !important;
    }
    
    h5 {
        font-size: 1.1rem !important;
    }
    
    p {
        font-size: 1rem !important;
    }
}

/* Padding y márgenes móvil */
@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Botones móvil */
@media (max-width: 768px) {
    .btn-lg {
        font-size: 1rem !important;
        padding: 0.8rem 2rem !important;
    }
    
    .btn {
        border-radius: 25px !important;
        font-size: 0.95rem !important;
        padding: 0.7rem 1.5rem !important;
    }
    
    .btn-more-info {
        margin-top: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Mejoras adicionales para muy pequeñas pantallas */
@media (max-width: 480px) {
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        height: 38px !important;
    }
    
    /* Mantener el texto del navbar visible pero más pequeño */
    .navbar-brand span {
        font-size: 0.95rem !important;
    }
    
    .hero-section {
        min-height: 70vh;
        padding: 1.5rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-section img {
        height: 100px !important;
    }
    
    .hero-section .btn {
        font-size: 0.9rem !important;
        padding: 0.8rem 1.5rem !important;
    }
    
    .timeline-content {
        padding: 0.75rem !important;
    }
    
    .event-card .card-img-top {
        height: 200px !important;
    }
    
    .event-card .card-body {
        padding: 1rem !important;
    }
    
    .event-card .card-title {
        font-size: 1.1rem !important;
    }
    
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .display-5 {
        font-size: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Estilos para el buscador de eventos */
.search-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
}

.search-input-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 140, 42, 0.25);
    outline: none;
}

.quick-filter {
    transition: all 0.3s ease;
}

.quick-filter:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.quick-filter.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.event-card.hidden {
    display: none;
}

.event-card.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Responsive para el buscador */
@media (max-width: 768px) {
    .search-container {
        padding: 1.5rem !important;
    }
    
    .quick-filter {
        font-size: 0.8rem;
        padding: 0.25rem 0.75rem;
    }
}

/* Estilos para el mapa de eventos */
.map-section {
    position: relative;
}

.map-container {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

#eventsMap {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 450px;
}

/* Asegurar que Leaflet se renderice correctamente */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
    border-radius: 15px;
}

.map-legend .legend-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.map-legend .legend-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color) !important;
}

.map-controls .btn {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.map-controls .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Popups de Leaflet */
.leaflet-popup-content-wrapper {
    border-radius: 15px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.leaflet-popup-content {
    margin: 10px !important;
    line-height: 1.5 !important;
}

/* Responsive para el mapa */
@media (max-width: 768px) {
    #eventsMap {
        height: 350px !important;
    }
    
    .map-legend .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .map-controls .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .locations-legend .legend-item {
        padding: 1.5rem !important;
        margin-bottom: 1rem;
    }
    
    .locations-legend .icon-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .image-container {
        min-height: 250px !important;
        padding: 1rem !important;
    }
    
    .map-image {
        height: 250px !important;
        object-fit: contain !important;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
    }
}

@media (max-width: 768px) {
    .map-image {
        height: 300px !important;
    }
    
    .image-container {
        margin: 0 0.5rem;
    }
}

/* Sección de ubicaciones */
.locations-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.map-image {
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.image-container {
    transition: all 0.3s ease;
}

.image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.image-container:hover .map-image {
    border-color: var(--primary-color);
}

.locations-legend .legend-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.locations-legend .icon-circle {
    transition: all 0.3s ease;
}

.locations-legend .legend-item:hover .icon-circle {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.badge {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Efectos para las tarjetas de contacto */
.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--primary-color) !important;
}

.contact-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}
