/* Azahara Tattoo Studio — estilos compartidos
   Paleta e identidad tomadas del diseño original (Claude Design). */

:root {
  --az-white: #FFFFFF;
  --az-dark: #231F20;
  --az-red: #D4111B;
  --az-red-dark: #A90D15;
  --az-cream: #F4EDDE;
}

html, body { margin: 0; padding: 0; background: var(--az-white); }
body {
  font-family: 'Archivo', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--az-dark);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: var(--az-red); text-decoration: none; }
a:hover { color: var(--az-red-dark); }

@keyframes azTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Marca "flor" — tres barras rotadas 60°/-60°, reutilizada en todo el sitio.
   El tamaño y el color se fijan por instancia con estilo inline (width/height/color). */
.az-flor { position: relative; display: inline-block; flex: none; color: var(--az-red); }
.az-flor i {
  position: absolute; left: 0; right: 0; top: 39%; bottom: 39%;
  display: block; background: currentColor; border-radius: 1px;
}
.az-flor i:nth-child(2) { transform: rotate(60deg); }
.az-flor i:nth-child(3) { transform: rotate(-60deg); }
.az-flor.az-flor--round i { border-radius: 6px; }
.az-flor.az-flor--sharp i { border-radius: 0; }

/* Botón CTA principal (fondo blanco, sombra dura) */
.btn-cta {
  font-family: 'Archivo Black', sans-serif;
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--az-red);
  background: var(--az-white);
  padding: 18px clamp(24px, 4vw, 52px);
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  box-shadow: 8px 8px 0 var(--az-dark);
  border: 0;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-cta:hover { color: var(--az-red); transform: translate(2px, 2px); box-shadow: 5px 5px 0 var(--az-dark); }

/* Botón "Pedir cita" de la cabecera */
.btn-header {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--az-white);
  background: var(--az-red);
  padding: 12px 18px;
  box-shadow: 4px 4px 0 var(--az-dark);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.btn-header:hover { color: var(--az-white); }

/* Botón de cambio de idioma (ES / GL) */
.btn-lang {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--az-dark);
  background: var(--az-white);
  border: 3px solid var(--az-dark);
  padding: 9px 13px;
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.btn-lang:hover { background: var(--az-cream); }

.cita-header { position: relative; }
.cita-header .btn-lang {
  position: absolute; top: clamp(18px, 4vw, 34px); right: clamp(16px, 5vw, 40px);
  min-height: auto; padding: 7px 11px; font-size: 12px;
}

/* ---------- Página de cita (formulario multi-paso) ---------- */

.cita-body { background: var(--az-white); color: var(--az-dark); min-height: 100vh; overflow-x: clip; }

.cita-header {
  background: var(--az-white);
  padding: clamp(18px, 4vw, 34px) clamp(16px, 5vw, 40px) clamp(12px, 2vw, 18px);
  border-bottom: 3px solid var(--az-dark);
}
.cita-header a { display: flex; align-items: flex-start; color: var(--az-dark); }
.cita-header .logo { font-family: 'Bowlby One', cursive; font-size: clamp(42px, 12vw, 72px); line-height: 0.88; letter-spacing: -0.015em; }
.cita-header .sub { font-family: 'Archivo Black', sans-serif; color: var(--az-red); font-size: clamp(14px, 3.4vw, 20px); letter-spacing: 0.05em; text-transform: uppercase; margin-top: 4px; }

.cita-intro { background: var(--az-red); padding: clamp(24px, 6vw, 40px) clamp(16px, 5vw, 40px); }
.cita-intro p { font-family: 'Archivo', sans-serif; font-weight: 800; color: var(--az-cream); font-size: clamp(18px, 5vw, 26px); line-height: 1.25; margin: 0; max-width: 24ch; }

.cita-main { padding: clamp(20px, 5vw, 40px) clamp(14px, 4vw, 40px) 64px; max-width: 640px; margin: 0 auto; }

.steps-indicator { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.step-item { display: flex; align-items: center; gap: 8px; flex: 1; opacity: .28; }
.step-item .step-label { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--az-dark); }
.step-item.is-active { opacity: 1; }
.step-item.is-active .step-label { color: var(--az-red); }
.step-item .az-flor { color: var(--az-red); }

.cita-window { border: 3px solid var(--az-dark); background: var(--az-white); box-shadow: 7px 7px 0 var(--az-dark); }
.window-bar {
  background: var(--az-dark); color: var(--az-white);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
}
.window-bar span:first-child { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 11px; height: 11px; background: var(--az-white); display: block; }
.window-dots i:last-child { background: var(--az-red); }

.window-body { padding: clamp(18px, 5vw, 28px); }
.step-panel { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field legend, .field-label {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--az-dark);
}
.field fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.field legend { padding: 0; margin-bottom: 4px; }
.field .hint { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.4; color: var(--az-dark); margin: 0; }

input, select, textarea {
  font-family: 'Archivo', Helvetica, Arial, sans-serif; font-weight: 600; font-size: 16px;
  color: var(--az-dark); background: var(--az-white); border: 2px solid var(--az-dark);
  border-radius: 0; padding: 13px 12px; width: 100%; min-height: 48px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--az-red); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 6px var(--az-red); }
textarea { min-height: 96px; resize: vertical; }

.field-error {
  display: flex; align-items: center; gap: 7px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px; color: var(--az-red);
}
.field-error .az-flor { color: var(--az-red); }

.pill-group { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-group.pill-group--stack { flex-direction: column; }
.pill {
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px;
  min-height: 48px; padding: 12px 18px; border: 2px solid var(--az-dark); border-radius: 0;
  cursor: pointer; background: var(--az-white); color: var(--az-dark);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pill.pill--wide { flex: 1; text-align: left; text-transform: none; letter-spacing: normal; padding: 13px 16px; }
.pill.is-selected { background: var(--az-dark); color: var(--az-white); }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; padding: 26px 16px; border: 2px dashed var(--az-dark);
  background: var(--az-white); cursor: pointer; min-height: 120px;
}
.dropzone.is-dragging { background: var(--az-cream); }
.dropzone .dz-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 16px; color: var(--az-dark); }
.dropzone .dz-hint { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 14px; color: var(--az-dark); }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; min-height: 0; border: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.window-nav { border-top: 3px solid var(--az-dark); padding: clamp(14px, 4vw, 20px); display: flex; flex-direction: column; gap: 12px; }
.btn-block-primary {
  width: 100%; min-height: 56px; font-family: 'Archivo Black', sans-serif; font-size: 17px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--az-white); background: var(--az-red);
  border: 0; border-radius: 0; cursor: pointer; box-shadow: 6px 6px 0 var(--az-dark);
}
.btn-block-primary:disabled { opacity: .6; cursor: wait; }
.btn-block-secondary {
  width: 100%; min-height: 48px; font-family: 'Archivo', sans-serif; font-weight: 800; font-size: 15px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--az-dark); background: var(--az-white);
  border: 2px solid var(--az-dark); border-radius: 0; cursor: pointer;
}

.required-note { font-family: 'Archivo', sans-serif; font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--az-dark); margin: 22px 0 0; text-align: center; }

.submit-error {
  display: flex; align-items: center; gap: 7px; margin-top: 4px;
  font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 14px; color: var(--az-red);
}

.done-screen { position: relative; text-align: center; padding: clamp(20px, 6vw, 40px) 0 clamp(10px, 3vw, 20px); }
.done-avatar { display: flex; justify-content: center; margin-bottom: 22px; }
.done-avatar > span {
  position: relative; width: 132px; height: 132px; border-radius: 50%; background: var(--az-red-dark);
  display: flex; align-items: center; justify-content: center; transform: rotate(-8deg);
  font-family: 'Bowlby One', cursive; color: var(--az-dark); font-size: 46px; line-height: 1;
}
.done-screen h2 { font-family: 'Archivo Black', sans-serif; color: var(--az-red); font-size: clamp(30px, 8vw, 48px); line-height: 1; margin: 0; text-transform: uppercase; }
.done-screen p { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--az-dark); font-size: 18px; line-height: 1.4; margin: 16px auto 0; max-width: 26ch; }
.done-screen .ig { font-size: 17px; margin: 22px 0 0; }

.cita-footer { background: var(--az-dark); padding: 26px clamp(16px, 5vw, 40px); display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center; }
.cita-footer .logo-row { display: flex; align-items: flex-start; }
.cita-footer .logo { font-family: 'Bowlby One', cursive; font-size: 34px; color: var(--az-white); line-height: 0.88; }
.cita-footer .ig { font-family: 'Archivo', sans-serif; font-weight: 700; color: var(--az-white); font-size: 15px; }
.cita-footer .location { font-family: 'Archivo', sans-serif; font-weight: 600; color: var(--az-cream); font-size: 14px; }

.zlabs-credit {
  background: var(--az-dark); text-align: center; padding: 10px 16px;
  font-family: 'JetBrains Mono', monospace; font-weight: 400; font-size: 11px; letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55); line-height: 1.6;
}
.zlabs-credit .heart { color: var(--az-red); }
.zlabs-credit a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
.zlabs-credit a:hover { color: var(--az-white); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
