/* ============================================================
   CSS VARIABLES — Fluxtro brand palette extracted from assets
   Deep navy/dark base + violet dominant + cyan/orange accents
============================================================ */
:root {
  --bg-deep:       #0a0812;
  --bg-card:       #100e1a;
  --bg-elevated:   #16132a;
  --violet-deep:   #1e0a3c;
  --violet-mid:    #4a1a8a;
  --violet-bright: #7c3aed;
  --violet-glow:   #9d5cf6;
  --cyan:          #00e5ff;
  --cyan-dim:      #00b4cc;
  --orange:        #ff8c00;
  --orange-glow:   #ffb347;
  --magenta:       #d946ef;
  --white:         #f0ecff;
  --white-dim:     #a89ec0;
  --border:        rgba(124,58,237,0.25);
  --border-bright: rgba(124,58,237,0.6);
  --glow-violet:   rgba(124,58,237,0.15);
  --glow-cyan:     rgba(0,229,255,0.12);
}

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

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  background-color: var(--bg-deep);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  /* Subtle star-field noise texture */
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(74,26,138,0.4) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(0,229,255,0.05) 0%, transparent 50%);
}

/* ============================================================
   DECORATIVE STAR PARTICLES
============================================================ */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--white);
  border-radius: 50%;
  animation: twinkle var(--d, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: var(--op, 0.4);
}
@keyframes twinkle {
  0%, 100% { opacity: var(--op, 0.4); transform: scale(1); }
  50%       { opacity: 0.05; transform: scale(0.5); }
}

/* ============================================================
   LAYOUT
============================================================ */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAV
============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,8,18,0.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo span { color: var(--cyan); }
.logo-dot { color: var(--violet-glow); }
.nav-tag {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border-bright);
  padding: 4px 10px;
  border-radius: 20px;
}

/* ============================================================
   HERO
============================================================ */
.hero {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}
.hero-eyebrow::after {
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: none;
  max-width: 820px;
  padding-bottom: 0.3em;
  margin: 0 auto 4px;
  text-wrap: balance;
  /* Split color treatment */
  background: linear-gradient(135deg, var(--white) 0%, var(--violet-glow) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.hero-desc {
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--white-dim);
}
.hero-desc em {
  color: var(--violet-glow);
  font-style: normal;
  font-weight: 500;
}
.hero-promo {
  max-width: 600px;
  margin: -24px auto 32px;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  letter-spacing: 0.04em;
  color: var(--white);
}
.hero-promo strong { color: var(--cyan); font-weight: 700; }
.hero-promo s { color: var(--white-dim); }
.demo .hero-promo { display: none; }

/* CTA del hero: reutiliza .btn-submit, anula lo propio del formulario */
.btn-submit.hero-cta {
  display: inline-block;
  grid-column: auto;
  margin-top: 0;
  text-decoration: none;
}
@media (max-width: 480px) {
  .btn-submit.hero-cta {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: center;
  }
}

/* Glowing orb behind title */
.hero-orb {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(40px);
  animation: pulse-orb 6s ease-in-out infinite;
}
@keyframes pulse-orb {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* ============================================================
   MUESTRA DEL INFORME
============================================================ */
.muestra { padding: 24px 0 72px; }
.muestra-eyebrow { font-weight: 400; margin-bottom: 36px; }
.muestra-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}
.muestra-img { margin: 0; }
.muestra-img img { display: block; width: 100%; height: auto; }
.muestra-cita {
  margin: 0 0 24px;
  padding-left: 20px;
  border-left: 3px solid var(--violet-glow);
}
.muestra-cita p {
  font-family: 'Inter', sans-serif;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--white);
  margin: 0 0 10px;
}
.muestra-cita footer {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--white-dim);
}
.audio-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 999px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.audio-btn:hover { border-color: var(--violet-glow); box-shadow: 0 0 24px var(--glow-violet); }
.audio-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.audio-icon {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet-bright), var(--magenta));
  font-size: 0.75rem; line-height: 1;
  position: relative; z-index: 1;
}
.audio-label, .audio-dur { position: relative; z-index: 1; }
.audio-dur { font-family: 'Space Mono', monospace; font-weight: 400; font-size: 0.75rem; color: var(--white-dim); }
.audio-progress {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 0; background: var(--glow-violet);
  transition: width .2s linear; z-index: 0;
}
.audio-nota { margin: 10px 0 28px; font-size: 0.85rem; color: var(--white-dim); }
.muestra-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.muestra-lista li { position: relative; padding-left: 26px; color: var(--white-dim); line-height: 1.6; }
.muestra-lista li::before { content: '✦'; position: absolute; left: 0; color: var(--cyan); }

@media (max-width: 768px) {
  .muestra-grid { grid-template-columns: 1fr; gap: 28px; }
  .muestra-img { max-width: 440px; margin: 0 auto; }
  .muestra-cita p { font-size: 1.02rem; }
}

.muestra-cita footer {
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  background: none;
}
.audio-btn { white-space: nowrap; }
.audio-icon { flex-shrink: 0; }
.audio-dur { text-transform: none; }

@media (max-width: 480px) {
  .audio-btn { font-size: 0.92rem; letter-spacing: 0.04em; padding: 12px 18px; gap: 10px; }
  .audio-dur { display: none; }
}

/* ============================================================
   BLOQUE "TU 2027"
============================================================ */
.tu2027 { padding: 0 0 88px; text-align: center; }
.tu2027-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 32px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.tu2027 .section-desc { max-width: 560px; font-size: 1.05rem; }
.tu2027 .hero-promo { margin: 24px auto 28px; }
@media (max-width: 480px) {
  .tu2027 { padding-bottom: 64px; }
  .tu2027-card { padding: 32px 20px 28px; }
}

/* ============================================================
   FORM SECTION
============================================================ */
.form-section {
  margin-bottom: 100px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
}
.section-desc {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto;
}

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  /* Corner glow effects */
  box-shadow:
    0 0 60px rgba(124,58,237,0.08),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.form-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet-bright), var(--cyan), var(--violet-bright), transparent);
}
.form-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
  pointer-events: none;
}

/* Form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }

label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-dim);
}
label .required {
  color: var(--magenta);
  margin-left: 3px;
}
label .hint {
  color: var(--white-dim);
  font-size: 0.6rem;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 6px;
  opacity: 0.7;
}
.field-help {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--white-dim);
}
.email-sugerencia {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--cyan);
}
.email-sugerencia[hidden] { display: none; }
.email-sugerencia-btn {
  background: none; border: 0; padding: 0;
  color: var(--cyan); font: inherit; font-weight: 600;
  text-decoration: underline; cursor: pointer;
}

/* Shared input styles */
input, select, textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(168,158,192,0.4); }
input:focus, select:focus, textarea:focus {
  border-color: var(--violet-bright);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.1);
  background: var(--violet-deep);
}
input:hover, select:hover, textarea:hover { border-color: rgba(124,58,237,0.5); }

/* Género gramatical — pills de selección */
.genero-row {
  display: flex;
  gap: 10px;
}
.genero-row input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.genero-pill {
  flex: 1;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  user-select: none;
}
.genero-pill:hover { border-color: rgba(124,58,237,0.5); }
.genero-row input[type="radio"]:checked + .genero-pill {
  border-color: var(--violet-bright);
  background: var(--violet-deep);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15), 0 0 20px rgba(124,58,237,0.1);
}

/* Honeypot anti-spam — invisible para humanos, los bots lo llenan */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Success screen — estilos de marca */
.success-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.success-title .success-name { color: var(--violet-glow); }
.success-text {
  color: var(--white-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}
.success-text strong { color: var(--cyan); font-weight: 500; }
.success-promo {
  margin: 24px auto 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--violet-glow);
}
.pay-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 480px) {
  .pay-options { flex-direction: column; align-items: stretch; }
  .pay-options .btn-submit { text-align: center; }
}

/* Date / time native inputs — fix calendar icon color */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7) sepia(1) saturate(5) hue-rotate(220deg);
  cursor: pointer;
  opacity: 0.6;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Select wrapper with custom arrow */
.select-wrapper {
  position: relative;
}
.select-wrapper::after {
  content: '▾';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--violet-glow);
  pointer-events: none;
  font-size: 1rem;
}
select { padding-right: 36px; cursor: pointer; }
select option {
  background: var(--bg-elevated);
  color: var(--white);
}
select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Location group — three selects in a row */
.location-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* Loading spinner inside select */
.select-loading { animation: spin 0.8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Divider inside form */
.form-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0;
}
.form-divider span {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet-glow);
  white-space: nowrap;
}
.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Submit button */
.btn-submit {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--violet-bright) 0%, var(--magenta) 100%);
  border: none;
  border-radius: 12px;
  color: var(--white);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 30px rgba(124,58,237,0.4);
}
.btn-submit::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-submit:hover::before { left: 100%; }
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(124,58,237,0.55);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Privacy note */
.privacy-note {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--white-dim);
  opacity: 0.6;
  line-height: 1.5;
}
.privacy-note a { color: var(--violet-glow); text-decoration: none; }

/* ============================================================
   SUCCESS STATE
============================================================ */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 40px;
  animation: fadeIn 0.5s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.success-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  display: block;
  animation: pop 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.success-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.success-desc {
  color: var(--white-dim);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 auto;
}
.success-desc em { color: var(--cyan); font-style: normal; }

/* ============================================================
   FOOTER
============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}
.footer-logo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.footer-logo span { color: var(--cyan); }
.footer-note {
  font-size: 0.75rem;
  color: var(--white-dim);
  opacity: 0.4;
}
.footer-titular { margin-top: 6px; line-height: 1.6; }
.footer-titular span { white-space: nowrap; }
.footer-titular a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-titular a:hover { color: var(--cyan); }
.footer-link {
  margin-top: 16px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  display: inline-block;
}
.footer-link:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

/* ============================================================
   TYPEAHEAD (ciudad autocomplete)
============================================================ */
.typeahead-wrapper {
  position: relative;
}
.typeahead-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-bright);
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  list-style: none;
  padding: 4px 0;
  display: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.typeahead-list.open { display: block; }
.typeahead-list li {
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s;
}
.typeahead-list li:hover,
.typeahead-list li.active {
  background: var(--violet-deep);
  color: var(--cyan);
}
.typeahead-list li.no-results {
  color: var(--white-dim);
  cursor: default;
  font-style: italic;
}
.typeahead-list li.manual-entry {
  color: var(--violet-glow);
  border-top: 1px solid var(--border);
  margin-top: 4px;
  padding-top: 12px;
}

/* ============================================================
   CONFIRMACIÓN DE DATOS
============================================================ */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10,8,18,0.85);
  backdrop-filter: blur(4px);
}
.confirm-overlay[hidden] { display: none; }
body.confirm-open { overflow: hidden; }
.confirm-card {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: 24px;
  padding: 32px;
  outline: none;
}
.confirm-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
}
.confirm-lead {
  color: var(--white-dim);
  font-size: 0.9rem;
  margin: 8px 0 24px;
}
.confirm-row {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.confirm-row dt {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan-dim);
}
.confirm-row dd {
  color: var(--white);
  font-size: 1rem;
  margin-top: 4px;
  word-break: break-word;
}
.confirm-row--hora {
  background: var(--glow-cyan);
  border: 1px solid var(--cyan-dim);
  border-radius: 8px;
  padding: 14px;
  margin: 8px 0;
}
.confirm-hora {
  display: block;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--cyan);
}
.confirm-hora-note {
  display: block;
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 4px;
}
.confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.confirm-actions .btn-submit {
  margin-top: 0;
  flex: 1;
}
.contact-group { margin-bottom: 16px; }
textarea { resize: vertical; min-height: 120px; font-family: inherit; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn-secondary {
  flex: 0 0 auto;
  padding: 18px 32px;
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--white);
  border-radius: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--violet-glow); }
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-group.full { grid-column: 1; }
  .btn-submit, .privacy-note { grid-column: 1; }
  .location-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ENTRY ANIMATIONS
============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s ease forwards;
}
.fade-up:nth-child(2) { animation-delay: 0.1s; }
.fade-up:nth-child(3) { animation-delay: 0.2s; }
.fade-up:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Error state for inputs */
input.error, select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.15);
}
.error-msg {
  font-size: 0.72rem;
  color: #f87171;
  font-family: 'Space Mono', monospace;
  display: none;
}
.error-msg.visible { display: block; }

/* ============================================================
   CONFIRMACIÓN DE DATOS — MOBILE
============================================================ */
@media (max-width: 480px) {
  .confirm-card { padding: 24px 20px; }
  .confirm-actions { flex-direction: column-reverse; }
  .confirm-actions .btn-submit,
  .btn-secondary { width: 100%; }
  .confirm-actions .btn-submit,
  .confirm-actions .btn-secondary { padding: 18px 16px; }
  .genero-row { flex-wrap: wrap; }
  .genero-pill {
    flex: 1 1 auto;
    text-transform: none;
    letter-spacing: 0.02em;
  }
}

/* ============================================================
   PÁGINAS LEGALES (terminos.html, privacidad.html)
   Hoja clara de lectura (paleta del interior del PDF del informe)
============================================================ */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 32px auto 48px;
  padding: 48px 44px;
  background: #fbfafd;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #2a2438;
}
.legal-page,
.legal-page * {
  text-transform: none;
  letter-spacing: normal;
}
.legal-page h1,
.legal-page h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  color: #2a2438;
}
.legal-page h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 8px; }
.legal-page h2 { font-size: 1.3rem; line-height: 1.25; margin: 24px 0 8px; }
.legal-page h2::before { content: '✦ '; color: #9d5cf6; }
.legal-page .legal-meta {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #6b6478;
  margin: 0 0 28px;
}
.legal-page p { margin: 0 0 12px; }
.legal-page ul { margin: 0 0 12px; padding-left: 20px; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: #7c3aed; text-decoration: underline; }
.legal-page a:hover { color: #9d5cf6; }
@media (max-width: 480px) {
  .legal-page {
    margin: 16px 12px 32px;
    padding: 28px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .legal-page h1 { font-size: 1.6rem; }
  .legal-page h2 { font-size: 1.15rem; }
}

/* ============================================================
   CONSENTIMIENTO (modal de confirmación)
============================================================ */
.consent-block {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.5;
  color: var(--white-dim);
  cursor: pointer;
  padding: 4px 0;
}
.consent-item span {
  font-family: 'Inter', sans-serif;
  text-transform: none;
  letter-spacing: normal;
}
.consent-item input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border-bright);
  border-radius: 6px;
  background: var(--bg-elevated) center / 14px 14px no-repeat;
  cursor: pointer;
}
.consent-item input[type="checkbox"]:checked {
  background-color: var(--violet-bright);
  border-color: var(--violet-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.consent-item input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.consent-item a { color: var(--violet-glow); text-decoration: underline; }
.consent-item a:hover { color: var(--cyan); }

/* Separadores del footer */
.footer-links {
  margin-top: 16px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--white-dim);
}
.footer-links .footer-link { margin-top: 0; }

/* ============================================================
   SEÑALES DE CONFIANZA (2026-11-22)
============================================================ */
.trust-note {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--white-dim);
  text-align: center;
  margin: 10px 0 0;
}
.hero .trust-note { margin: -4px 0 18px; }
.tu2027 .trust-note { margin: -16px 0 22px; }
.success-page .trust-note { margin: 28px 0 10px; }

.privacy-top { margin: 0 0 4px; opacity: 0.85; }

.hora-tip { margin-top: 8px; font-size: 0.78rem; }
.hora-tip summary {
  cursor: pointer;
  color: var(--violet-glow);
  list-style: none;
}
.hora-tip summary::-webkit-details-marker { display: none; }
.hora-tip summary::after { content: " ▾"; }
.hora-tip[open] summary::after { content: " ▴"; }
.hora-tip .field-help { margin-top: 4px; }


/* ============================================================
   BLOG, PÁGINAS DE PRODUCTO Y NUEVO HOME (2026-12-02)
============================================================ */

/* Nav con enlaces */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--cyan); }
@media (max-width: 480px) {
  .nav-inner { padding: 14px 16px; }
  .logo { font-size: 1.3rem; }
  .nav-links { gap: 14px; }
  .nav-link { font-size: 0.95rem; letter-spacing: 0.04em; }
}

/* Lista de viñetas dentro de la presentación de un producto */
.producto-lista { max-width: 520px; margin: 40px auto 0; text-align: left; }

/* Home: productos */
.productos { padding: 0 0 80px; }
.productos-titulo { text-align: center; margin-bottom: 36px; }
.producto-destacado { text-align: center; }
.producto-destacado-titulo {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
}
.producto-destacado .section-desc { max-width: 560px; font-size: 1.05rem; margin-bottom: 28px; }
.productos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
.producto-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.producto-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 10px;
}
.producto-card p { color: var(--white-dim); line-height: 1.65; margin-bottom: 22px; flex: 1; }
.producto-btn { display: inline-block; padding: 12px 24px; font-size: 1rem; text-decoration: none; }
@media (max-width: 768px) {
  .productos-grid { grid-template-columns: 1fr; }
}

/* Home: cómo funciona */
.como { padding: 0 0 80px; }
.como-titulo { text-align: center; margin-bottom: 36px; }
.pasos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.paso { padding: 24px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.paso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid var(--violet-glow);
  border-radius: 50%;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  color: var(--cyan);
}
.paso h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--white); margin-bottom: 8px; }
.paso p { color: var(--white-dim); line-height: 1.65; }
@media (max-width: 768px) {
  .pasos { grid-template-columns: 1fr; }
}

/* Blog: tarjetas (home e índice) */
.blog-home { padding: 0 0 88px; }
.blog-home-titulo { text-align: center; margin-bottom: 36px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.blog-card h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--white); margin-bottom: 10px; }
.blog-card p { color: var(--white-dim); font-size: 0.92rem; line-height: 1.65; margin-bottom: 18px; flex: 1; }
.blog-leer {
  align-self: flex-start;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.blog-leer:hover { border-bottom-color: var(--cyan); }
.blog-todos { text-align: center; margin-top: 32px; }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* Blog: índice */
.blog-indice { padding: 72px 0 96px; }
.blog-cabecera { text-align: center; margin-bottom: 48px; }
.blog-cabecera .section-desc { max-width: 560px; font-size: 1.05rem; }
.blog-serie { margin-bottom: 48px; }
.blog-serie-titulo {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

/* Blog: artículo */
.articulo-page { padding: 56px 0 96px; }
.articulo { max-width: 720px; margin: 0 auto; }
.articulo-volver {
  display: inline-block;
  margin-bottom: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan-dim);
  text-decoration: none;
}
.articulo-volver:hover { color: var(--cyan); }
.articulo h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 28px;
  text-wrap: balance;
}
.articulo h2 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; color: var(--white); margin: 44px 0 14px; }
.articulo h3 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--white); margin: 30px 0 10px; }
.articulo p { color: var(--white-dim); font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; }
.articulo strong { color: var(--white); font-weight: 600; }
.articulo ul { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.articulo li { position: relative; padding-left: 26px; color: var(--white-dim); font-size: 1.05rem; line-height: 1.75; }
.articulo li::before { content: '✦'; position: absolute; left: 0; color: var(--cyan); }
.articulo a:not(.btn-submit):not(.articulo-volver) { color: var(--cyan); text-underline-offset: 3px; }
.articulo .articulo-cta { margin: 36px 0 0; text-align: center; }
@media (max-width: 480px) {
  .articulo-page { padding: 36px 0 72px; }
  .articulo p, .articulo li { font-size: 1rem; }
  .articulo .articulo-cta .btn-submit.hero-cta { display: block; max-width: none; }
}
