/* Lenguaje visual de las paginas publicas del coach (formulario y agenda).
 *
 * Es el MISMO sistema del sitio principal (index.html): quien llega desde un DM
 * de Instagram pasa del sitio al formulario y de ahi a la cita sin notar costura.
 * Vive aparte para que las dos paginas no se separen con el tiempo.
 *
 * Los tokens son los del sitio, con una excepcion a proposito:
 * `--ink-soft` se oscurecio de #7a6f5e a #6B6152. El original da 4.1:1 sobre la
 * crema, que no llega al minimo de 4.5:1 para texto normal. En el sitio se usa en
 * parrafos grandes y pasa; aqui hay etiquetas de formulario pequenas y no pasaba.
 */

:root {
  --cream:      #F6EFE3;
  --cream-2:    #FBF7EE;
  --cream-3:    #EFE5D3;
  --ink:        #2A241C;
  --ink-soft:   #6B6152;
  --ink-faint:  #8A7F6D;   /* solo para 18px+ o texto decorativo */
  --gold:       #B7934E;
  --gold-bright:#C9A968;
  --gold-deep:  #8F7136;
  --charcoal:   #221E17;
  --night:      #131110;
  --line:       rgba(150,119,59,.22);
  --line-firm:  rgba(150,119,59,.42);
  --bad:        #A33A2F;
  --ok:         #2E7D52;
  --radius:     20px;
  --radius-sm:  12px;
  --max:        1080px;
  --shadow:     0 30px 70px -35px rgba(90,68,30,.35);
  --ease:       cubic-bezier(.23,1,.32,1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 16px/1.6 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.15;
             letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* El resplandor dorado del sitio, para que no se sienta otra pagina */
.glow { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1100px 520px at 82% -8%, rgba(201,169,104,.26), transparent 60%),
              radial-gradient(820px 460px at -8% 92%, rgba(201,169,104,.13), transparent 55%); }

/* --- barra superior: la misma del sitio, y vuelve a el ---------------------- */
.topbar { position: relative; z-index: 3; background: var(--night);
  border-bottom: 1px solid rgba(201,169,104,.22); }
.topbar .in { max-width: var(--max); margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar img { height: 46px; width: auto; display: block; }
.topbar .volver { color: #cdbfa5; font-size: .88rem; font-weight: 500; text-decoration: none;
  transition: color .2s var(--ease); white-space: nowrap; }
.topbar .volver:hover { color: #fff; }
.topbar a:focus-visible, .foot a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; border-radius: 4px; }

/* --- lienzo ---------------------------------------------------------------- */
.shell { position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) 20px 40px; }
.duo { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr);
  gap: clamp(24px, 4vw, 52px); align-items: start; }

.panel { background: var(--cream-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3.2vw, 34px); }

.eyebrow { font-weight: 600; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-deep); display: block; margin-bottom: 14px; }

/* --- la columna de presentacion (foto + diamante) -------------------------- */
.aside { position: sticky; top: 24px; }
.retrato { position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--cream-3); aspect-ratio: 4 / 5; }
.retrato img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; }
.retrato::after { content: ''; position: absolute; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(34,30,23,.82), transparent); }
.retrato .quien { position: absolute; left: 20px; right: 20px; bottom: 16px; z-index: 2; color: #F7F1E6; }
.retrato .quien .n { font-family: 'Playfair Display', Georgia, serif; font-size: 1.28rem; line-height: 1.2; }
.retrato .quien .r { font-size: .82rem; color: #d8cbb2; margin-top: 2px; }
.gema { width: 46px; height: 46px; opacity: .9; margin-bottom: 14px; display: block; }

.puntos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.puntos li { display: flex; gap: 11px; align-items: flex-start; font-size: .93rem; color: var(--ink-soft); }
.puntos svg { flex: none; margin-top: 3px; color: var(--gold); }

/* --- formulario ------------------------------------------------------------ */
.campo { display: flex; flex-direction: column; gap: 7px; margin-bottom: 20px; }
.campo > .q { font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.4; }
.campo .req { color: var(--gold-deep); }
.campo input, .campo select, .campo textarea {
  border: 1px solid var(--line-firm); border-radius: var(--radius-sm); background: #fff;
  padding: 12px 14px; font: inherit; color: var(--ink);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.campo input::placeholder { color: #9c9282; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,147,78,.22); }
.campo input[aria-invalid="true"] { border-color: var(--bad); }

.opciones { display: grid; gap: 8px; }
.opcion { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .94rem;
  border: 1px solid var(--line-firm); border-radius: var(--radius-sm); padding: 11px 14px;
  background: #fff; transition: border-color .16s var(--ease), background .16s var(--ease); }
.opcion:hover { border-color: var(--gold); background: #fffdf8; }
.opcion:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.opcion.on { border-color: var(--gold); background: #FBF4E6; font-weight: 600; }
.opcion input { accent-color: var(--gold-deep); margin: 0; flex: none; }

/* --- botones --------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: 600 .95rem 'Inter', sans-serif; padding: 14px 28px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.btn-oro { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #fff;
  box-shadow: 0 14px 30px -12px rgba(150,119,59,.6); }
.btn-oro:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(150,119,59,.75); }
.btn-oro:active:not(:disabled) { transform: scale(.985); }
.btn-fantasma { background: transparent; border-color: var(--line-firm); color: var(--ink); }
.btn-fantasma:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
.btn-ancho { width: 100%; }

/* Confirmar una cita tarda unos segundos de verdad (se crea el evento en el
   calendario del coach y se arman los recordatorios). Con solo un texto la gente
   piensa que no paso nada y vuelve a darle. */
.btn .giro { width: 15px; height: 15px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: gira .7s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn .giro { animation-duration: 1.6s; } }

.volver-paso { background: none; border: none; padding: 0; margin-bottom: 14px; cursor: pointer;
  font: 600 .86rem 'Inter', sans-serif; color: var(--ink-soft); }
.volver-paso:hover { color: var(--gold-deep); }

/* --- avisos ---------------------------------------------------------------- */
.aviso { font-size: .88rem; min-height: 20px; margin-top: 10px; color: var(--ink-soft); }
.aviso.mal { color: var(--bad); font-weight: 500; }

/* --- pantalla de gracias ---------------------------------------------------- */
.hecho { text-align: center; padding: 8px 0 4px; }
.hecho .sello { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(183,147,78,.14); border: 1px solid var(--line-firm); }
.hecho h2 { font-size: 1.7rem; margin-bottom: 10px; }
.hecho p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto 22px; }

/* --- pie ------------------------------------------------------------------- */
.foot { position: relative; z-index: 2; text-align: center; padding: 26px 20px 40px;
  font-size: .82rem; color: var(--ink-faint); }
.foot a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line-firm); }
.foot a:hover { color: var(--gold-deep); }
.foot .sep { margin: 0 9px; opacity: .5; }
.foot .marca { display: block; margin-top: 10px; opacity: .8; }

.oculto { display: none !important; }
.solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- entrada suave --------------------------------------------------------- */
.aparece { animation: sube .42s var(--ease) both; }
@keyframes sube { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .aside { position: static; }
  /* En el movil la foto no manda: es un saludo, no una portada */
  .retrato { aspect-ratio: 16 / 9; }
  .retrato img { object-position: center 22%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; }
  .btn-oro:hover:not(:disabled) { transform: none; }
}

/* --- telefono con pais (ver assets/telefono.js) ----------------------------- */
.tel { display: flex; align-items: stretch; background: #fff;
  border: 1px solid var(--line-firm); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.tel:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(183,147,78,.22); }
/* El input de dentro pierde su marco: el marco ahora es el del conjunto */
.campo .tel input { border: none; background: none; box-shadow: none; flex: 1; min-width: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.campo .tel input:focus-visible { outline: none; box-shadow: none; border: none; }

.tel-pais { position: relative; display: flex; align-items: center; gap: 5px;
  padding: 0 10px 0 13px; border-right: 1px solid var(--line); flex: none;
  color: var(--ink); font-size: .93rem; font-weight: 500; white-space: nowrap; }
.tel-pais::after { content: ''; width: 0; height: 0; margin-left: 1px;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-faint); }
.tel-visible { display: inline-flex; align-items: center; gap: 6px; }

/* El <select> de verdad, invisible encima: en el movil abre el selector nativo
   del telefono, que se maneja mejor que cualquier lista nuestra. */
.tel-select { position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; font: inherit; -webkit-appearance: none; appearance: none;
  border: none; background: none; }
.tel-pais:has(.tel-select:focus-visible) { outline: 2px solid var(--gold-deep); outline-offset: -2px;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
