/* Página pública del formulario: fondo con la portada difuminada y en movimiento, tarjeta encima. */
:root { --ink: #111317; --muted: #5b6172; --primary: #4f46e5; --border: #858b9c; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body.fp {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink);
  background: #0b0b10; overflow-x: hidden;
}

/* Fondo: portada del reel, difuminada y con movimiento lento (efecto Ken Burns) */
.bg { position: fixed; inset: -60px; z-index: 0; background-size: cover; background-position: center; }
.bg.photo { filter: blur(14px) saturate(1.25) brightness(.72); animation: kenburns 22s ease-in-out infinite alternate; }
.bg.gradient { background: linear-gradient(130deg, #1e1b4b, #4f46e5, #111827, #7c3aed); background-size: 400% 400%; animation: drift 18s ease infinite; }
.shade {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.shade::after { /* brillo que pasa de vez en cuando, como en un reel */
  content: ''; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 45%, rgba(255,255,255,.10) 50%, transparent 55%);
  animation: shine 7s ease-in-out infinite;
}
@keyframes kenburns { from { transform: scale(1.08) translate(0, 0); } to { transform: scale(1.25) translate(-2%, -3%); } }
@keyframes drift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes shine { 0%, 60% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* Tarjeta */
.card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 24px; padding: 28px 24px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  animation: rise .6s ease-out both;
}

/* Título con bigote detrás */
.hero { position: relative; text-align: center; margin: 4px 0 18px; }
/* Título arriba y el bigote debajo, separado ~1 cm */
.hero.with-mustache { padding: 6px 0 4px; }
.mustache { display: block; width: 78%; max-width: 300px; margin: 38px auto 0; animation: wiggle 4s ease-in-out infinite; transform-origin: 50% 40%; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: translateY(-2px) rotate(-1.5deg); } }
h1 {
  position: relative; z-index: 1; margin: 0; font-family: Anton, Impact, 'Arial Black', sans-serif; font-weight: 400;
  text-transform: uppercase; font-size: clamp(38px, 11.5vw, 54px); line-height: 1; letter-spacing: 1px;
  color: #fff; -webkit-text-stroke: 2px #0d0d0d; paint-order: stroke fill;
  text-shadow: 0 3px 0 #0d0d0d, 0 8px 18px rgba(0,0,0,.35);
}
.sub { text-align: center; color: var(--muted); margin: -6px 0 18px; }

/* Campos */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
input, textarea, select {
  width: 100%; font: inherit; font-weight: 400; color: var(--ink); background: #fff;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 12px 13px; margin-top: 6px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.18); }
.phone { display: flex; gap: 8px; margin-top: 6px; }
.phone select, .phone input { margin-top: 0; }
.phone select { width: 118px; flex-shrink: 0; padding-right: 6px; }
button {
  width: 100%; font: inherit; font-weight: 700; font-size: 17px; letter-spacing: .3px; text-transform: uppercase;
  background: linear-gradient(135deg, #111317, #2b2f3a); color: #fff; border: none; padding: 15px; border-radius: 14px;
  cursor: pointer; margin-top: 6px; box-shadow: 0 10px 22px rgba(0,0,0,.28); animation: pulse 2.6s ease-in-out infinite;
}
button:active { transform: scale(.98); }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 22px rgba(0,0,0,.28); } 50% { box-shadow: 0 10px 30px rgba(79,70,229,.45); } }
.ok { text-align: center; font-size: 17px; color: #166534; margin: 6px 0 2px; line-height: 1.5; }
.hp { position: absolute; left: -9999px; }

@media (prefers-reduced-motion: reduce) { .bg, .shade::after, .mustache, button, .card { animation: none !important; } }

/* Agenda de citas */
.hidden { display: none !important; }
.b-info { text-align: center; color: var(--muted); font-size: 14px; margin: -8px 0 14px; }
.b-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x mandatory; }
.b-days button, .b-slots button {
  animation: none; box-shadow: none; text-transform: none; letter-spacing: 0; margin: 0;
  background: #fff; color: var(--ink); border: 1.5px solid var(--border);
}
.b-days button { flex: 0 0 64px; padding: 8px 4px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; }
.b-days button small { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: capitalize; }
.b-days button b { font-size: 20px; }
.b-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 16px; }
.b-slots button { font-size: 14px; padding: 10px 4px; border-radius: 12px; }
.b-days button.on, .b-slots button.on { background: #111317; color: #fff; border-color: #111317; }
.b-days button.on small { color: #c7c9d1; }
.b-when { text-align: center; font-weight: 700; margin: 4px 0 14px; padding: 10px; border-radius: 12px; background: rgba(79,70,229,.08); text-transform: capitalize; }
label small { font-weight: 400; color: var(--muted); }
.ok a { color: var(--primary); word-break: break-all; }
.b-when { text-transform: none; }

.check-line { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check-line input { width: auto; margin: 0; }
.consent { align-items: flex-start; font-weight: 500; font-size: 13px; color: var(--muted); line-height: 1.45; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--primary); }
.consent a, main.card a { color: var(--primary); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; border-top: 1px solid var(--border); margin-top: 26px; padding-top: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--border); padding: 8px 6px; vertical-align: top; }

