body {
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.6;
}

/* Banner de portada */
.hero-banner {
  position: relative;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(34, 139, 34, 0.8) 0%, rgba(0, 100, 0, 0.7) 100%);
  display: flex;
  align-items: center;
}

.contact-info {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  backdrop-filter: blur(5px);
}

.contact-info p {
  font-size: 0.9rem;
  margin: 0;
}

/* Estilos para redes sociales en el banner */
.social-banner {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-link-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.social-link-banner:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.3);
}

.social-link-banner svg {
  width: 16px;
  height: 16px;
  fill: white;
}

/* Sección de redes sociales */
.social-section {
  background: #f8f9fa !important;
}

/* Footer con redes sociales */
footer.social-section {
  background: #f8f9fa !important;
  border-top: 1px solid #e9ecef !important;
  border-bottom: none !important;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-size: 1.2rem;
}

.social-links a svg {
  width: 20px;
  height: 20px;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Efectos hover específicos para cada red social */
.social-facebook:hover {
  background: rgba(24, 119, 242, 0.1) !important;
}

.social-instagram:hover {
  background: rgba(228, 64, 95, 0.1) !important;
}

.social-twitter:hover {
  background: rgba(29, 161, 242, 0.1) !important;
}

.social-whatsapp:hover {
  background: rgba(37, 211, 102, 0.1) !important;
}

.social-email:hover {
  background: rgba(108, 117, 125, 0.1) !important;
}

.social-gofundme:hover {
  background: rgba(0, 166, 81, 0.1) !important;
}

/* Estilo base para todos los enlaces sociales */
.social-link {
  background: white !important; /* Fondo blanco para que resalten los colores */
  border: 2px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-facebook svg {
  fill: #1877f2;
}

.social-instagram svg {
  fill: #e4405f; /* Color principal de Instagram */
}

.social-twitter svg {
  fill: #1da1f2;
}

.social-whatsapp svg {
  fill: #25d366;
}

.social-email svg {
  fill: #6c757d;
}

.social-gofundme svg {
  fill: #00a651;
}

/* Estilos para cards responsivos */
.card {
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  margin-bottom: 1.5rem;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c) border-box;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.15);
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #764ba2, #667eea, #f5576c, #f093fb) border-box;
}

/* Estilos para detalles de eventos */
.event-details {
  text-align: left;
  background: rgba(248, 249, 250, 0.8);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #e9ecef;
}

.event-details p {
  margin-bottom: 0.5rem !important;
  font-size: 0.9rem;
  position: relative;
}

.event-details strong {
  color: #495057;
  font-weight: 600;
}

.event-details .text-muted {
  color: #6c757d !important;
}

/* Estilo para el badge de estado en la misma línea que la fecha */
.event-details .float-end {
  float: right !important;
  margin-left: 10px;
}

/* Estilos especiales para eventos pinneados */
.card.pinned {
  border: 3px solid transparent !important;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #ff6b6b, #ffd93d, #6bcf7f, #4d9de0) border-box !important;
  position: relative;
}

.card.pinned::before {
  content: "📌";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  z-index: 10;
}

.card.pinned:hover {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(45deg, #4d9de0, #6bcf7f, #ffd93d, #ff6b6b) border-box !important;
}



.card-img-top {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  width: 100%;
  object-fit: contain;
}

#eventosActivos .card {
  min-height: 400px;
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #667eea, #764ba2) border-box;
}

#eventosActivos .card:hover {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #764ba2, #667eea) border-box;
}

#eventosPasados .card {
  background-color: #f8f9fa;
  opacity: 0.9;
  min-height: 280px;
  border: 2px solid transparent;
  background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
              linear-gradient(135deg, #a8a8a8, #c0c0c0) border-box;
}

#eventosPasados .card:hover {
  background: linear-gradient(#f8f9fa, #f8f9fa) padding-box,
              linear-gradient(135deg, #c0c0c0, #a8a8a8) border-box;
}

#eventosActivos .card-img-top {
  height: 200px;
}

#eventosPasados .card-img-top {
  filter: grayscale(20%);
  height: 150px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
}

/* Estilos para títulos de sección */
.section-title {
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 2rem;
}

/* Modal responsivo */
.modal-dialog {
  margin: 1rem;
}

.modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  border-radius: 1rem 1rem 0 0;
  padding: 1.5rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 1rem 1rem;
  padding: 1.5rem;
}

/* Responsivo para tablets */
@media (max-width: 991px) {
  .hero-banner {
    min-height: 50vh;
  }
  
  .hero-banner h1 {
    font-size: 2.5rem !important;
  }
  
  .hero-banner h2 {
    font-size: 2rem !important;
  }
  
  .contact-info {
    text-align: center !important;
    margin-top: 1rem;
  }
  
  #eventosActivos .card,
  #eventosPasados .card {
    margin-bottom: 2rem;
  }
}

/* Responsivo para móviles */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .hero-banner {
    min-height: 55vh; /* Aumenté la altura para dar más espacio */
    text-align: center;
  }
  
  .hero-banner .container {
    padding: 1.5rem 1rem;
    height: 100%;
    display: flex;
    align-items: center;
  }
  
  .hero-banner .row {
    width: 100%;
  }
  
  .hero-banner h1 {
    font-size: 2rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .hero-banner h2 {
    font-size: 1.5rem !important;
    margin-bottom: 0.8rem !important;
  }
  
  .hero-banner p {
    font-size: 0.95rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.4;
  }
  
  .contact-info {
    margin-top: 1rem; /* Reducí el margen */
    text-align: center !important;
    padding: 0.6rem 0.8rem; /* Padding más compacto */
    display: inline-block; /* Para que no tome todo el ancho */
    max-width: 100%;
  }
  
  .contact-info p {
    font-size: 0.8rem;
    margin: 0.2rem 0 !important; /* Menos espaciado entre líneas */
    white-space: nowrap; /* Evita que se rompa en múltiples líneas */
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .hero-banner .col-lg-4 {
    text-align: center !important;
    margin-top: 0;
  }
  
  .hero-banner .col-lg-8 {
    margin-bottom: 0.5rem;
  }
  
  /* Redes sociales en móvil */
  .social-section {
    padding: 1.5rem 0 !important;
  }
  
  .social-section .container {
    text-align: center;
  }
  
  .social-section .col-md-6 {
    margin-bottom: 1rem;
  }
  
  .social-links {
    justify-content: center !important;
    gap: 0.8rem;
  }
  
  .social-links a {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .social-links a svg {
    width: 16px;
    height: 16px;
  }
  
  /* Cards en móvil */
  #eventosActivos .card {
    min-height: 380px;
  }
  
  #eventosPasados .card {
    min-height: 280px;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .card-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  /* Detalles de eventos en móvil */
  .event-details {
    padding: 0.5rem;
    margin-bottom: 0.75rem !important;
  }
  
  .event-details p {
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }
  
  .event-details strong {
    font-size: 0.8rem;
  }
  
  .btn-primary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Títulos de sección en móvil */
  .section-title {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem;
  }
  
  /* Espaciado del contenedor principal */
  .container.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  /* Modal en móvil */
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1rem;
  }
  
  /* Formulario del modal */
  .form-control {
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  .modal-title {
    font-size: 1.2rem;
  }
}

/* Responsivo para móviles pequeños */
@media (max-width: 480px) {
  .hero-banner {
    min-height: 50vh; /* Aumenté un poco más la altura */
  }
  
  .hero-banner .container {
    padding: 1rem 0.75rem;
  }
  
  .hero-banner h1 {
    font-size: 1.6rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  .hero-banner h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.6rem !important;
  }
  
  .hero-banner p {
    font-size: 0.85rem !important;
    margin-bottom: 0.8rem !important;
    line-height: 1.3;
  }
  
  .contact-info {
    padding: 0.4rem 0.6rem;
    margin-top: 0.8rem;
    border-radius: 0.3rem;
  }
  
  .contact-info p {
    font-size: 0.7rem !important;
    margin: 0.1rem 0 !important;
  }
  
  #eventosActivos .card,
  #eventosPasados .card {
    min-height: auto;
  }
  
  .card-img-top {
    height: 180px !important;
  }
  
  #eventosPasados .card-img-top {
    height: 120px !important;
  }
}

/* Estilos para la sección de GoFundMe */
.gofundme-section {
  border-bottom: 3px solid #e9ecef;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.btn-gofundme,
.btn-gofundme-en {
  min-width: 200px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gofundme {
  background: linear-gradient(135deg, #00a651 0%, #00d369 100%);
  color: white;
}

.btn-gofundme:hover {
  background: linear-gradient(135deg, #008a44 0%, #00b85a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 166, 81, 0.3);
  color: white;
}

.btn-gofundme-en {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: white;
}

.btn-gofundme-en:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
  color: white;
}

.gofundme-buttons {
  gap: 1rem;
}

/* Responsivo para botones GoFundMe */
@media (max-width: 768px) {
  .gofundme-section {
    padding: 2rem 0 !important;
  }
  
  .btn-gofundme,
  .btn-gofundme-en {
    min-width: 180px;
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .gofundme-buttons {
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .btn-gofundme,
  .btn-gofundme-en {
    min-width: 160px;
    padding: 8px 16px;
    font-size: 0.95rem;
  }
  
  .gofundme-buttons {
    gap: 0.5rem;
  }
}