/* ============================================
   FOUNDER SECTION - Sección Nuestra Fundadora
   Estilos encapsulados para evitar conflictos
   ============================================ */

/* Contenedor principal de la sección */
.founder-section {
  position: relative;
  background: rgba(var(--muted-rgb, 243, 244, 246), 0.3);
  padding: 4rem 0;
}

.dark .founder-section {
  background: rgba(var(--muted-rgb, 17, 24, 39), 0.2);
}

/* Contenedor interno con max-width */
.founder-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Título de la sección */
.founder-title {
  font-size: 1.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
  letter-spacing: -0.025em;
}

.dark .founder-title {
  color: #f9fafb;
}

.founder-title-highlight {
  color: #8B5CF6;
}

/* Grid de dos columnas */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .founder-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .founder-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .founder-title {
    font-size: 3rem;
  }
  
  .founder-section {
    padding: 6rem 0;
  }
}

/* Contenedor de imagen */
.founder-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.founder-image-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  max-width: 400px;
  width: 100%;
}

.dark .founder-image-card {
  background: rgba(31, 41, 55, 0.8);
  box-shadow: 
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

.founder-image-card:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 50px -12px rgba(139, 92, 246, 0.25),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Imagen de la fundadora */
.founder-photo-container {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #8B5CF6 0%, #F97316 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.founder-image-card:hover .founder-photo {
  transform: scale(1.05);
}

/* Info debajo de la imagen */
.founder-info {
  text-align: center;
  padding: 0 1rem;
}

.founder-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #8B5CF6;
  margin-bottom: 0.5rem;
}

.dark .founder-name {
  color: #a78bfa;
}

.founder-role {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}

.dark .founder-role {
  color: #9ca3af;
}

/* Contenido de texto */
.founder-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-text {
  font-size: 1.125rem;
  line-height: 1.75;
  color: #374151;
}

.dark .founder-text {
  color: #d1d5db;
}

.founder-text:first-child {
  font-weight: 500;
}

/* Animaciones de entrada */
@keyframes founderFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.founder-section.animate-in .founder-title {
  animation: founderFadeIn 0.6s ease-out;
}

.founder-section.animate-in .founder-image-wrapper {
  animation: founderFadeIn 0.6s ease-out 0.2s both;
}

.founder-section.animate-in .founder-content {
  animation: founderFadeIn 0.6s ease-out 0.4s both;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .founder-section {
    padding: 3rem 0;
  }
  
  .founder-container {
    padding: 0 1.5rem;
  }
  
  .founder-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .founder-text {
    font-size: 1rem;
  }
  
  .founder-image-card {
    max-width: 320px;
  }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .founder-image-card,
  .founder-photo {
    transition: none;
  }
  
  .founder-section.animate-in .founder-title,
  .founder-section.animate-in .founder-image-wrapper,
  .founder-section.animate-in .founder-content {
    animation: none;
  }
}
