/*-------------------------------------------------------------------
    # Estilos para secciones principales - Diseño mejorado
-------------------------------------------------------------------*/

/* Estilos generales para secciones */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(229, 43, 30, 0.1), rgba(229, 43, 30, 0.2));
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.section-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(229, 43, 30, 0.1), rgba(229, 43, 30, 0.2));
  border-radius: 50px;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border-radius: 3px;
}

.section-header p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--gray-600);
  font-size: 1.125rem;
}

/*-------------------------------------------------------------------
    # Sección de Impacto - "Haciendo la diferencia en Córdoba"
-------------------------------------------------------------------*/
.impact-section {
  padding: 6rem 0;
  background-color: var(--light);
  position: relative;
  overflow: hidden;
}

.impact-section::before {
  content: "";
  position: absolute;
  top: -150px;
  right: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 43, 30, 0.1) 0%, rgba(229, 43, 30, 0) 70%);
  z-index: 0;
}

.impact-section::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 43, 30, 0.1) 0%, rgba(229, 43, 30, 0) 70%);
  z-index: 0;
}

.counter-row {
  position: relative;
  z-index: 1;
}

.counter-box {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(229, 43, 30, 0.05);
  margin-bottom: 2rem;
}

.counter-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(229, 43, 30, 0.1);
  border-color: rgba(229, 43, 30, 0.2);
}

.counter-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.counter-box:hover::before {
  transform: scaleX(1);
}

.counter-icon {
  width: 80px;
  height: 80px;
  background: rgba(229, 43, 30, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2.5rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.counter-box:hover .counter-icon {
  background: var(--primary);
  color: var(--light);
  transform: rotateY(180deg);
}

.counter-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.counter-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.counter-progress {
  height: 4px;
  background-color: rgba(229, 43, 30, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.counter-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  transition: width 2s ease;
}

.impact-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.impact-image-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.impact-image-item:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.impact-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.impact-image-item:hover img {
  transform: scale(1.1);
}

.impact-image-item.large {
  grid-column: span 2;
  height: 300px;
}

.impact-image-item.small {
  height: 200px;
}

/*-------------------------------------------------------------------
    # Sección de Proyectos - "Nuestro trabajo en acción"
-------------------------------------------------------------------*/
.projects-section {
  padding: 6rem 0;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23e52b1e' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
  z-index: 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.project-card-wrapper {
  perspective: 1000px;
}

.project-card {
  background-color: var(--light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
  height: 100%;
  transform-style: preserve-3d;
  position: relative;
  border: 1px solid rgba(229, 43, 30, 0.1);
}

.project-card:hover {
  transform: translateY(-15px) rotateY(5deg);
  box-shadow: 0 25px 50px rgba(229, 43, 30, 0.15);
  border-color: var(--primary);
}

.project-img {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-category {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.project-content {
  padding: 2rem;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(249, 249, 249, 1));
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.project-card:hover .project-content h3 {
  color: var(--primary);
}

.project-content p {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.project-content .read-more {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.project-content .read-more i {
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.project-content .read-more:hover {
  color: var(--primary-dark);
}

.project-content .read-more:hover i {
  transform: translateX(5px);
}

.btn-glow {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-glow:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  z-index: -1;
  border-radius: inherit;
}

.btn-glow:after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: glowEffect 3s infinite;
}

@keyframes glowEffect {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}

/*-------------------------------------------------------------------
    # Sección de Donación - "Tu donación transforma vidas"
-------------------------------------------------------------------*/
.donation-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--light);
  position: relative;
  overflow: hidden;
}

.donation-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: 0;
}

.donation-content {
  position: relative;
  z-index: 1;
}

.donation-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--light);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.donation-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.donation-impact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.donation-impact-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.donation-impact-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.donation-impact-amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--light);
  margin-bottom: 0.75rem;
}

.donation-impact-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
}

.donation-image-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  height: 450px;
}

.donation-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.donation-image-container:hover .donation-image {
  transform: scale(1.05);
}

.donation-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.donation-image-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--light);
  color: var(--primary);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

/*-------------------------------------------------------------------
    # Footer - Rediseñado completamente
-------------------------------------------------------------------*/
.site-footer {
  background-color: #1f2937;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

.footer-widgets {
  padding: 5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.footer-widgets::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
  z-index: -1;
}

.footer-widget {
  margin-bottom: 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  max-height: 120px;
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.footer-widget h4 {
  color: var(--light);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-widget h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-links li a::before {
  content: "\F285";
  font-family: "bootstrap-icons";
  margin-right: 0.5rem;
  font-size: 0.75rem;
  color: var(--primary);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.footer-links li a:hover {
  color: var(--light);
  transform: translateX(5px);
}

.footer-links li a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.footer-contact li i {
  color: var(--primary);
  margin-right: 1rem;
  font-size: 1.25rem;
}

.footer-contact li .emergency {
  color: var(--primary);
  font-weight: 600;
}

.footer-newsletter {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 3rem 0;
  position: relative;
}

.footer-newsletter h4 {
  color: var(--light);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-newsletter p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.newsletter-form {
  position: relative;
}

.newsletter-form .input-group {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 0.25rem;
}

.newsletter-form input {
  background-color: transparent;
  border: none;
  color: var(--light);
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: none;
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form .btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
  position: relative;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-bottom-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
}

.footer-bottom-links li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-bottom-links li a:hover {
  color: var(--light);
}

/* Responsive styles */
@media (max-width: 991px) {
  .section-header h2 {
    font-size: 2rem;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .counter-text {
    font-size: 1rem;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
  }

  .donation-content h2 {
    font-size: 2.5rem;
  }

  .donation-image-container {
    height: 400px;
    margin-top: 3rem;
  }

  .footer-bottom-links {
    justify-content: flex-start;
    margin-top: 1rem;
  }
}

@media (max-width: 767px) {
  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-header p {
    font-size: 1rem;
  }

  .counter-box {
    margin-bottom: 1.5rem;
  }

  .counter-icon {
    width: 60px;
    height: 60px;
    font-size: 1.75rem;
  }

  .counter-number {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .project-img {
    height: 220px;
  }

  .project-content h3 {
    font-size: 1.25rem;
  }

  .donation-content h2 {
    font-size: 2rem;
  }

  .donation-impact-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .donation-image-container {
    height: 350px;
  }

  .donation-image-badge {
    width: 80px;
    height: 80px;
    font-size: 0.875rem;
  }

  .footer-widget {
    margin-bottom: 2.5rem;
  }

  .footer-newsletter h4 {
    font-size: 1.25rem;
  }
}

@media (max-width: 575px) {
  .section-padding {
    padding: 4rem 0;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .counter-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .counter-number {
    font-size: 1.75rem;
  }

  .counter-text {
    font-size: 0.875rem;
  }

  .project-img {
    height: 200px;
  }

  .project-content {
    padding: 1.5rem;
  }

  .donation-content h2 {
    font-size: 1.75rem;
  }

  .donation-image-container {
    height: 300px;
  }

  .footer-widgets {
    padding: 3rem 0 2rem;
  }

  .footer-newsletter {
    padding: 2rem 0;
  }

  .footer-bottom {
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }
}
