* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}

:root {
    --primary-color: #0815b7;
    --secondary-color: #00eaff;
    --background-color: #f1faee;
    --text-color: #1d3557;
    --success-color: #2ecc71;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
}


/* Estilos originales */
.logo-img {
    height: 160px; /* Usa height en lugar de max-height */
    width: auto;
    transition: all 0.3s ease-in-out; /* Animación suave */
    margin-top: 80px;
    margin-bottom: 80px;
    margin-right: 50px;
}

/* Estilos cuando se hace scroll */
.logo-img.shrink {
    height: 80px !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
    margin-right: 20px !important;
}








/* Estilos botón Whatsapp */
.whats-float {
    position: fixed;
    transform:translate(108px,0px);
    top:85%;
    right:0;
    width:150px;
    overflow: hidden;
    background-color: #25d366;
    color: #FFF;
    border-radius: 4px 0 0 4px;
    z-index: 10;
    transition: all 0.5s ease-in-out;
    vertical-align: middle
}
.whats-float a span {
    color: white;
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 10px;
    position: absolute;
    line-height: 16px;
    font-weight: bolder;
}

.whats-float i {
    font-size: 30px;
    color: white;
    line-height: 30px;
    padding: 10px;
    transform:rotate(0deg);
    transition: all 0.5s ease-in-out;
    text-align:center;

}

.whats-float:hover {
    color: #FFFFFF;
    transform:translate(0px,0px);
}

.whats-float:hover i  {
    transform:rotate(360deg);
}

.nav-container {
    width: 100%;
    margin: 0;
    padding: 1rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.user-actions, .auth-actions {
    display: flex;
    gap: 20px;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    font-size: 24px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

/* Efecto de subrayado que aparece desde el centro */
nav a:hover {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav a:hover::after {
    width: 100%;
}

.login-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-button, .register-button {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.login-button {
    background-color: var(--primary-color);
    color: white;
}

.login-button:hover {
    background-color: #c1121f;
}

.register-button {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.register-button:hover {
    background-color: var(--primary-color);
    color: white;
}

.hero {
    height: 100vh; /* Altura de la sección */
    position: relative; /* Necesario para posicionar el contenido sobre el video */
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
    justify-content: center; /* Centra horizontalmente el contenido */
    text-align: center;
    color: white;
    margin-top: 150px;
}

.hero-video {
    position: absolute; /* El video se coloca por debajo del contenido */
    top: 0;
    left: 0;
    width: 100%; /* Asegura que el video cubra toda la sección */
    height: 100%;
    object-fit: cover; /* El video cubre toda el área sin distorsionarse */
    z-index: -1; /* El video se pone detrás del contenido */
}

.hero-content {
    z-index: 1; /* El contenido se coloca sobre el video */
    max-width: 800px; /* Limita el ancho para que el texto no sea demasiado largo */
    padding: 20px; /* Espaciado alrededor del contenido */
    background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro semitransparente para mejorar la legibilidad */
    border-radius: 10px; /* Bordes redondeados para un toque visual */
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 600;
}

.cta-button:hover {
    background-color: #c1121f;
    transform: translateY(-2px);
}

.upcoming-events {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.event-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.event-info {
    margin-bottom: 1rem;
    color: #666;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.charitable-badge {
    background-color: var(--success-color);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.register-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.register-button:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
}

/* Ocultar opciones móviles en desktop */
.mobile-only {
    display: none;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.5rem;
    }
    /* Ocultar el menú en desktop y mostrarlo en mobile */
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        width: 100%;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    nav ul.show {
        display: flex;
    }
    nav ul li {
        padding: 1rem;
        border-bottom: 1px solid #ddd;
    }
    .login-buttons {
        display: none;
    }
    /* Botón de menú hamburguesa animado */
    .mobile-menu-button {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 25px;
        cursor: pointer;
    }
    .mobile-menu-button .bar {
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    /* Opciones de login en el menú (solo mobile) */
    .mobile-only {
        display: block;
    }

    .logout-button {
        margin-right: 30px;
    }
}

/* Animación para el botón hamburguesa en estado activo */
.mobile-menu-button.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.mobile-menu-button.active .bar:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem;
    border-radius: 5px;
    background-color: var(--success-color);
    color: white;
    z-index: 1001;
    display: none;
}

/* Login Page Specific Styles */
.login-container {
    max-width: 400px;
    margin: 120px auto 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-container label {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.login-container input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.login-container input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(8, 21, 183, 0.1);
}

.login-container button {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-container button:hover {
    background-color: #060d8a;
    transform: translateY(-2px);
}

.login-container .error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Estilo para el contenedor de opciones de usuario */
.user-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto; /* Para moverlo hacia la derecha */
}

/* Estilo para el saludo */
.user-greeting {
    font-size: 16px;
    color: #333;
}

/* Estilo para el botón "Cerrar Sesión" */
.logout-button {
    display: inline-block;
    background-color: #FF5733;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.logout-button:hover {
    background-color: #c0392b;
}

/* Estilo para el botón "Iniciar Sesión" */
.login-button {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-right: 20px;
}

.login-button:hover {
    background-color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-container {
        margin: 80px 1rem 0;
        padding: 1.5rem;
    }

    .user-actions {
        flex-direction: column;
    }

    .logout-button {
        margin-right: 30px;
    }
}

/* Estilo para mensajes de error */
.error {
    color: red;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid red;
    margin-bottom: 15px;
}

    /* Estilos para el footer */
    footer {
        background-color: #f8f8f8;
        padding: 20px;
        text-align: center;
        margin-top: 40px;
      }
      .footer-container {
        max-width: 1200px;
        margin: 0 auto;
      }
      .social-icons {
        margin-bottom: 10px;
      }
      .social-icons a {
        display: inline-block;
        margin: 0 10px;
        text-decoration: none;
      }
      .social-icons img {
        width: 32px;
        height: 32px;
      }
      @media (max-width: 600px) {
        .social-icons a {
          margin: 0 5px;
        }
      }
/* Estilo para mensajes de éxito */
.success {
    color: green;
    background-color: #d4edda;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid green;
    margin-bottom: 15px;
}

a.forgot-password,
a.return_login {
    font-size: 16px;
    color: #3498db; /* Color azul claro */
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;  /* Asegura que el texto esté centrado */
}

a.register {
    font-size: 24px;
    color: black;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
}
/*
.forgot-password {
    display: flex;
    justify-content: center;  
    align-items: center;     
}
*/
a.forgot-password:hover,
a.return_login:hover {
    color: #2c3e50; /* Color oscuro al pasar el mouse */
}

a.register:hover {
    color: #0038b9; 
}

a.forgot-password::before,
a.return_login::before,
a.register::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #3498db; /* Línea azul */
    transition: width 0.3s ease;
}

a.forgot-password:hover::before,
a.return_login:hover::before,
a.register:hover::before {
    width: 100%;
}

/* Estilos para el contenedor del formulario de registro */
.register-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.register-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Estilos para los campos del formulario */
.register-container label {
    display: block;
    font-weight: 500;
    margin: 10px 0 5px;
    color: var(--text-color);
    text-align: left;
}

.register-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.register-container input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estilos para el botón de registro */
.register-container button {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 15px;
}

.register-container button:hover {
    background-color: #c1121f;
}

/* Estilos para el registro con Google */
.g_id_signin {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}

/* Estilos para el enlace de inicio de sesión */
.register-container p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.register-container a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.register-container a:hover {
    text-decoration: underline;
}

/* Responsivo para dispositivos móviles */
@media (max-width: 480px) {
    .register-container {
        width: 90%;
        padding: 15px;
    }
    
    .register-container h2 {
        font-size: 1.5rem;
    }
}




footer {
    background: linear-gradient(135deg, #4F46E5, #3B82F6);
    padding: 20px 0;
    color: #fff;
    text-align: center;
  }
  .footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  .social-icons {
    margin-bottom: 15px;
  }
  .social-icons a {
    margin: 0 10px;
    display: inline-block;
  }
  .social-icons a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
  }
  .social-icons a:hover img {
    transform: scale(1.1);
  }
  footer p {
    font-size: 14px;
    margin: 0;
  }
  footer p span {
    color: #f87171;
  }



  .custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    animation: fadeIn 0.3s ease-out;
  }
  
  .alert-content {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    animation: slideUp 0.3s ease-out forwards;
  }
  
  .alert-icon {
    margin-bottom: 16px;
  }
  
  .alert-icon svg {
    width: 48px;
    height: 48px;
  }
  
  .success-icon { color: #10b981; }
  .error-icon { color: #ef4444; }
  .info-icon { color: #3b82f6; }
  
  .alert-message {
    margin-bottom: 20px;
    color: #1f2937;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  
  .alert-button {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-weight: 500;
  }
  
  .alert-button:hover {
    background-color: #4338ca;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes slideUp {
    from { 
      opacity: 0;
      transform: translateY(20px);
    }
    to { 
      opacity: 1;
      transform: translateY(0);
    }
  }



  .mission-vision {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    padding: 0 20px;
  }
  
  .mission,
  .vision {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Se pueden quitar márgenes fijos en el layout general */
    margin: 0; 
  }
  
  /* Ajustes para dispositivos con ancho menor a 768px */
  @media (max-width: 768px) {
    .mission-vision {
      flex-direction: column;
      gap: 20px;
      margin-top: 30px;
    }
    
    .mission,
    .vision {
      min-width: 100%;
      margin: 0 auto; /* Centra cada sección */
    }
  }


/* Slider de fotos del evento */
.slider-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
  }
  /* Slider principal */
  .swiper-container.gallery-top {
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
  }
  .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  /* Slider de miniaturas */
  .swiper-container.gallery-thumbs {
    height: 120px;
    box-sizing: border-box;
    padding: 10px 0;
  }
  .swiper-container.gallery-thumbs .swiper-slide {
    width: 25%;
    height: 100%;
    opacity: 0.4;
    cursor: pointer;
  }
  .swiper-container.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
  }
  .swiper-container.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
  }
  /* Navegación del slider */
  .swiper-button-next, .swiper-button-prev {
    color: #fff;
  }