/* Pagina de registro al webinar organico de Angie Bru.
   Sin fuentes de Google a proposito: cargarlas desde sus servidores sin consentimiento ya le
   costo multas a sitios de empresas alemanas. Se usan las del sistema. */

:root {
  --tinta: #1c1c1c;
  --tinta-suave: #4a4a4a;
  --fondo: #f7f4ef;
  --papel: #ffffff;
  --oro: #b08d4f;
  --oro-claro: #efe5d2;
  --rojo: #b3171d;
  --rojo-oscuro: #8f1217;
  --verde: #1f8f4e;
  --verde-oscuro: #17703d;
  --borde: #e2dcd2;
  --error: #b3171d;
  --radio: 14px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.franja {
  background: var(--tinta);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 16px;
}
.franja strong { color: var(--oro-claro); font-weight: 600; }

.contenedor { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* PORTADA: la foto es el boton («foto pop»): al tocarla se abre el formulario. */
.portada { display: grid; gap: 22px; padding: 18px 0 30px; }
.foto-pop {
  position: relative; padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: var(--radio); overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .15s ease;
}
.foto-pop:hover, .foto-pop:focus-visible { transform: scale(1.01); }
.foto-pop:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.foto-pop img { width: 100%; max-height: 74vh; object-fit: cover; object-position: center 58%; }
.toca {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  background: rgba(255,255,255,.92); color: var(--tinta); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  animation: latido 2.2s ease-in-out infinite;
}
@keyframes latido { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .toca { animation: none; } .foto-pop { transition: none; } }

.etiqueta {
  display: inline-block; margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--oro);
}
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 6.2vw, 46px); }
h2 { font-size: clamp(24px, 4.6vw, 32px); }

.cuando { font-size: 18px; margin: 0 0 8px; }
.paises { margin: 0 0 18px; font-size: 15px; color: var(--tinta-suave); }
.paises summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.paises ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.paises li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--borde); padding: 3px 0; }
.paises li span:last-child { font-weight: 600; color: var(--tinta); white-space: nowrap; }
.tu-hora { font-size: 15px; color: var(--tinta-suave); margin: 0 0 16px; }

.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 54px; padding: 14px 22px; border: 0; border-radius: 999px;
  background: var(--rojo); color: #fff; font: 700 18px/1.2 var(--sans); text-decoration: none;
  cursor: pointer; box-shadow: 0 6px 16px rgba(179,23,29,.28);
}
.boton:hover { background: var(--rojo-oscuro); }
.boton:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.boton[disabled] { opacity: .7; cursor: wait; }
.boton.whatsapp { background: var(--verde); box-shadow: 0 6px 16px rgba(31,143,78,.28); }
.boton.whatsapp:hover { background: var(--verde-oscuro); }
.boton.secundario { background: var(--papel); color: var(--tinta); border: 1px solid var(--borde); box-shadow: none; font-size: 16px; min-height: 48px; }
.boton.secundario:hover { background: var(--oro-claro); }
.boton[aria-disabled="true"] { cursor: not-allowed; }

.nota { font-size: 15px; color: var(--tinta-suave); margin: 14px 0 0; }

.bloque { background: var(--papel); border-radius: var(--radio); padding: 26px 20px; margin: 0 0 22px; border: 1px solid var(--borde); }
.temario ol { margin: 0 0 22px; padding: 0; list-style: none; counter-reset: paso; display: grid; gap: 16px; }
.temario li { counter-increment: paso; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.temario li::before {
  content: counter(paso); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--oro-claro); color: var(--oro); font: 700 20px var(--serif);
}
.temario strong { display: block; margin-bottom: 2px; }

.angie { display: grid; gap: 16px; align-items: center; }
.angie img { border-radius: var(--radio); }

.pie { text-align: center; font-size: 13px; color: var(--tinta-suave); padding: 22px 16px 40px; }
.pie a { margin: 0 6px; }

/* EL FORMULARIO, como hoja que sube desde abajo en el telefono y como ventana en el computador. */
dialog.registro {
  border: 0; padding: 0; width: 100%; max-width: 520px; max-height: 94vh; overflow: auto;
  border-radius: 18px 18px 0 0; margin: auto auto 0; background: var(--papel); color: var(--tinta);
}
dialog.registro::backdrop { background: rgba(20,20,20,.55); }
dialog.registro[open] { animation: sube .22s ease-out; }
@keyframes sube { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { dialog.registro[open] { animation: none; } }
.registro form { padding: 22px 18px 26px; display: grid; gap: 14px; }
.registro h2 { margin: 0; padding-right: 36px; }
.cerrar {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--fondo); font-size: 24px; line-height: 1; cursor: pointer; color: var(--tinta);
}
.resumen-clase { margin: -4px 0 2px; color: var(--tinta-suave); font-size: 15px; }
.campo { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.campo input, .campo select, .telefono select, .telefono input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #cfc7ba; border-radius: 10px;
  font: 400 17px var(--sans); background: #fff; color: var(--tinta);
}
.campo input:focus, .campo select:focus, .telefono select:focus, .telefono input:focus {
  outline: 2px solid var(--oro); outline-offset: 1px; border-color: var(--oro);
}
.telefono { display: grid; grid-template-columns: minmax(118px, 38%) 1fr; gap: 8px; }
fieldset.profesion { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset.profesion legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px 10px;
  border: 1px solid #cfc7ba; border-radius: 10px; font-size: 15px; font-weight: 600; background: #fff; cursor: pointer;
}
.chip input:checked + span { border-color: var(--oro); background: var(--oro-claro); box-shadow: inset 0 0 0 1px var(--oro); }
.chip input:focus-visible + span { outline: 2px solid var(--oro); outline-offset: 2px; }
.acepta { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--tinta-suave); align-items: start; }
.acepta input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--rojo); }
.error { margin: 0; color: var(--error); font-weight: 600; font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aviso-prueba {
  background: #fff4cc; border: 1px solid #e6c65c; color: #5a4600; font-size: 14px; padding: 10px 14px;
  border-radius: 10px; margin: 12px 0;
}

/* CONFIRMADOS Y OTRA PROFESION */
.confirmacion { max-width: 640px; margin: 0 auto; padding: 24px 16px 10px; }
.paso { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--oro); margin: 0 0 8px; }
.barra { height: 8px; background: var(--borde); border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.barra span { display: block; height: 100%; width: 85%; background: var(--verde); border-radius: 999px; }
.alerta { background: #fff; border-left: 5px solid var(--rojo); border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.video { position: relative; border-radius: var(--radio); overflow: hidden; background: #000; margin: 0 0 18px; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-sustituto { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px; margin: 0 0 18px; }
.video-sustituto img { width: 96px; height: 96px; object-fit: cover; object-position: 35% 20%; border-radius: 50%; }
.pendiente { display: block; margin-top: 8px; font-size: 13px; color: #8a6d00; font-weight: 600; }
.calendario { display: grid; gap: 10px; margin: 12px 0 18px; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  .portada { grid-template-columns: 1fr 1fr; align-items: center; gap: 44px; padding: 40px 0 44px; }
  .bloque { padding: 34px 36px; }
  .angie { grid-template-columns: 220px 1fr; }
  .boton { width: auto; min-width: 280px; }
  .calendario { grid-template-columns: 1fr 1fr; }
  .calendario .boton { min-width: 0; width: 100%; }
  dialog.registro { border-radius: 18px; margin: auto; }
  .registro form { padding: 28px 30px 30px; }
  .confirmacion .boton { width: 100%; }
}
