/* ==== EDUCATION MODERN STYLES - FRAMER EFFECTS ==== */

/* Two-column section layout for Pillars + Involvement */
.dual-column-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.dual-column-half {
  display: flex;
  flex-direction: column;
}

.dual-column-half h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.dual-column-half > p {
  font-size: 1.05rem;
  color: #666;
  margin-bottom: 2rem;
}

.dual-column-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.compact-card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(44, 75, 100, 0.06);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.compact-card:hover {
  transform: translateX(8px);
  box-shadow: 0 6px 24px rgba(44, 75, 100, 0.12);
}

.compact-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.compact-card-content h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.compact-card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.compact-card-content .btn-hero {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.6rem 1.25rem;
  display: inline-block;
}

@media (max-width: 968px) {
  .dual-column-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .dual-column-half h2 {
    font-size: 2rem;
  }
}

/* Efectos de movimiento tipo Framer */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Cards modernas con efectos */
.modern-card {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(44, 75, 100, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(44, 75, 100, 0.15);
}

.modern-card:hover::before {
  opacity: 1;
}

/* Grid simétrico responsive */
.symmetric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.symmetric-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.symmetric-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.symmetric-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Stats cards con números grandes */
.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(44, 75, 100, 0.06);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 75, 100, 0.12);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

/* Sección con imagen complementaria */
.image-content-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 4rem 0;
}

.image-content-section.reverse {
  direction: rtl;
}

.image-content-section.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44, 75, 100, 0.12);
  position: relative;
}

.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.content-image:hover img {
  transform: scale(1.05);
}

/* Badges modernos */
.modern-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-hero);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  border: 2px solid rgba(216, 93, 58, 0.2);
}

/* Títulos con efecto gradiente */
.gradient-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

/* Botones modernos */
.modern-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(216, 93, 58, 0.25);
}

.modern-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(216, 93, 58, 0.35);
}

.modern-btn-secondary {
  background: var(--gradient-navy);
  box-shadow: 0 4px 16px rgba(44, 75, 100, 0.25);
}

.modern-btn-secondary:hover {
  box-shadow: 0 6px 24px rgba(44, 75, 100, 0.35);
}

/* Carrusel horizontal de logos */
.logo-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 3rem 0;
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
}

.logo-carousel:hover .logo-carousel-track {
  animation-play-state: paused;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.logo-item {
  flex-shrink: 0;
  width: 160px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(44, 75, 100, 0.08);
  transition: all 0.3s ease;
}

.logo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(44, 75, 100, 0.15);
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Divisor de secciones */
.section-divider {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Team cards modernas */
.team-member {
  background: white;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(44, 75, 100, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(44, 75, 100, 0.15);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 4px solid transparent;
  background: var(--gradient-primary);
  padding: 4px;
  position: relative;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background: white;
}

.team-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-bio {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666;
}

/* Sección con fondo alternado */
.section-alt {
  background: linear-gradient(180deg, transparent 0%, rgba(216, 93, 58, 0.02) 50%, transparent 100%);
  position: relative;
}

/* Hero mejorado con efectos */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(216, 93, 58, 0.3);
  text-decoration: none;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(216, 93, 58, 0.4);
  color: white;
}

/* Galería Moderna */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #f5f5f5;
  box-shadow: 0 4px 16px rgba(44, 75, 100, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(44, 75, 100, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1.5rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  font-size: 0.95rem;
  font-weight: 600;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* Formulario Flotante de Apadrinamiento */
.floating-form-trigger {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(216, 93, 58, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-form-trigger:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(216, 93, 58, 0.5);
}

.floating-form-trigger svg {
  width: 24px;
  height: 24px;
}

.floating-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2050;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floating-form-overlay.active {
  opacity: 1;
  visibility: visible;
}

.floating-form {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 24px;
  padding: 3rem;
  max-width: 550px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-form.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.floating-form-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #999;
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.floating-form-close:hover {
  color: var(--primary);
  background: rgba(216, 93, 58, 0.1);
}

/* Floating Donation Modal - Larger for iframe */
.floating-donation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 920px;
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-donation-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.floating-donation-header {
  text-align: center;
  margin-bottom: 2rem;
}

.floating-donation-content {
  width: 100%;
}

.floating-donation-content iframe {
  width: 100%;
  border: none;
  border-radius: 16px;
  min-height: 600px;
}

/* Responsive adjustments for donation modal */
@media (max-width: 968px) {
  .floating-donation-modal {
    max-width: 95%;
    width: 95%;
    padding: 2rem 1.5rem;
    max-height: 95vh;
  }

  .floating-donation-content iframe {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .floating-donation-modal {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .floating-donation-header h3 {
    font-size: 1.5rem !important;
  }

  .floating-donation-content iframe {
    min-height: 450px;
  }

  .floating-form-trigger span {
    display: inline;
    font-size: 0.95rem;
  }
}

.floating-form h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.floating-form .form-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(216, 93, 58, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 1.125rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 93, 58, 0.3);
}

/* Sección de donaciones mejorada */
.donations-wrapper {
  background: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(44, 75, 100, 0.1);
  margin: 2rem 0;
}

.donations-header {
  text-align: center;
  margin-bottom: 2rem;
}

.donations-header h3 {
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.donations-header p {
  color: #666;
  font-size: 1.05rem;
}

/* Responsive adjustments */
@media (max-width: 968px) {
  .symmetric-grid-2,
  .symmetric-grid-3,
  .symmetric-grid-4,
  .image-content-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .modern-card {
    padding: 2rem;
  }

  .logo-item {
    width: 120px;
    height: 60px;
  }

  .modern-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .floating-form {
    padding: 2rem;
  }

  .floating-form-trigger {
    bottom: 1.5rem;
    right: 1.5rem;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 640px) {
  .symmetric-grid {
    grid-template-columns: 1fr;
  }

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

  .modern-gallery {
    grid-template-columns: 1fr;
  }

  .floating-form {
    width: 95%;
    padding: 1.5rem;
  }

  .floating-form-trigger {
    padding: 0.875rem 1.25rem;
    font-size: 0.85rem;
  }
}
