@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Inter:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #2dd4bf;
  --teal-dim: rgba(45, 212, 191, 0.15);
  --bg: #07070f;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.12);
  --text: #e8e4dc;
  --muted: rgba(232,228,220,0.45);
  --error: #f87171;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ── Desktop blocker ───────────────────────────────── */
.desktop-block {
  display: none;
  position: fixed; inset: 0;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  z-index: 9999;
}
.desktop-logo {
  margin-bottom: 20px;
  opacity: 0.9;
}
.desktop-block h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--teal);
  margin-bottom: 12px;
}
.desktop-block p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}
#qr-code {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  box-shadow: 0 0 40px rgba(45, 212, 191, 0.15);
}
#qr-code img, #qr-code canvas {
  display: block;
  border-radius: 8px;
}
.qr-url {
  display: block;
  margin-top: 16px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
  word-break: break-all;
  max-width: 260px;
  text-align: center;
}

@media (min-width: 769px) {
  .desktop-block { display: flex; }
  .form-wrapper   { display: none; }
}

/* ── Wrapper ───────────────────────────────────────── */
.form-wrapper {
  position: fixed; inset: 0;
  overflow: hidden;
}

/* ── Slides container ──────────────────────────────── */
.slides {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  width: 20%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ── Progress dots ─────────────────────────────────── */
.progress {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 100;
}
.progress-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, transform 0.3s;
}
.progress-dot.active {
  background: var(--teal);
  transform: scale(1.4);
}

/* ── Slide 0 — Portada ─────────────────────────────── */
.slide-portada {
  background:
    linear-gradient(180deg, rgba(7,7,15,0.3) 0%, rgba(7,7,15,0.85) 60%, var(--bg) 100%),
    linear-gradient(135deg, #0d1b2a 0%, #0a0a18 50%, #12041a 100%);
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 60px;
  text-align: center;
  padding-left: 32px;
  padding-right: 32px;
}

.slide-portada .eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.slide-portada h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 10vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 12px;
}
.slide-portada .subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 48px;
  line-height: 1.5;
}

/* Couple silhouette graphic */
.portada-graphic {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 58%;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(45,212,191,0.07) 0%, transparent 70%),
    linear-gradient(180deg, rgba(30,15,50,0.8) 0%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portada-graphic svg {
  opacity: 0.18;
  width: 200px;
}

/* ── Shared slide content area ─────────────────────── */
.slide-content {
  padding: 80px 28px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.slide-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.slide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}

/* ── Form fields ───────────────────────────────────── */
.field {
  margin-bottom: 28px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 300;
  padding: 8px 0;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.field input:focus {
  border-bottom-color: var(--teal);
}
.field input::placeholder { color: var(--border); }

.field-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 16px;
}

/* ── Interests grid ────────────────────────────────── */
.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.interest-tag {
  position: relative;
}
.interest-tag input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.interest-tag label {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.interest-tag input:checked + label {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}

/* ── Slide foto — layout pantalla completa ─────────── */
.slide-foto {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.foto-header {
  flex-shrink: 0;
  padding: 56px 28px 12px;
}
.foto-header .slide-label { margin-bottom: 4px; }
.foto-header .slide-title { margin-bottom: 6px; font-size: 26px; }
.foto-hint-text {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.foto-area {
  flex: 1;
  min-height: 0;
  position: relative;
  background: #000;
}

/* Cámara en vivo */
.camera-live {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.camera-live video {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.camera-hint {
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  padding: 8px 16px;
  background: #000;
}

/* Botón shutter */
.btn-shutter {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.shutter-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.8);
}
.shutter-dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.1s, opacity 0.1s;
}
.btn-shutter:active .shutter-dot {
  transform: scale(0.88);
  opacity: 0.8;
}

/* Preview foto capturada */
.foto-preview-area {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.foto-preview-area img {
  flex: 1;
  width: 100%;
  min-height: 0;
  object-fit: cover;
  display: block;
}
.btn-retry {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  border-radius: 100px;
  padding: 10px 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  cursor: pointer;
  margin: 10px auto;
  display: block;
}
.btn-retry:active { opacity: 0.6; }

/* Error cámara */
.camera-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  font-size: 14px;
  color: var(--error);
  line-height: 1.6;
  text-align: center;
}

/* Barra de acciones fija en el fondo */
.foto-actions {
  flex-shrink: 0;
  padding: 14px 28px 28px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

/* ── Buttons ───────────────────────────────────────── */
.btn-primary {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--teal);
  color: #07070f;
  border: none;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  margin-top: auto;
}
.btn-primary:active { transform: scale(0.98); opacity: 0.85; }

.btn-back {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn-back:active { opacity: 0.6; }

.btn-row {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding-top: 24px;
}


/* ── Validation errors ─────────────────────────────── */
.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 6px;
  display: none;
}
.field.invalid .field-error { display: block; }
.field.invalid input { border-bottom-color: var(--error); }


/* ── Decorative line ───────────────────────────────── */
.slide-deco {
  width: 32px;
  height: 1px;
  background: var(--teal);
  margin-bottom: 24px;
  opacity: 0.6;
}
