/**
 * Traducción directa del bloque <style> del artifact de React
 * (PlataformaDemo.jsx). Los valores en px/rem replican exactamente las
 * utilidades Tailwind que usaba el JSX (gap-7 = 28px, px-6 py-14 =
 * 24px/56px, etc.) — no son números inventados.
 */

body {
  background: radial-gradient(ellipse 120% 60% at 50% -10%, #FFFDF8, var(--color-cream) 55%);
  font-family: var(--font-sans);
  color: var(--color-ink);
}

.display-font { font-family: var(--font-display); }

.icon { display: inline-block; vertical-align: middle; }
.icon-spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 20px 32px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(253, 252, 250, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
}

.app-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-line) 20%, var(--color-gold-line) 80%, transparent);
  animation: goldDraw 1s cubic-bezier(.4,0,.2,1) both;
  transform-origin: left;
}
@keyframes goldDraw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.app-header__brand { display: flex; align-items: center; gap: 12px; }

.logo-badge {
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(155deg, #0E4278 0%, var(--color-navy) 55%, #00142B 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.2) inset, 0 6px 14px -6px rgba(0,32,62,0.5);
}
.logo-badge__mark { font-weight: 700; font-size: 14px; color: #F5F1E8; }

.corner-mark { position: absolute; background: var(--color-gold-line); }

.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--color-gold);
  line-height: 1;
}

.app-header__title { font-size: 18px; margin-top: 4px; line-height: 1; color: var(--color-navy); }

.chip-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--color-subtle);
  background: none; border: none; cursor: pointer;
  transition: color .2s ease;
  padding: 0;
}
.chip-btn:hover { color: var(--color-navy); }

/* ---------- Layout / view containers ---------- */
.view { display: none; }
.view.is-active { display: block; }

.fade-in { animation: fadeUp .35s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.form-view {
  max-width: 512px;
  margin-inline: auto;
  padding: 40px 24px 56px;
}

.form-view__title {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.125rem);
  line-height: 1.2;
  font-style: italic;
  color: var(--color-navy);
}

.title-flourish {
  display: inline-block;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-line));
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 6px;
}

.form-view__subtitle {
  font-size: 13px;
  color: var(--color-subtle);
  margin: 8px 0 40px;
  padding-left: 40px;
}

.form-fields { display: flex; flex-direction: column; gap: 22px; }

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.field-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--color-subtle); text-transform: uppercase;
  margin-bottom: 8px; display: block;
}

.field-input, .field-select {
  width: 100%;
  border: none; border-bottom: 1px solid var(--color-hairline);
  border-radius: 0;
  padding: 8px 2px;
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: transparent;
  color: var(--color-ink);
  transition: border-color .2s;
}
.field-input:focus, .field-select:focus { border-color: var(--color-gold-line); }

.field-select { appearance: none; cursor: pointer; }
.field-with-icon { position: relative; }
.field-with-icon .icon { position: absolute; right: 2px; top: 10px; color: var(--color-corner-faint); pointer-events: none; }

.cta-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer;
  border-radius: 999px;
  padding: 16px 0;
  margin-top: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: white;
  background: linear-gradient(180deg, #0A3866, var(--color-navy) 55%, #001830);
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 10px 24px -10px rgba(0,32,62,0.5);
  transition: transform .15s ease, box-shadow .2s ease;
}
.cta-btn:hover { box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 28px -10px rgba(0,32,62,0.6); transform: translateY(-1px); }
.cta-btn:active { transform: translateY(0) scale(.99); }
.cta-btn:disabled { opacity: .6; cursor: default; transform: none; }

.field-note {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--color-corner-faint);
  margin-top: 4px;
}

/* ---------- Segmented (píldora de cristal deslizante) ---------- */
.segmented {
  position: relative;
  display: grid;
  background: rgba(0, 32, 62, 0.045);
  border-radius: 999px;
  padding: 4px;
}

.segmented__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.55));
  backdrop-filter: blur(6px) saturate(160%);
  -webkit-backdrop-filter: blur(6px) saturate(160%);
  border: 1px solid rgba(203,172,108,0.45);
  box-shadow: 0 1px 3px rgba(0,32,62,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .4s cubic-bezier(.34,1.35,.4,1);
  pointer-events: none;
}

.segmented__option {
  position: relative;
  z-index: 10;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-subtle);
  padding: 6px 12px;
  border-radius: 999px;
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: color .2s ease;
}
.segmented__option.is-active { color: var(--color-navy); font-weight: 600; }

@media (max-width: 767px) {
  .app-header { padding: 14px 20px 12px; }
  .form-view { padding: 40px 20px; }
  .field-row { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 420px) {
  .form-view__subtitle { padding-left: 0; }
}
