/* ============================================================
   ÁMATE — components.css
   Botones, cards, badges, forms, stats, testimonios, CTA
   ============================================================ */

/* ── BOTONES ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.8125rem 1.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: var(--r-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--tr-fast), color var(--tr-fast),
              border-color var(--tr-fast), box-shadow var(--tr-fast),
              transform var(--tr-fast);
  white-space: nowrap; min-height: 46px;
  text-decoration: none; line-height: 1;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--heart); border-color: var(--heart); box-shadow: var(--shadow-pri);
}

.btn-secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--paper); }

/* Botón sobre fondo oscuro */
.btn-light {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}
.btn-light:hover {
  background: var(--heart); color: var(--paper); border-color: var(--heart);
  box-shadow: var(--shadow-pri);
}

/* Botón contorno claro — para fondos fotográficos oscuros */
.btn-outline-light {
  background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.75);
}
.btn-outline-light:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}

.btn-outline {
  background: transparent; color: var(--heart); border-color: var(--heart);
}
.btn-outline:hover { background: var(--heart); color: var(--paper); box-shadow: var(--shadow-pri); }

.btn-ghost {
  background: transparent; color: var(--ink-60); border-color: transparent; padding: 0.75rem 1rem;
}
.btn-ghost:hover { color: var(--ink); }

.btn-sm  { padding: 0.5625rem 1.25rem; font-size: 0.75rem; min-height: 38px; }
.btn-lg  { padding: 1rem 2.25rem; font-size: 0.875rem; min-height: 52px; }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.2rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.7rem; font-weight: 700;
  border-radius: var(--r-full); letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-orange {
  background: var(--heart-subtle); color: var(--heart); border-color: rgba(201,27,90,0.2);
}
.badge-jade {
  background: #F0F0EC; color: #5A5A50; border-color: #E0E0D8;
}
.badge-gold {
  background: #EEE8DC; color: #6A5A40; border-color: #DDD4C0;
}
.badge-muted {
  background: var(--warm-bg); color: var(--ink-60); border-color: var(--line);
}
/* Badges sobre fondo oscuro */
.section-dark .badge-jade {
  background: rgba(255,255,255,0.08); color: #B0B0A0; border-color: rgba(255,255,255,0.12);
}
.section-dark .badge-gold {
  background: rgba(255,255,255,0.06); color: #C0B08A; border-color: rgba(255,255,255,0.10);
}
.section-dark .badge-muted {
  background: rgba(255,255,255,0.05); color: var(--ink-30); border-color: rgba(255,255,255,0.08);
}

/* ── CARDS ── */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__image { width: 100%; aspect-ratio: 16/9; }
.card__body { padding: var(--sp-6); }
.card__badge { margin-bottom: var(--sp-3); }
.card__title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  margin-bottom: var(--sp-3); line-height: 1.2;
}
.card__desc { color: var(--ink-60); font-size: 0.9375rem; line-height: 1.7; margin-bottom: var(--sp-6); }
.card__footer {
  padding: var(--sp-4) var(--sp-6); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}

/* Card de característica */
.feature-card {
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
/* En sección clara */
.feature-card { background: var(--warm-bg); border: 1px solid var(--line); }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
/* En sección oscura */
.section-dark .feature-card {
  background: #181818; border-color: #282828; color: var(--paper);
}
.section-dark .feature-card:hover { border-color: var(--heart); box-shadow: 0 4px 24px rgba(201,27,90,0.15); }
.feature-card__icon {
  width: 48px; height: 48px;
  background: var(--heart-subtle); border: 1px solid rgba(201,27,90,0.18);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-6); color: var(--heart);
}
.section-dark .feature-card__icon {
  background: rgba(201,27,90,0.15); border-color: rgba(201,27,90,0.25);
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 800;
  margin-bottom: var(--sp-3); line-height: 1.2;
}
.feature-card p { color: var(--ink-60); font-size: 0.9375rem; line-height: 1.7; }
.section-dark .feature-card p { color: var(--ink-30); }

/* ── PROGRAM CARDS ── */
.program-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--tr-base), box-shadow var(--tr-base), transform var(--tr-base);
}
.program-card:hover {
  border-color: var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-6px);
}
.program-card__header {
  padding: var(--sp-8); position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper); min-height: 180px;
}
/* Fondo geométrico del header — vocabulario del logo */
.program-card__header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 110% 110%, rgba(201,27,90,0.25) 0%, transparent 55%),
    radial-gradient(circle at -10% -10%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}
/* Decoración geométrica en la esquina — referencia al logo */
.program-card__header::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.program-card__icon { font-size: 2rem; margin-bottom: var(--sp-4); line-height: 1; }
.program-card__level {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--heart); margin-bottom: var(--sp-2);
}
.program-card__name {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  line-height: 1.05; color: var(--paper); margin-bottom: var(--sp-3);
}
.program-card__ages {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.875rem; color: rgba(255,255,255,0.55);
}
.program-card__body {
  padding: var(--sp-6) var(--sp-8) var(--sp-8); flex: 1; display: flex; flex-direction: column;
}
.program-card__desc {
  color: var(--ink-60); font-size: 0.9375rem; line-height: 1.75;
  margin-bottom: var(--sp-6); font-style: italic;
}
.program-card__techs { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); flex: 1; }
.program-card__footer {
  border-top: 1px solid var(--line); padding-top: var(--sp-6);
  margin-top: auto; display: flex; gap: var(--sp-3);
}

/* ── VALUE CARD ── */
.value-card {
  background: var(--warm-bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-6); text-align: center;
}
.value-card__emoji { font-size: 2rem; margin-bottom: var(--sp-4); display: block; color: var(--heart); }
.value-card h4 { font-size: 1rem; margin-bottom: var(--sp-2); }
.value-card p { font-size: 0.875rem; color: var(--ink-60); line-height: 1.65; }

/* ── TESTIMONIOS ── */
.testimonial-card {
  background: #181818; border: 1px solid #282828;
  border-radius: var(--r-lg); padding: var(--sp-8); position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: var(--sp-4); left: var(--sp-6);
  font-family: var(--font-display); font-size: 4rem; color: var(--heart);
  line-height: 1; opacity: 0.5;
}
.testimonial-card__text {
  color: rgba(255,255,255,0.7); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: var(--sp-6); padding-top: var(--sp-8); font-style: italic;
}
.testimonial-card__author { display: flex; align-items: center; gap: var(--sp-4); }
.testimonial-card__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: #282828; border: 2px solid #383838;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--ink-30); overflow: hidden;
}
.testimonial-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-card__name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--paper); }
.testimonial-card__role { color: var(--ink-30); font-size: 0.8125rem; }

/* ── STATS ── */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6);
}
.stat-item {
  text-align: center; padding: var(--sp-8);
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; }
.stat-item__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800; color: var(--heart);
  display: block; line-height: 1; margin-bottom: var(--sp-2);
}
.stat-item__label { font-size: 0.9rem; color: var(--ink-60); line-height: 1.4; font-style: italic; }

/* ── CTA BANNER ── */
.cta-banner {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--sp-16) var(--sp-12);
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(201,27,90,0.18) 0%, transparent 60%);
  pointer-events: none;
}
/* Decoración geométrica — círculo del logo ámate */
.cta-banner::after {
  content: ''; position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  pointer-events: none;
}
.cta-banner h2 { color: var(--paper); margin-bottom: var(--sp-4); position: relative; z-index: 1; }
.cta-banner p {
  color: rgba(255,255,255,0.65); font-size: 1.2rem;
  max-width: 46ch; margin: 0 auto var(--sp-8);
  font-style: italic; position: relative; z-index: 1;
}
.cta-banner__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ── CTA ESPIRAL — full-bleed con la espiral textil real ── */
.cta-espiral {
  position: relative;
  padding: var(--sp-24) 0;
  border-top: 4px solid var(--ink);
  background: var(--ink) url('../images/espiral-textil.jpg') center / cover no-repeat;
  overflow: hidden;
}
/* Overlay: viñeta oscura para legibilidad, deja respirar el color de las fibras */
.cta-espiral::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 85% 100% at 50% 50%,
    rgba(12,12,12,0.60) 0%,
    rgba(12,12,12,0.88) 100%
  );
  pointer-events: none;
}
.cta-espiral__content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 660px; margin: 0 auto;
}
.cta-espiral .section-kicker {
  color: var(--paper);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.cta-espiral h2 {
  color: var(--paper);
  margin-bottom: var(--sp-4);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}
.cta-espiral p {
  color: rgba(255,255,255,0.85);
  font-size: 1.2rem; font-style: italic;
  max-width: 46ch; margin: 0 auto var(--sp-8);
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.cta-espiral__actions {
  display: flex; gap: var(--sp-4);
  justify-content: center; flex-wrap: wrap;
}

/* ── FORMULARIO ── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.form-label {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-60);
}
.form-label .required { color: var(--heart); margin-left: 2px; }
.form-control {
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--r-md); color: var(--ink);
  padding: 0.75rem 1rem; font-size: 1rem;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  width: 100%; -webkit-appearance: none;
}
.form-control::placeholder { color: var(--ink-30); font-style: italic; }
.form-control:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,12,12,0.08); }
.form-control.error { border-color: #C82020; }
.form-control.success { border-color: #1A7A40; }
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5450' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
select.form-control option { background: var(--paper); color: var(--ink); }
textarea.form-control { resize: vertical; min-height: 130px; }
.form-error { font-family: var(--font-display); font-size: 0.78rem; color: #C82020; display: none; }
.form-error.visible { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.form-grid .form-group.full { grid-column: 1 / -1; }
.form-success {
  background: rgba(26,122,64,0.08); border: 1px solid rgba(26,122,64,0.3);
  border-radius: var(--r-lg); padding: var(--sp-8); text-align: center; display: none;
}
.form-success.visible { display: block; }
.form-success h3 { color: #1A7A40; margin-bottom: var(--sp-3); }
.form-success p { color: var(--ink-60); }

/* ── EQUIPO ── */
.team-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-8); text-align: center;
  transition: border-color var(--tr-base), box-shadow var(--tr-base);
}
.team-card:hover { border-color: var(--ink); box-shadow: var(--shadow-md); }
.team-card__photo {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--warm-bg); border: 2px solid var(--line);
  margin: 0 auto var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--ink-30); overflow: hidden;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: var(--sp-1); }
.team-card__role { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--heart); margin-bottom: var(--sp-4); }
.team-card__bio { font-size: 0.9rem; color: var(--ink-60); line-height: 1.7; font-style: italic; }

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--heart), transparent);
}
.timeline-item { position: relative; padding-bottom: var(--sp-8); }
.timeline-item::before {
  content: ''; position: absolute;
  left: -2.3rem; top: 6px;
  width: 10px; height: 10px;
  background: var(--heart); border-radius: 50%;
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 3px var(--heart-glow);
}
.timeline-year {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--heart); margin-bottom: var(--sp-1);
}
.timeline-title { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 700; margin-bottom: var(--sp-2); }
.timeline-desc { font-size: 0.95rem; color: var(--ink-60); line-height: 1.7; font-style: italic; }

/* ── CONTACT INFO ── */
.contact-info { background: var(--warm-bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-8); }
.contact-info h3 { margin-bottom: var(--sp-6); }
.contact-item { display: flex; gap: var(--sp-4); margin-bottom: var(--sp-6); align-items: flex-start; }
.contact-item:last-child { margin-bottom: 0; }
.contact-item__icon {
  width: 40px; height: 40px;
  background: var(--heart-subtle); border: 1px solid rgba(201,27,90,0.15);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--heart); flex-shrink: 0;
}
.contact-item__label {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-30); margin-bottom: var(--sp-1);
}
.contact-item__value { font-size: 0.9375rem; color: var(--ink-60); line-height: 1.5; }
.contact-item__value a { color: var(--heart); transition: color var(--tr-fast); }
.contact-item__value a:hover { color: var(--heart-deep); }

/* ── FILTROS DE PROGRAMAS ── */
.filter-tabs { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; margin-bottom: var(--sp-12); }
.filter-btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em;
  border-radius: var(--r-full); border: 1.5px solid var(--line);
  color: var(--ink-60); background: transparent; cursor: pointer;
  transition: all var(--tr-fast); min-height: 40px; text-transform: uppercase;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── EL AJUAR CALLOUT ── */
.ajuar-callout {
  background: var(--ink); border-radius: var(--r-xl); padding: var(--sp-12);
  position: relative; overflow: hidden; color: var(--paper);
}
.ajuar-callout::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top right, rgba(201,27,90,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.ajuar-callout__grid { display: grid; grid-template-columns: 1fr 2fr; gap: var(--sp-12); align-items: center; }
.ajuar-items { display: flex; flex-direction: column; gap: var(--sp-4); }
.ajuar-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.ajuar-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.ajuar-item h4 { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: var(--sp-1); color: var(--paper); }
.ajuar-item p { font-size: 0.875rem; color: var(--ink-30); line-height: 1.6; font-style: italic; }
