/**
 * components.css
 * Sistema de componentes reutilizables para MLA
 * Filosofía: Un componente = una clase = un estilo único
 * Facilita reutilización y mantenimiento
 * Listo para KAPURĀ migration
 */

/* ============================================
   BUTTONS — Sistema de botones
   ============================================ */

/* Primary CTA Button */
.btn-cta-hero,
.btn-cta-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--mla-pink-main, #ef6694) 0%, var(--primary, #522fb2) 100%);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  box-shadow: 0 4px 15px rgba(239, 102, 148, 0.3);
}

.btn-cta-hero:hover,
.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 102, 148, 0.4);
}

/* Main Action Button */
.btn-mla-main {
  background-color: var(--mla-pink-main, #ef6694);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.btn-mla-main:hover {
  background-color: var(--mla-burgundy, #a24f68);
  transform: scale(1.05);
}

/* Secondary Button */
.btn-mla-secondary {
  background-color: transparent;
  color: var(--mla-pink-main, #ef6694);
  border: 2px solid var(--mla-pink-main, #ef6694);
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-mla-secondary:hover {
  background-color: var(--mla-pink-main, #ef6694);
  color: white;
}

/* ============================================
   CARDS — Sistema de tarjetas
   ============================================ */

/* About MLA Card */
.about_mla-card {
  background: white;
  border-left: 5px solid var(--mla-pink-main, #ef6694);
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

.about_mla-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(239, 102, 148, 0.15);
}

.about_mla-card h4 {
  color: var(--mla-burgundy, #a24f68);
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.about_mla-card p {
  color: #333;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* Team Card */
.mla-team-card {
  background: var(--mla-pink-light, #f7dce5);
  border: 1px solid var(--mla-pink-soft, #f3abc4);
  border-radius: 15px;
  padding: 30px 15px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.mla-team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(239, 102, 148, 0.2);
}

.mla-team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mla-pink-main, #ef6694);
}

.mla-team-card h3 {
  color: var(--mla-burgundy, #a24f68);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.mla-team-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Sponsor Card */
.sponsor-tile {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.sponsor-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(239, 102, 148, 0.2);
}

.sponsor-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sponsor-brand img {
  max-width: 100%;
  height: 60px;
  object-fit: contain;
}

.sponsor-brand span {
  font-weight: 700;
  color: var(--mla-burgundy, #a24f68);
}

.sponsor-meta p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.sponsor-cta {
  color: var(--mla-pink-main, #ef6694);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* ============================================
   SECTIONS — Contenedores de sección
   ============================================ */

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  color: var(--mla-burgundy, #a24f68);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-title h3 {
  color: var(--mla-burgundy, #a24f68);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.section-title p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Background Variants */
.section-bg {
  background-color: var(--background-light, #f8f8f8);
  padding: 80px 0;
}

.section-bg.dark {
  background-color: #f7dce5;
}

/* ============================================
   BADGES & LABELS
   ============================================ */

.badge-mla {
  display: inline-block;
  background-color: var(--mla-pink-main, #ef6694);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-secondary {
  background-color: var(--mla-pink-light, #f7dce5);
  color: var(--mla-burgundy, #a24f68);
}

/* ============================================
   ICONS & DECORATIONS
   ============================================ */

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--mla-pink-light, #f7dce5);
  color: var(--mla-pink-main, #ef6694);
  font-size: 1.5rem;
}

.divider-pink {
  width: 60px;
  height: 3px;
  background-color: var(--mla-pink-main, #ef6694);
  margin: 0 auto 1.5rem;
}

/* ============================================
   GALLERY COMPONENT
   ============================================ */

/* Showcase Gallery (ya existe pero centralizamos aquí) */
.mla-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
  gap: 22px;
  transition: opacity 0.3s ease;
  margin-top: 30px;
}

.mla-showcase-item {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #efefef 0%, #d8d8d8 100%);
  isolation: isolate;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.45s ease,
              opacity 0.6s ease;
  animation: mlaCardEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.mla-showcase-item:hover {
  transform: scale(1.02);
}

.mla-showcase-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mla-showcase-item:hover img {
  transform: scale(1.08);
}

/* ============================================
   FORM COMPONENTS
   ============================================ */

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

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

.form-group-mla input,
.form-group-mla textarea,
.form-group-mla select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light, #ddd);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group-mla input:focus,
.form-group-mla textarea:focus,
.form-group-mla select:focus {
  outline: none;
  border-color: var(--mla-pink-main, #ef6694);
  box-shadow: 0 0 0 3px rgba(239, 102, 148, 0.1);
}

/* ============================================
   RESPONSIVE COMPONENT ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
  .section-title h2 {
    font-size: 1.6rem;
  }

  .section-title h3 {
    font-size: 1.4rem;
  }

  .btn-cta-hero,
  .btn-cta-primary {
    padding: 12px 30px;
    font-size: 0.9rem;
  }

  .mla-showcase {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
  }

  .mla-team-card {
    padding: 20px 10px;
  }

  .mla-team-card img {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 1.4rem;
  }

  .section-title h3 {
    font-size: 1.2rem;
  }

  .section-title p {
    font-size: 0.9rem;
  }

  .btn-cta-hero,
  .btn-cta-primary {
    padding: 10px 25px;
    font-size: 0.85rem;
  }

  .about_mla-card {
    padding: 15px 20px;
  }

  .mla-showcase {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
    gap: 12px;
  }

  .mla-team-card {
    padding: 15px 10px;
  }

  .mla-team-card img {
    width: 80px;
    height: 80px;
  }

  .btn-mla-main {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes mlaCardEnter {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============================================
   UTILITY CLASSES (Para reutilización rápida)
   ============================================ */

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

.text-muted {
  color: #999;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
