@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #FBF5EE;
  --surface: #FFFFFF;
  --primary: #E2643B;
  --primary-dark: #C94F2A;
  --secondary: #E8A33D;
  --text: #33261C;
  --text-soft: #6B5B4F;
  --border: #EFE2D3;
  --error-bg: #FBE9E4;
  --error-text: #B23A22;
  --error-border: #F1C6B8;
  --success-bg: #EAF3E4;
  --success-text: #3F7D34;
  --success-border: #CFE3C2;
  --excelencia: #1F9D4C;
  --excelencia-dark: #167A3B;
  --excelencia-bg: #E4F7EA;
  --growth: #6B8F5E;
  --growth-light: #9CB86B;
  --growth-dark: #4F6B45;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
}
h1, h2, h3, .btn, label.section { font-family: 'Poppins', -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }

/* Banderas en SVG (no emoji: el emoji de bandera no se ve igual en todos los navegadores/SO). */
svg.bandera {
  display: inline-block; width: 1.15em; height: 0.86em; vertical-align: -0.12em;
  border-radius: 2px; box-shadow: 0 0 0 1px rgba(51,38,28,0.12); flex-shrink: 0;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 40px 20px 80px; }

.top-logo {
  text-align: center;
  padding: 18px 0 8px;
}
.top-logo a {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.008em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; text-align: center; }
p.lead { color: var(--text-soft); text-align: center; margin: 0 0 32px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin: 0 0 24px;
  box-shadow: 0 4px 20px rgba(51,38,28,0.05);
}

.field { margin: 0 0 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 6px;
}
.field .hint { font-size: 12.5px; color: var(--text-soft); margin: 4px 0 0; }
.field input[type=text],
.field input[type=email],
.field input[type=url],
.field input[type=tel],
.field textarea,
.field input[type=file] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
}
.checks input { accent-color: var(--primary); }

.btn {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-row { text-align: center; margin-top: 8px; }

.alert {
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 24px;
  font-size: 14.5px;
}
.alert.error { background: var(--error-bg); color: var(--error-text); border: 1px solid var(--error-border); }
.alert.success { background: var(--success-bg); color: var(--success-text); border: 1px solid var(--success-border); }

/* honeypot: oculto para humanos, visible para bots que rellenan todo */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ficha */
.ficha-head { text-align: center; margin-bottom: 28px; }
.ficha-foto {
  width: 140px; height: 140px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 3px solid var(--surface);
  box-shadow: 0 4px 16px rgba(51,38,28,0.12);
  display: block;
}
.ficha-foto.placeholder {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 44px; font-weight: 700; font-family: 'Poppins', sans-serif;
}
.ficha-nombre { font-size: 26px; font-weight: 700; margin: 0 0 4px; }
.ficha-bio { color: var(--text-soft); max-width: 50ch; margin: 0 auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text);
}

.links-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 20px 0; }
.links-row a {
  border: 1.5px solid var(--primary);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.links-row a:hover { background: var(--primary); color: #fff; }

.section-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.vgrid-item { text-decoration: none; color: var(--text); display: block; }
.vgrid-item img { width: 100%; aspect-ratio: 9/16; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
.vgrid-item span { font-size: 12.5px; font-weight: 600; line-height: 1.3; display: block; }

/* asistente por pasos (alta.php) */
.wizard-progress { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 24px; }
.wizard-progress .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  transition: background 0.15s ease, transform 0.15s ease;
}
.wizard-progress .dot.active { background: var(--primary); transform: scale(1.25); }
.wizard-progress .dot.done { background: var(--secondary); }
.wizard-step-label { text-align: center; font-size: 13px; color: var(--text-soft); margin: -14px 0 22px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: wizard-fade 0.2s ease; }
@keyframes wizard-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wizard-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.btn-ghost {
  display: inline-block;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  text-decoration: none;
  border: 1.5px solid var(--border);
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.wizard-nav .btn { margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.chips input { accent-color: var(--primary); }
.chips label:has(input:checked) { border-color: var(--primary); background: var(--error-bg); }

.price-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14.5px;
  margin: 0 0 20px;
}
.price-note strong { color: var(--primary-dark); }

/* brote de crecimiento: decoración fija que "crece" con el scroll de la página */
.growth-sprout {
  position: fixed;
  left: 18px;
  bottom: 18px;
  width: 54px;
  height: 190px;
  pointer-events: none;
  z-index: 5;
}
.growth-sprout .sprout-stem { transition: stroke-dashoffset 0.1s linear; }
.growth-sprout .sprout-leaf,
.growth-sprout .sprout-bud {
  opacity: 0;
  transform: scale(0.25);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(.34,1.56,.64,1);
}
.growth-sprout .sprout-leaf.grown,
.growth-sprout .sprout-bud.grown {
  opacity: 1;
  transform: scale(1);
}
@media (max-width: 980px) {
  .growth-sprout { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .growth-sprout .sprout-stem { transition: none; }
  .growth-sprout .sprout-leaf,
  .growth-sprout .sprout-bud { transition: none; }
}

/* calendario visual de disponibilidad (Coaches TOP) */
.mc-cal { margin: 0 0 24px; }
.mc-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; font-size: 14px;
}
.mc-cal-nav a { color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.mc-cal-nav a:hover { text-decoration: underline; }
.mc-cal-titulo { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; }
.mc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mc-cal-cabecera {
  text-align: center; font-size: 11px; font-weight: 700; color: var(--text-soft);
  text-transform: uppercase; padding-bottom: 4px;
}
.mc-cal-dia {
  position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-decoration: none; color: var(--text); font-size: 12px;
  gap: 2px; padding: 2px;
}
.mc-cal-vacio { border: none; background: none; }
.mc-cal-num { font-weight: 600; }
.mc-cal-pasado { opacity: 0.35; }
.mc-cal-tiene-libres {
  border-color: var(--primary); background: var(--bg);
  box-shadow: 0 2px 8px rgba(226,100,59,0.15);
}
a.mc-cal-tiene-libres:hover { border-color: var(--primary-dark); transform: translateY(-1px); }
.mc-cal-badges { font-size: 9.5px; line-height: 1.1; text-align: center; }
.mc-cal-reservado-dot {
  position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--excelencia);
}
@media (max-width: 480px) {
  .mc-cal-badges { display: none; }
}

/* pie de página */
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); padding: 32px 20px 40px; }
.site-footer-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.site-footer-brand {
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 16px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 4px;
}
.site-footer-tagline { font-size: 13px; color: var(--text-soft); margin: 0 0 16px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 0 0 16px; }
.site-footer-links a { font-size: 13px; color: var(--text-soft); text-decoration: none; }
.site-footer-links a:hover { color: var(--primary-dark); text-decoration: underline; }
.site-footer-copy { font-size: 12px; color: var(--text-soft); opacity: 0.75; margin: 0; }

/* desplegable de país (details/summary, sin <select> nativo) */
.pais-dropdown { position: relative; }
.pais-dropdown summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--bg); color: var(--text);
}
.pais-dropdown summary::-webkit-details-marker { display: none; }
.pais-dropdown summary::after { content: '▾'; color: var(--text-soft); margin-left: 8px; }
.pais-dropdown[open] summary::after { content: '▴'; }
.pais-panel {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  max-height: 260px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(51,38,28,0.12); padding: 8px;
}
.pais-panel label {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px;
  font-size: 14.5px; cursor: pointer;
}
.pais-panel label:hover { background: var(--bg); }
.pais-panel input { accent-color: var(--primary); }
