/* ====================================================
   Cardify · Landing Page
   Match brand book: Space Grotesk + Manrope + JetBrains Mono
   Paleta: ink, paper, coral, blue, amber, sage
   ==================================================== */

:root {
  --ink: #1C1B19;
  --paper: #F5F3EE;
  --paper-deep: #E8E5DE;
  --surface: #FFFFFF;
  --muted: #76746C;
  --whisper: #A7A59D;
  --line: rgba(28, 27, 25, 0.12);
  --line-soft: rgba(28, 27, 25, 0.06);
  --coral: #E17464;
  --coral-deep: #C95B4B;
  --blue: #4D8DBA;
  --amber: #F3B33F;
  --sage: #81B95D;

  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(28, 27, 25, 0.04), 0 2px 8px rgba(28, 27, 25, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 27, 25, 0.06), 0 12px 32px rgba(28, 27, 25, 0.08);
  --shadow-lg: 0 12px 40px rgba(28, 27, 25, 0.10), 0 32px 80px rgba(28, 27, 25, 0.12);
}

* { box-sizing: border-box; }
*::selection { background: var(--ink); color: var(--paper); }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper-deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body { min-height: 100vh; line-height: 1.5; }

a { color: var(--ink); text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: 0.7; }

img, svg { display: block; max-width: 100%; }

/* ============ TIPOGRAFÍA ============ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p { font-size: 16px; line-height: 1.6; color: var(--ink); margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 28px;
}

.lede {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 580px;
}
.lede-center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 32px;
}
.section-title em {
  font-style: normal;
  color: var(--coral);
}
.section-title-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ============ WORDMARK ============ */

.wm {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: 22px;
}
.wm .d { color: var(--coral); }
.wm-lg { font-size: 32px; }

/* ============ CONTAINER ============ */

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ============ NAV ============ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 16px 32px;
}

.nav-brand { flex: 0 0 auto; }

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  margin-left: 16px;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: -0.005em;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }

@media (max-width: 760px) {
  .nav { padding: 14px 20px; gap: 16px; }
  .nav-links { display: none; }
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { opacity: 1; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 14px rgba(28, 27, 25, 0.18);
}
.btn-primary:hover { background: #2a2926; box-shadow: 0 6px 20px rgba(28, 27, 25, 0.24); }

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 13px;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink); }

.btn-lg {
  padding: 18px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-block { width: 100%; }

.arrow-down { transition: transform .3s ease; display: inline-block; }
.btn-ghost:hover .arrow-down { transform: translateY(3px); }

/* ============ HERO ============ */

.hero {
  background: var(--paper);
  padding: 80px 24px 120px;
  border-bottom: 0.5px solid var(--line);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(225, 116, 100, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(42px, 6vw, 84px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 28px;
  font-weight: 700;
}
.hero-title em {
  font-style: normal;
  color: var(--coral);
}

.hero-copy .lede { margin-bottom: 36px; }

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.trust-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--sage);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(129, 185, 93, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(129, 185, 93, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(129, 185, 93, 0.06); }
}

/* ============ HERO VISUAL — PHONE + WALLET PASS ============ */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  perspective: 1200px;
}

.phone-frame {
  position: relative;
  width: 320px;
  height: 640px;
  background: var(--ink);
  border-radius: 48px;
  padding: 14px;
  box-shadow:
    0 0 0 2px rgba(28, 27, 25, 0.4),
    var(--shadow-lg);
  transform: rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 26px;
  background: #000;
  border-radius: 18px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #2a2826 0%, #15140f 100%);
  border-radius: 36px;
  padding: 50px 14px 14px;
  position: relative;
  overflow: hidden;
}

.wallet-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px 14px;
  letter-spacing: -0.01em;
}

/* The pkpass card itself */
.pkpass {
  border-radius: 16px;
  padding: 18px 18px 14px;
  font-family: var(--font-body);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.coral-pass {
  background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
}

.pass-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.pass-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.pass-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.pass-balance {
  text-align: right;
}

.pass-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
}

.pass-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  display: block;
}
.pass-value-sm { font-size: 13px; }

.pass-stamps {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 14px;
}

.stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}
.stamp.filled {
  background: #fff;
  border-color: #fff;
  box-shadow: inset 0 0 0 2px var(--coral);
}

.pass-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.pass-qr {
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.phone-shadow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(28, 27, 25, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
  z-index: -1;
}

@media (max-width: 900px) {
  .hero { padding: 56px 20px 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .phone-frame { transform: none; margin: 0 auto; }
}

/* ============ DOLOR ============ */

.pain {
  background: var(--paper-deep);
  padding: 120px 24px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.pain-card {
  background: var(--paper);
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--line);
  position: relative;
  overflow: hidden;
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--coral);
  opacity: 0.6;
}

.pain-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--whisper);
  font-weight: 600;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.pain-card p { color: var(--muted); font-size: 15px; }

@media (max-width: 820px) {
  .pain { padding: 80px 20px; }
  .pain-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ SOLUCIÓN ============ */

.solution {
  background: var(--paper);
  padding: 120px 24px;
  text-align: center;
}

.solution .eyebrow,
.solution .lede,
.solution .section-title {
  text-align: center;
}

.solution-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  text-align: left;
}

.pillar { padding: 0 8px; }

.pillar-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-icon.coral { background: rgba(225, 116, 100, 0.14); color: var(--coral-deep); }
.pillar-icon.amber { background: rgba(243, 179, 63, 0.18); color: #B98318; }
.pillar-icon.sage { background: rgba(129, 185, 93, 0.18); color: #4F8230; }

.pillar h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.pillar p { color: var(--muted); font-size: 15px; }
.pillar p em { font-style: normal; color: var(--coral); font-weight: 600; }

@media (max-width: 820px) {
  .solution { padding: 80px 20px; }
  .solution-pillars { grid-template-columns: 1fr; gap: 28px; }
}

/* ============ TRES FORMAS (modes) ============ */

.modes {
  background: var(--paper);
  padding: 120px 24px;
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}

.modes .lede {
  margin-top: -8px;
  margin-bottom: 64px;
  max-width: 720px;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.mode-card {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--line);
  background: var(--paper-deep);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.mode-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.mode-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
}
.mode-coral::before { background: var(--coral); }
.mode-blue::before { background: var(--blue); }
.mode-amber::before { background: var(--amber); }

.mode-coral:hover { border-color: var(--coral); }
.mode-blue:hover { border-color: var(--blue); }
.mode-amber:hover { border-color: var(--amber); }

.mode-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.mode-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.mode-coral .mode-tag { color: var(--coral-deep); }
.mode-blue .mode-tag { color: #2F6A8E; }
.mode-amber .mode-tag { color: #B98318; }

.mode-pop {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
}

.mode-card h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.mode-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
  flex: 0 0 auto;
}

/* Mini-pass mockup (smaller, simpler than the hero pass) */
.mini-pass {
  border-radius: 14px;
  padding: 16px 16px 14px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}
.mini-coral { background: linear-gradient(180deg, var(--coral) 0%, var(--coral-deep) 100%); }
.mini-blue { background: linear-gradient(180deg, var(--blue) 0%, #2F6A8E 100%); }
.mini-amber { background: linear-gradient(180deg, var(--amber) 0%, #B98318 100%); color: #fff; }

.mini-pass-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
}
.mini-logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
}
.mini-biz {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
}

.mini-pass-headline {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}
.mini-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}
.mini-big {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}
.mini-of {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 2px;
  font-weight: 600;
}
.mini-big-sm { font-size: 22px; }

.mini-stamps {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 8px;
}
.mini-dot {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.2px solid rgba(255, 255, 255, 0.5);
  background: transparent;
}
.mini-dot.filled {
  background: #fff;
  border-color: #fff;
  box-shadow: inset 0 0 0 1.5px var(--coral);
}

.mini-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 12px 0 10px;
  overflow: hidden;
}
.mini-bar-fill {
  height: 100%;
  background: #fff;
  border-radius: 999px;
}

.mini-membership {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.mini-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 9px;
  border-radius: 999px;
}
.mini-status {
  color: #B7E59A;
  font-size: 14px;
  margin-left: auto;
  text-shadow: 0 0 8px rgba(183, 229, 154, 0.7);
}

.mini-foot {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mode-uses {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
  border-top: 0.5px solid var(--line);
}
.mode-uses li {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 9px;
  border: 0.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
}

.modes-note {
  margin-top: 56px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.modes-note strong { color: var(--ink); font-weight: 700; }

@media (max-width: 980px) {
  .modes-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 820px) {
  .modes { padding: 80px 20px; }
}

/* ============ CÓMO FUNCIONA ============ */

.how {
  background: var(--ink);
  color: var(--paper);
  padding: 120px 24px;
}
.how .eyebrow { color: rgba(245, 243, 238, 0.6); }
.how .section-title { color: var(--paper); }
.how .section-title em { color: var(--coral); }

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  max-width: 980px;
}

.step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 36px;
  padding: 36px 0;
  border-top: 0.5px solid rgba(245, 243, 238, 0.14);
  align-items: start;
}
.step:last-child { border-bottom: 0.5px solid rgba(245, 243, 238, 0.14); }

.step-num {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: -0.04em;
  line-height: 0.85;
}

.step-body h3 {
  font-size: 28px;
  margin-bottom: 14px;
  letter-spacing: -0.025em;
  color: var(--paper);
}

.step-body p {
  color: rgba(245, 243, 238, 0.78);
  font-size: 17px;
  line-height: 1.55;
  max-width: 620px;
  margin-bottom: 16px;
}
.step-body p em {
  font-style: normal;
  color: var(--coral);
  font-weight: 600;
}

.step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.55);
  font-weight: 600;
  padding: 6px 14px;
  border: 0.5px solid rgba(245, 243, 238, 0.18);
  border-radius: 999px;
}

@media (max-width: 760px) {
  .how { padding: 80px 20px; }
  .step { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .step-num { font-size: 48px; }
  .step-body h3 { font-size: 22px; }
}

/* ============ PARA QUIÉN ============ */

.for-who {
  background: var(--paper);
  padding: 120px 24px;
}

.for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.for-card {
  background: var(--paper-deep);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 0.5px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.for-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.for-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.for-card h4 {
  font-size: 19px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.for-card p { color: var(--muted); font-size: 14px; }

@media (max-width: 820px) {
  .for-who { padding: 80px 20px; }
  .for-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 540px) {
  .for-grid { grid-template-columns: 1fr; }
}

/* ============ FEATURES ============ */

.features {
  background: var(--paper-deep);
  padding: 120px 24px;
}

.feature-bucket {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 0.5px solid var(--line);
}
.feature-bucket:first-of-type { margin-top: 56px; }

.bucket-title {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.bucket-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--coral);
  color: var(--paper);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.feature-list li {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-radius: 3px;
  transform: rotate(45deg);
}

.feature-list li strong {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

@media (max-width: 820px) {
  .features { padding: 80px 20px; }
  .feature-list { grid-template-columns: 1fr; gap: 14px; }
}

/* ============ PRICING ============ */

.pricing {
  background: var(--paper);
  padding: 120px 24px;
}

.price-card {
  max-width: 540px;
  margin: 64px auto 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(225, 116, 100, 0.32) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.price-card-top {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 0.5px solid rgba(245, 243, 238, 0.14);
}

.price-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 24px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.price-currency {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--paper);
}
.price-number {
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
}
.price-period {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: rgba(245, 243, 238, 0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 4px;
}

.price-sub {
  color: rgba(245, 243, 238, 0.65);
  font-size: 14px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  position: relative;
  z-index: 1;
}
.price-features li {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(245, 243, 238, 0.92);
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  position: relative;
}
.check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-55%, -65%) rotate(45deg);
  width: 4px;
  height: 8px;
  border: solid var(--paper);
  border-width: 0 2px 2px 0;
}

.price-card .btn-primary {
  background: var(--coral);
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.price-card .btn-primary:hover { background: var(--coral-deep); }

.price-fineprint {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(245, 243, 238, 0.55);
  text-align: center;
  position: relative;
  z-index: 1;
}
.price-fineprint em { font-style: normal; color: rgba(245, 243, 238, 0.85); }

.price-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 80px;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.vs-card {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 0.5px solid var(--line);
}
.vs-card-old {
  background: var(--paper-deep);
  opacity: 0.7;
}
.vs-card-old ul li { text-decoration: line-through; color: var(--muted); }

.vs-card-new {
  background: var(--paper-deep);
  border: 1.5px solid var(--coral);
  box-shadow: var(--shadow-md);
}

.vs-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}
.vs-card-new .vs-label { color: var(--coral); }

.vs-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.vs-card ul li {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  padding: 6px 0;
  color: var(--ink);
}

.vs-arrow {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--coral);
  font-weight: 700;
}

@media (max-width: 820px) {
  .pricing { padding: 80px 20px; }
  .price-card { padding: 36px 28px; }
  .price-number { font-size: 72px; }
  .price-vs { grid-template-columns: 1fr; gap: 16px; margin-top: 56px; }
  .vs-arrow { transform: rotate(90deg); }
}

/* ============ FAQ ============ */

.faq {
  background: var(--paper-deep);
  padding: 120px 24px;
}

.faq-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-top: 0.5px solid var(--line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 0.5px solid var(--line); }

.faq-item summary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 26px 40px 26px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--coral); }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--muted);
  transition: transform .25s ease, color .2s ease;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
  color: var(--coral);
}

.faq-item p {
  padding: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}
.faq-item p em { font-style: normal; color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .faq { padding: 80px 20px; }
  .faq-item summary { font-size: 17px; padding: 22px 36px 22px 0; }
}

/* ============ CTA FINAL ============ */

.cta-final {
  background: var(--paper);
  padding: 100px 24px 120px;
}

.cta-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--coral);
  color: var(--ink);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-card::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(28, 27, 25, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-card .eyebrow {
  color: rgba(28, 27, 25, 0.7);
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  color: var(--ink);
}
.cta-title em {
  font-style: normal;
  color: var(--paper);
}

.cta-card .lede {
  margin: 0 auto 36px;
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-card .btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.cta-card .btn-ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: transparent;
  color: var(--ink);
}
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.85); }

.cta-fine {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(28, 27, 25, 0.65);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .cta-final { padding: 60px 20px 80px; }
  .cta-card { padding: 56px 28px; border-radius: var(--radius-lg); }
}

/* ============ FOOTER ============ */

.footer {
  background: var(--ink);
  color: rgba(245, 243, 238, 0.72);
  padding: 80px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand .wm { color: var(--paper); margin-bottom: 14px; display: inline-flex; }
.footer-brand p {
  color: rgba(245, 243, 238, 0.6);
  font-size: 14px;
  max-width: 280px;
  margin-top: 16px;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.5);
  font-weight: 600;
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  color: rgba(245, 243, 238, 0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 5px 0;
}
.footer-col a:hover { color: var(--coral); opacity: 1; }

.footer-note {
  display: block;
  color: rgba(245, 243, 238, 0.45);
  font-size: 12px;
  margin-top: 6px;
  font-style: italic;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 0.5px solid rgba(245, 243, 238, 0.12);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.45);
  font-weight: 600;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ LEGAL PAGES (terms.html, privacy.html) ============ */

.legal {
  background: var(--paper);
  min-height: 100vh;
  padding: 56px 24px 120px;
}

.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 56px;
}
.legal-back:hover { color: var(--coral); opacity: 1; }

.legal h1 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 12px;
}

.legal .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--whisper);
  font-weight: 600;
  margin-bottom: 48px;
}

.legal h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 48px 0 14px;
  line-height: 1.2;
}

.legal h3 {
  font-size: 17px;
  letter-spacing: -0.015em;
  margin: 28px 0 10px;
  font-weight: 700;
  color: var(--ink);
}

.legal p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 16px;
  max-width: 100%;
}

.legal ul, .legal ol {
  padding-left: 22px;
  margin: 0 0 20px;
  color: var(--ink);
}
.legal li {
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}

.legal strong { font-weight: 700; }
.legal em { font-style: italic; }
.legal a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--coral-deep); opacity: 1; }

.legal-footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.legal-footer a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

/* ============ ACCESIBILIDAD ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}
