:root {
  --primary-color: #4a90e2; /* Azul celeste del manto de María */
  --secondary-color: #f4d03f; /* Dorado de la estrella */
  --accent-color: #8b4513; /* Marrón tierra de José */
  --dark-blue: #1b365d; /* Azul marino del fondo nocturno */
  --light-blue: #87ceeb; /* Azul claro complementario */
  --text_dark: #2c3e50; /* Azul grisáceo oscuro */
  --text-light: #5d6d7e; /* Gris azulado */
  --bg-light: #f8fbff; /* Azul muy claro para fondos */
  --gold-accent: #ffd700; /* Dorado brillante */
  --warm-brown: #a0522d; /* Marrón cálido */
}

.navbar {
  backdrop-filter: blur(10px);
}

.navbar-toggler {
  border-color: transparent !important;
  &:focus {
    box-shadow: unset;
  }
}

.popupmodal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;

  .popup-container {
    width: 35vw;
  }

  .close-button {
    position: absolute;
    right: 25px;
    top: 25px;
    width: 25px;
    height: 25px;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
  }

  .join-button {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    background-color: rgba(45, 175, 33, 1);
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
  }
}

.home-page .navbar {
  transition: all 0.5s ease-in-out;
  background-color: rgba(0, 0, 0, 0.4) !important;

  .navbar-brand span {
    transition: all 0.5s ease-in-out;
    color: #fff !important;
  }

  .navbar-logo {
    transition: all 0.5s ease-in-out;
    height: 80px;
  }
}

.home-page.scrolled .navbar {
  background-color: rgba(255, 255, 255, 1) !important;

  .navbar-brand span {
    color: var(--dark-blue) !important;
  }

  .navbar-logo {
    height: 40px;
  }
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-loader {
  width: 120px;
  height: 120px;
  position: relative;
  animation: pulse 1.5s ease-in-out infinite;
}

.logo-loader img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.loading-text {
  color: var(--primary-color);
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

.navbar-expand-lg .navbar-nav {
  align-items: center;
}

.hero-overlay {
  background-image: url("../images/iglesia2.webp");
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-bg-gradient {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-blue) 100%
  );
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  opacity: 0.7;
  z-index: 1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 0 rgba(74, 144, 226, 0.6));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.6));
  }
  100% {
    transform: scale(0.95);
    filter: drop-shadow(0 0 0 rgba(74, 144, 226, 0.6));
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Logo styles */
.navbar-logo {
  height: 40px;
  width: auto;
}

.footer-logo {
  height: 30px;
  width: auto;
}

/* Hero Section - usando los colores del logo */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-blue) 100%
  );
  position: relative;
  overflow: hidden;
}

/* Stats Section - azul marino del logo */
.stats-section {
  background: linear-gradient(45deg, var(--dark-blue), var(--primary-color));
}

/* Buttons - usando el dorado como acento */
.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--light-blue));
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--dark-blue), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* Donation section - usando el marrón tierra */
.flyer-bg {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--warm-brown) 100%
  );
}

/* Section titles - usando el dorado */
.section-title::after {
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--gold-accent)
  );
}

/* Navigation hover effects */
.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Icons and accents */
.text-primary {
  color: var(--primary-color) !important;
}

/* Cards hover effects */
.program-card:hover,
.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--dark-blue) 0%, #0f1419 100%);
}

/* Social links hover */
.social-links a:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

/* Donation amounts */
.donation-amount:hover,
.donation-amount.active {
  background-color: var(--secondary-color);
  color: var(--dark-blue);
  border-color: var(--secondary-color);
  font-weight: bold;
}

/* Contact info hover */
.contact-info:hover {
  transform: translateY(-5px);
  background-color: var(--bg-light);
}

/* Mission points hover */
.mission-point:hover {
  background-color: var(--bg-light);
}

/* Event date styling */
.date-day {
  background-color: var(--primary-color) !important;
}

.date-month {
  background-color: var(--bg-light) !important;
  color: var(--primary-color) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue);
}

/* Additional accent colors */
.bg-primary {
  background-color: var(--primary-color) !important;
}

.text-success {
  color: var(--secondary-color) !important;
}

/* Impact items in donation section */
.impact-item i {
  background-color: var(--secondary-color) !important;
  color: var(--dark-blue) !important;
}

/* Navbar brand text */
.navbar-brand .text-primary {
  color: var(--dark-blue) !important;
}

/* Stats section icons and text */
.stats-section .stat-item i {
  color: var(--secondary-color);
}

/* Program icons */
.program-icon i {
  color: var(--primary-color) !important;
}

/* Contact icons */
.contact-icon i {
  color: var(--primary-color) !important;
}

/* Mission point icons */
.mission-point i {
  color: var(--primary-color) !important;
}

.donaciones {
  h3,
  p {
    color: #44542f !important;
  }
}

/* Section Titles - Mismos estilos que index */
.section-title {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text_dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--secondary-color),
    var(--gold-accent)
  );
  border-radius: 2px;
}

/* Cards - Mismos estilos que index */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

/* Buttons - Mismos estilos que index */
.btn {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.btn-primary {
  background: linear-gradient(45deg, var(--primary-color), var(--light-blue));
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(45deg, var(--dark-blue), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Forms - Mismos estilos que index */
.form-control,
.form-select {
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  padding: 0.75rem 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Nosotros Page */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mission-card,
.vision-card,
.value-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.mission-card:hover,
.vision-card:hover,
.value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

.value-icon i {
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.value-card:hover .value-icon i {
  transform: scale(1.1);
}

.team-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

.team-card img {
  transition: transform 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.testimonial-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.1);
}

.testimonial-avatar img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--warm-brown) 100%
  );
  padding: 3rem 0;
}

/* Eventos Page */
.events-filter {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.event-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

.event-date .date-day {
  background-color: var(--primary-color) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.event-date .date-month {
  background-color: var(--bg-light) !important;
  color: var(--primary-color) !important;
  font-family: "Poppins", sans-serif;
}

.event-tags .badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
  font-family: "Poppins", sans-serif;
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

.badge.bg-secondary {
  background-color: var(--secondary-color) !important;
  color: var(--dark-blue) !important;
}

.badge.bg-info {
  background-color: var(--light-blue) !important;
  color: var(--dark-blue) !important;
}

.calendar-container {
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.1);
}

.calendar-table {
  table-layout: fixed;
  font-family: "Poppins", sans-serif;
}

.calendar-table th,
.calendar-table td {
  text-align: center;
  vertical-align: middle;
  height: 50px;
}

.calendar-table td {
  cursor: pointer;
  transition: all 0.2s ease;
}

.calendar-table td:hover {
  background-color: var(--bg-light);
}

.has-event {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  font-weight: bold;
  position: relative;
}

.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-color);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-right: 20px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
  display: inline-block;
}

.has-event-dot {
  background-color: var(--primary-color);
}

.past-event-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.past-event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

.past-event-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

/* Contacto Page */
.contact-info-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(74, 144, 226, 0.15);
}

.contact-icon i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.contact-info-card:hover .contact-icon i {
  transform: scale(1.1);
}

.map-container {
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.1);
}

.contact-form-container {
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.1);
}

.volunteer-cta {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--dark-blue) 100%
  );
}

/* Accordion Styling */
.accordion-item {
  border: none;
  border-radius: 15px !important;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.accordion-button {
  border-radius: 15px !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(74, 144, 226, 0.1);
  color: var(--primary-color);
  border-radius: 15px 15px 0 0 !important;
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(74, 144, 226, 0.25);
}

.accordion-body {
  font-family: "Poppins", sans-serif;
  color: var(--text-light);
}

/* Pagination */
.pagination .page-link {
  color: var(--primary-color);
  border-color: var(--primary-color);
  font-family: "Poppins", sans-serif;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-link:hover {
  background-color: var(--bg-light);
  border-color: var(--primary-color);
}

/* Tables */
.table {
  font-family: "Poppins", sans-serif;
}

.table thead th {
  background-color: var(--primary-color) !important;
  color: white !important;
  border: none;
  font-weight: 600;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
  background-color: var(--bg-light);
}

/* Modal */
.modal-content {
  border-radius: 15px;
  border: none;
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.2);
}

.modal-header {
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.modal-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--text_dark);
}

.modal-body {
  font-family: "Poppins", sans-serif;
}

.modal-footer {
  border-top: 1px solid rgba(74, 144, 226, 0.1);
}

/* Text Colors */
.text-muted {
  color: var(--text-light) !important;
}

.text-primary {
  color: var(--primary-color) !important;
}

/* Background Colors */
.bg-light {
  background-color: var(--bg-light) !important;
}

/* Social Links */
.social-links a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-2px);
}

/* Animations - Mismas que en index */
.fade-in {
  animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
  animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
  animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonios Carousel */
.testimonial-carousel-card {
  /* max-width: 800px; */
  border-radius: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-carousel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(74, 144, 226, 0.15);
}

.testimonial-avatar img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  transition: transform 0.3s ease;
}

.testimonial-carousel-card:hover .testimonial-avatar img {
  transform: scale(1.05);
}

.rating i {
  font-size: 0.9rem;
  margin-right: 2px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, var(--primary-color), var(--light-blue));
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.carousel-control-prev {
  left: -80px;
}

.carousel-control-next {
  right: -80px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
}

.carousel-control-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

/* Carousel Indicators */
.carousel-indicators {
  bottom: -50px;
  margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(74, 144, 226, 0.3);
  border: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

.carousel-indicators [data-bs-target]:hover {
  background-color: var(--primary-color);
  opacity: 0.8;
}

/* Carousel Animation */
.carousel-item {
  transition: transform 0.6s ease-in-out;
}

.carousel-item-next,
.carousel-item-prev,
.carousel-item.active {
  display: flex;
  width: 100%;
}

.carousel-item-next:not(.carousel-item-start),
.active.carousel-item-end {
  transform: translateX(100%);
}

.carousel-item-prev:not(.carousel-item-end),
.active.carousel-item-start {
  transform: translateX(-100%);
}

.testimonios-wrapper {
  display: flex;
  justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
  .popupmodal-wrapper {
    .popup-container {
      width: 50%;
    }
  }
}

@media (max-width: 991px) {
  .google-map iframe {
    height: 400px;
  }
}

@media (max-width: 767px) {
  .page-header {
    padding: 100px 0 30px;
  }

  .page-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .map-container {
    height: 300px;
  }

  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }

  .btn:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .navbar-brand {
    font-size: 0.75rem;
  }
}

@media (max-width: 575px) {
  .popupmodal-wrapper {
    .popup-container {
      width: 90%;
    }
    .join-button {
      bottom: -50px;
    }
  }
}

/* Custom Scrollbar - Mismo que index */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--dark-blue);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  opacity: 0;
  animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.volunteer-cta-2 {
  background: linear-gradient(
    135deg,
    var(--accent-color) 0%,
    var(--warm-brown) 100%
  );
}

/* Responsive adjustments for carousel */
@media (max-width: 992px) {
  .carousel-control-prev {
    left: -40px;
  }

  .carousel-control-next {
    right: -40px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    width: 50px;
    height: 50px;
  }

  .carousel-control-icon {
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .testimonial-carousel-card {
    margin: 0 15px;
  }

  .testimonial-carousel-card .card-body {
    padding: 2rem !important;
  }

  .testimonial-avatar img {
    width: 60px;
    height: 60px;
  }
}
