@import url("tokens.css");

:root {
  /* Dorado Legatium — metallic champagne (shared with style.css / app Theme) */
  --gold-100: #faf3e0;
  --gold-200: #e8d194;
  --gold-300: #d4af37;
  --gold-400: #c5a059;
  --gold-500: #b8860b;
  --gold-600: #9a7209;
  --gold-700: #8b6914;
  --gold-gradient: linear-gradient(135deg, #e8d194 0%, #c5a059 42%, #d4af37 68%, #b8860b 100%);
  --gold-gradient-text: linear-gradient(135deg, #e8d194, #c5a059 40%, #b8860b);
  --gold-glow: 0 8px 28px rgba(197, 160, 89, 0.22);
  --surface: #ffffff;
  --surface-alt: #faf7f2;
  --bg: #faf7f2;
  --text: #1e1b2e;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: rgba(197, 160, 89, 0.15);
  --border-light: rgba(0,0,0,0.05);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(197, 160, 89, 0.08);
  --shadow-lg: 0 10px 40px rgba(197, 160, 89, 0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px) + 12px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10000;
  background: #1e1b2e;
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--gold-400); outline-offset: 2px; }

@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;
  }
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .parallax-glow { display: none; }
  .scroll-indicator { animation: none !important; }
}
input, textarea, select { font-size: 16px; }
button, .btn-gold, .btn-outline { touch-action: manipulation; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--gold-400); border-radius: 10px; }

.parallax-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(197,160,89,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(212,175,55,0.03) 0%, transparent 50%),
    radial-gradient(ellipse 30% 40% at 20% 80%, rgba(197,160,89,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.parallax-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  transition: transform 0.1s ease-out;
  will-change: transform;
}
.parallax-glow.g1 { width: 500px; height: 500px; background: rgba(197,160,89,0.05); top: 10%; left: -10%; }
.parallax-glow.g2 { width: 400px; height: 400px; background: rgba(212,175,55,0.03); bottom: 20%; right: -5%; }
.parallax-glow.g3 { width: 300px; height: 300px; background: rgba(197,160,89,0.04); top: 50%; left: 40%; }

.fixed-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  padding: 0 5%;
  padding: 0 calc(5% + env(safe-area-inset-right, 0px)) 0 calc(5% + env(safe-area-inset-left, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  height: 72px;
  height: calc(72px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.fixed-nav.scrolled {
  background: rgba(255,255,255,0.88);
  border-bottom-color: rgba(197,160,89,0.35);
  box-shadow: 0 4px 30px rgba(197,160,89,0.08);
}

/* Reading progress under nav */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--gold-gradient);
  border-radius: 0 2px 0 0;
  pointer-events: none;
  transition: width 0.08s linear;
}

.nav-anchor {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 24px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-anchor:hover { background: rgba(197,160,89,0.06); color: var(--text); }
.nav-anchor.is-active {
  color: var(--gold-600);
  background: rgba(197,160,89,0.1);
  font-weight: 600;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 2px;
  color: var(--text);
  text-decoration: none;
}
.nav-logo .badge {
  background: rgba(197,160,89,0.1);
  color: var(--gold-600);
  font-size: 0.55rem;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  border: 1px solid var(--gold-400);
}

.nav-links { display: flex; align-items: center; gap: 4px; min-width: 0; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 24px;
  transition: all 0.25s ease;
}
.nav-links a:hover { background: rgba(197,160,89,0.06); color: var(--text); }
.nav-separator {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 10px;
  flex-shrink: 0;
}
.nav-links .nav-action {
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 24px;
  border: 1.5px solid transparent;
  transition: all 0.25s ease;
}
.nav-links .nav-action.login {
  background: var(--gold-gradient);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(197,160,89,0.25);
  border: none;
}
.nav-links .nav-action.login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(197,160,89,0.35);
}
.nav-links .nav-action.register {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff !important;
  font-weight: 700;
  padding: 10px 24px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.25);
  border: none;
}
.nav-links .nav-action.register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.35);
}
/* Portal de autorizados — soft distinct CTA (not gold, not green register) */
.nav-links .nav-action.portal {
  border: 1.5px solid rgba(91, 122, 158, 0.35);
  color: #3d4f66;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(61, 79, 102, 0.08);
  padding: 10px 18px;
}
.nav-links .nav-action.portal:hover {
  background: linear-gradient(180deg, #eef3f9 0%, #dce6f2 100%);
  border-color: rgba(91, 122, 158, 0.55);
  color: #2a3a4f;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(61, 79, 102, 0.14);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}
.nav-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  top: calc(72px + env(safe-area-inset-top, 0px));
  left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 16px 5% 24px;
  padding: 16px calc(5% + env(safe-area-inset-right, 0px)) 24px calc(5% + env(safe-area-inset-left, 0px));
  z-index: 999;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-10px);
  max-height: calc(100dvh - 72px - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  transition: all 0.3s ease;
}
.mobile-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.2s;
}
.mobile-menu .menu-divider {
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-align: center;
  padding: 8px 16px 4px;
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
}
.mobile-menu a:hover { background: rgba(197,160,89,0.06); color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }
.reveal-delay-5 { transition-delay: 0.6s; }

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Same horizontal inset left & right */
  padding-top: 120px;
  padding-bottom: 110px;
  padding-left: max(5vw, env(safe-area-inset-left, 0px));
  padding-right: max(5vw, env(safe-area-inset-right, 0px));
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}
/*
 * Desktop: text LEFT (wider) | iPhone RIGHT
 * Equal outer margins via .hero padding; copy uses most of the left column.
 */
.hero-layout {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  /* More room for copy; phone keeps a stable column */
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.85fr);
  gap: clamp(32px, 4.5vw, 64px);
  align-items: center;
  box-sizing: border-box;
}
.hero-copy {
  width: 100%;
  max-width: none; /* use full left column — no tight pocket */
  min-width: 0;
  margin: 0;
  padding-right: clamp(0px, 2vw, 12px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: stretch;
  gap: 0;
}
.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  justify-self: center;
}
.phone-frame {
  position: relative;
  width: min(248px, 28vw, 70vw);
  aspect-ratio: 9 / 19;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2438 0%, #1a1624 50%, #0f0d14 100%);
  box-shadow:
    0 30px 60px rgba(30, 27, 46, 0.28),
    0 0 0 1px rgba(197,160,89,0.25),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  /* Room under the soft shadow so the caption doesn’t feel glued */
  margin-bottom: 4px;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18px;
  background: #0f0d14;
  border-radius: 0 0 12px 12px;
  z-index: 2;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background: #faf7f2;
  display: block;
}
.phone-shine {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 36px;
  background: linear-gradient(125deg, rgba(255,255,255,0.14) 0%, transparent 40%, transparent 60%, rgba(197,160,89,0.08) 100%);
}
.hero-media-caption {
  margin: 0;
  padding: 0 12px;
  max-width: 240px;
  font-size: 0.84rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  font-weight: 500;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(197,160,89,0.08);
  border: 1px solid rgba(197,160,89,0.28);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--gold-600);
  margin: 0 0 18px;
  letter-spacing: 0.04em;
  text-transform: none;
}
.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
/* Headline stays BIG; body/CTA/hint secondary */
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4.8vw, 3.4rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 14em; /* breathe across the wider column */
  color: var(--text);
  font-optical-sizing: auto;
  text-wrap: balance;
  text-align: left;
}
.hero-copy h1 {
  max-width: 14em;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}
.hero-badge {
  margin-left: 0;
  margin-right: 0;
}
.hero-copy .hero-price-hint {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-top: 22px;
}
.hero h1 .gold {
  font-weight: 600;
  background: linear-gradient(135deg, #c9a962 0%, #c5a059 40%, #a8893e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 0 rgba(197, 160, 89, 0.12));
}
/* Body lead: smaller than H1, wider measure, more air */
.hero-copy > p.hero-lead,
.hero-copy > p:not(.hero-price-hint) {
  font-size: clamp(0.92rem, 1.2vw, 1.02rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 46ch; /* comfortable reading width in the wider column */
  width: 100%;
  margin: 0 0 22px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: left;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}
/* Hero CTAs slightly smaller than before so H1 stays the star */
.hero-actions .btn-gold,
.hero-actions .btn-outline {
  font-size: 0.95rem !important;
  min-height: 46px;
  padding: 0.7rem 1.25rem !important;
  border-radius: 12px;
}
.btn-gold {
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 600;
  padding: 16px 38px;
  border-radius: 30px;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(197,160,89,0.3);
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-gold:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 40px rgba(197,160,89,0.4); filter: brightness(1.1); }
.btn-gold:active { transform: translateY(1px) scale(0.98); box-shadow: 0 4px 10px rgba(197,160,89,0.3); transition: all 0.1s; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 15px 34px;
  border-radius: 30px;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
  display: inline-block;
}
.btn-outline:hover { background: rgba(197,160,89,0.04); border-color: var(--gold-400); transform: translateY(-3px); }
.btn-outline:active { transform: translateY(1px) scale(0.98); transition: all 0.1s; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float-down 2.5s ease-in-out infinite;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.scroll-indicator.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.scroll-indicator:hover { color: var(--gold-600); }
.scroll-indicator .line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--text-light), transparent);
}
@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  color: var(--gold-600);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  pointer-events: none;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
  transform: translateY(-2px);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

/* Sticky mobile CTA */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 880;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(250,247,242,0.92) 28%, rgba(255,255,255,0.98) 100%);
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta-btn {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border: none;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #1a1208;
  background: var(--gold-gradient);
  box-shadow: 0 10px 28px rgba(197,160,89,0.35);
  cursor: pointer;
  touch-action: manipulation;
}
.sticky-cta-btn:active { transform: scale(0.98); }

@media (max-width: 900px) {
  .sticky-cta { display: block; }
  body.has-sticky-cta .back-to-top {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* Hide glows on mobile by default (less GPU) — JS may also strip them */
@media (max-width: 768px), (pointer: coarse) {
  .parallax-glow { display: none !important; }
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 5%;
}
.section-inner.narrow { max-width: 900px; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--gold-600);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--gold-400);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.12;
  color: var(--text);
}
.section-title .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
  margin: 0 0 52px;
}

/* Breathing room: intro text vs feature cards (Qué es Legatium) */
#legado .section-desc {
  margin-bottom: 0;
  max-width: 720px;
}
#legado > .reveal {
  margin-bottom: 48px;
}
#legado .features-grid {
  margin-top: 12px;
  gap: 24px;
}
@media (min-width: 769px) {
  #legado > .reveal {
    margin-bottom: 64px;
  }
  #legado .features-grid {
    margin-top: 8px;
    gap: 28px;
  }
}

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

.divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}
.divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.features-grid > * {
  flex: 1 1 300px;
  max-width: 420px;
}
.feature-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 38px 30px;
  transition: all 0.5s cubic-bezier(0.16,1,0.3,1);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--border);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 54px; height: 54px;
  background: rgba(197,160,89,0.06);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 22px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--gold-600);
}
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
}
.feature-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--text);
  text-align: center;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  text-align: center;
}

.bento-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.bento-showcase.reverse { direction: rtl; }
.bento-showcase.reverse > * { direction: ltr; }

.bento-visual {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border-radius: 28px;
  padding: 40px;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}
.bento-visual .glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.bento-visual .glow.g1 { background: rgba(197,160,89,0.06); top: -50px; right: -50px; }
.bento-visual .glow.g2 { background: rgba(212,175,55,0.04); bottom: -50px; left: -50px; }

.bento-text { padding: 10px 0; }
.bento-text .tag {
  display: inline-block;
  background: rgba(197,160,89,0.06);
  color: var(--gold-600);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
}
.bento-text h3 { font-size: 1.6rem; margin: 0 0 14px; color: var(--text); font-weight: 600; }
.bento-text h3 .gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bento-text p { font-size: 0.98rem; color: var(--text-muted); line-height: 1.7; margin: 0 0 20px; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tag {
  background: var(--surface-alt);
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--surface);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.step:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.step-num {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--gold-gradient); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step h4 { margin: 0 0 4px; font-size: 1.05rem; color: var(--text); }
.step p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  border-radius: 28px;
  padding: 44px 34px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all 0.4s ease;
}
.price-card:hover { border-color: var(--border); box-shadow: var(--shadow-md); }
.price-card.premium {
  background: linear-gradient(160deg, var(--surface), var(--surface-alt));
  border-color: var(--gold-400);
  box-shadow: 0 20px 60px rgba(197,160,89,0.08), inset 0 1px 0 rgba(197,160,89,0.08);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-gradient); color: #fff;
  padding: 6px 20px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px;
}
.price-header { border-bottom: 1px solid var(--border-light); padding-bottom: 24px; margin-bottom: 24px; }
.price-header h3 { margin: 0; font-size: 1.3rem; color: var(--text); }
.price { font-size: 2.8rem; font-family: var(--font-heading); font-weight: 600; margin: 10px 0 0; color: var(--text); }
.price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.features-list { list-style: none; padding: 0; margin: 0 0 32px; flex: 1; }
.features-list li {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px; font-size: 0.92rem;
  color: var(--text-muted);
}
.features-list li::before {
  content: '✓'; color: #fff; font-weight: 800;
  background: var(--gold-gradient); width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0;
}

.price-card .btn-gold, .price-card .btn-outline { text-align: center; display: block; box-sizing: border-box; }
.price-card .btn-outline { border-color: var(--border); color: var(--text); }
.price-card .btn-outline:hover { background: rgba(197,160,89,0.04); }

.plan-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30,27,46,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.3s ease;
}
.plan-modal-overlay.active { display: flex; }
.plan-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 40px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUpModal 0.4s cubic-bezier(0.16,1,0.3,1);
}
.plan-modal-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
  line-height: 1;
}
.plan-modal-close:hover { background: rgba(197,160,89,0.06); color: var(--text); }
.plan-modal-close:focus-visible,
.plan-option:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 3px;
}
.plan-modal h2 { font-size: 1.6rem; margin: 0 0 8px; color: var(--text); }
.plan-modal p { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 28px; line-height: 1.6; }
.plan-options { display: flex; flex-direction: column; gap: 14px; }
.plan-option {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--border-light);
  background: var(--surface-alt);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}
.plan-option:hover { border-color: var(--gold-400); background: rgba(197,160,89,0.04); transform: translateY(-2px); }
.plan-option.plan-option-premium { border-color: var(--gold-400); background: rgba(197,160,89,0.04); }
.plan-option-header { display: flex; align-items: center; justify-content: space-between; }
.plan-option-info { display: flex; flex-direction: column; gap: 2px; }
.plan-option-name { font-weight: 700; font-size: 1.05rem; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-option-price { font-size: 0.85rem; color: var(--text-muted); }
.plan-option-arrow { color: var(--gold-500); font-size: 1.3rem; flex-shrink: 0; }
.popular-badge-sm { background: var(--gold-gradient); color: #fff; padding: 2px 10px; border-radius: 12px; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; }
.plan-option-features { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid var(--border-light); display: flex; flex-direction: column; gap: 6px; }
.plan-option-features li { font-size: 0.82rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.plan-option-features li::before { content: '✓'; color: #fff; font-weight: 800; background: var(--gold-gradient); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; flex-shrink: 0; }

@keyframes fadeInModal { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUpModal { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.storage-mini {
  background: var(--surface-alt);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
}
.storage-mini .storage-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-muted);
}
.storage-mini .storage-header .gcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(66,133,244,0.06);
  color: #4285f4;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.7rem;
  font-weight: 600;
}
.storage-mini .storage-track {
  height: 6px;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  overflow: hidden;
}
.storage-mini .storage-fill {
  height: 100%;
  width: 67%;
  background: var(--gold-gradient);
  border-radius: 10px;
}
.storage-mini .storage-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.faq-grid {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover { border-color: var(--border); }
.faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q .faq-arrow {
  transition: transform 0.3s ease;
  color: var(--gold-500);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.faq-item.open .faq-q .faq-arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.3s ease, opacity 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 500px;
  opacity: 1;
  padding: 0 24px 20px;
}

.info-highlight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
}
.info-highlight h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
  color: var(--gold-600);
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-highlight p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px max(5%, env(safe-area-inset-left, 0px)) 36px max(5%, env(safe-area-inset-right, 0px));
}
/* Contact form is first; brand/legal/access sit below */
.footer-contact-panel {
  max-width: 720px; /* compact card — not full-bleed huge */
  margin: 0 auto 36px;
}
.footer-grid,
.footer-grid-meta {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px 40px;
  align-items: start;
}
.footer-grid-meta {
  padding-top: 8px;
  border-top: 1px solid var(--border-light, #e7e5e4);
}
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 320px;
  margin: 0;
}
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: all 0.2s;
}
.footer-col a:hover { color: var(--gold-600); }

/* —— Contact panel (compact centered card) —— */
.footer-contact-card {
  background: #fff;
  border: 1.5px solid rgba(197, 160, 89, 0.28);
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 24px rgba(30, 27, 46, 0.05);
  box-sizing: border-box;
}
.footer-contact-head {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(197, 160, 89, 0.16);
}
.footer-contact-title {
  margin: 0 0 4px;
  font-family: var(--font-heading, Outfit, system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text, #1e1b2e);
  letter-spacing: -0.02em;
}
.footer-contact-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-muted, #57534e);
  max-width: 36em;
}
.footer-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  position: relative;
}
.fc-row {
  display: grid;
  gap: 10px;
  width: 100%;
}
.fc-row-2 {
  grid-template-columns: 1fr 1fr;
}
.fc-row-submit {
  grid-template-columns: minmax(120px, 160px) 1fr;
  align-items: end;
  gap: 10px 14px;
  margin-top: 2px;
}
.fc-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  min-width: 0;
}
.fc-full { width: 100%; }
.fc-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #57534e;
  letter-spacing: 0.01em;
}
.footer-contact-form input,
.footer-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #e7e5e4;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #1e1b2e;
  min-height: 42px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
  color: #a8a29e;
}
.footer-contact-form input:hover,
.footer-contact-form textarea:hover {
  border-color: rgba(197, 160, 89, 0.45);
}
.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
  outline: none;
  border-color: #c5a059;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.16);
}
.footer-contact-form textarea {
  resize: vertical;
  min-height: 72px;
  max-height: 160px;
  line-height: 1.45;
}
.fc-captcha input {
  max-width: 100%;
}
.fc-submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  border: 1.5px solid rgba(184, 134, 11, 0.4);
  background: linear-gradient(135deg, #e2c37d, #c5a059 48%, #b8860b);
  color: #1a1208;
  box-shadow: 0 4px 14px rgba(197, 160, 89, 0.22);
  transition: filter 0.15s, box-shadow 0.15s, transform 0.15s;
}
.footer-contact-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.32);
}
.footer-contact-btn:active {
  transform: translateY(1px);
}
.footer-contact-note {
  margin: 0;
  font-size: 0.82rem;
  color: #78716c;
  line-height: 1.4;
  text-align: center;
}
.footer-contact-note a {
  color: #8b6914;
  font-weight: 600;
  text-decoration: none;
}
.footer-contact-note a:hover {
  text-decoration: underline;
}
.footer-contact-flash {
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 14px;
  line-height: 1.45;
}
.footer-contact-flash.is-ok {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.footer-contact-flash.is-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
/* Honeypot: fully invisible (no "Leave blank" leak) */
.footer-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .fc-row-2,
  .fc-row-submit {
    grid-template-columns: 1fr;
  }
  .fc-submit-wrap .footer-contact-btn {
    min-height: 50px;
  }
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: var(--gold-600); }

/* Ultrawide / large monitors */
@media (min-width: 1920px) {
  .section-inner { max-width: 1600px; }
  .hero h1 { font-size: clamp(2.4rem, 3.2vw, 3.75rem); font-weight: 500; }
  .features-grid, .pricing-grid { max-width: 1480px; margin-left: auto; margin-right: auto; }
  .fixed-nav { padding-left: calc(8% + env(safe-area-inset-left, 0px)); padding-right: calc(8% + env(safe-area-inset-right, 0px)); }
}
@media (min-width: 1440px) and (max-width: 1919px) {
  .section-inner { max-width: 1200px; }
}

/* i18n: buttons/labels may grow (FR/PT) — prevent overflow */
.btn-gold, .btn-outline, .nav-action {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-links a { max-width: 14rem; overflow: hidden; text-overflow: ellipsis; }
.feature-card h3, .price-card h3, .section-title {
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (max-width: 1024px) {
  .bento-showcase { grid-template-columns: 1fr; gap: 28px; }
  .bento-showcase.reverse { direction: ltr; }
  .bento-visual { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  /* iPad: allow full portal layout (mobile block only <768) */
  .section-inner { padding-left: max(5%, env(safe-area-inset-left)); padding-right: max(5%, env(safe-area-inset-right)); }
}

/* The full header needs more room than a 13-inch laptop provides. Move the
   section links into the existing menu before labels begin to wrap or clip. */
@media (max-width: 1360px) {
  .nav-links .nav-anchor { display: none; }
  .nav-separator { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu.active { display: flex; }
}
/* Tablet / narrow: stack, keep equal side padding, center content */
@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: 36px;
    justify-items: center;
    text-align: center;
  }
  .hero-copy {
    max-width: 36rem;
    width: 100%;
    padding-right: 0;
    align-items: center;
    text-align: center;
    justify-self: center;
  }
  .hero-media {
    justify-self: center;
  }
  .hero h1,
  .hero-copy h1 {
    max-width: 14em;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy > p:not(.hero-price-hint),
  .hero-copy > p.hero-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: min(46ch, 100%);
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-copy .hero-price-hint {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .phone-frame { width: min(220px, 58vw); }
}
@media (max-width: 768px) {
  .nav-links a:not(.nav-action) { display: none; }
  .nav-links .nav-anchor { display: none; }
  .nav-links .lg-lang-container { display: none; }
  .nav-separator { display: none; }
  .nav-mobile-toggle { display: flex; }
  .mobile-menu.active { display: flex; }
  .section-inner { padding: 72px 5%; }
  .hero { padding: 110px 5% 100px; }
  .hero h1 { font-size: clamp(1.95rem, 7vw, 2.75rem); font-weight: 500; }
  .features-grid > * { flex: 1 1 100%; max-width: 100%; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.premium { transform: none; }
  .bento-showcase { gap: 24px; }
  .bento-text { padding: 0; }
  .bento-text h3 { font-size: 1.3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .plan-modal { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .nav-links .nav-action { display: none; }
}

@media (max-width: 480px) {
  .hero { padding: 120px 5% 80px; }
  .hero h1 { font-size: 1.85rem; font-weight: 500; line-height: 1.22; }
  .hero p { font-size: 0.95rem; }
  .feature-card { padding: 28px 22px; }
  .bento-visual { padding: 22px; }
  .price-card { padding: 32px 24px; }
  .plan-option { padding: 16px 18px; }
  .section-title { font-size: 1.7rem; }
  .step { padding: 16px; }
  .plan-modal { padding: 28px 20px; }
  .plan-option-features li { font-size: 0.78rem; }
}
@media (max-width: 380px) {
  .nav-action { padding: 8px 14px !important; font-size: 0.8rem !important; }
  .plan-modal { padding: 24px 16px; }
  .plan-option { padding: 14px 14px; }
  .plan-option-name { font-size: 0.95rem; }
}

/* ==========================================================================
   Utility & Clean Code Classes (Replaces inline styles)
   ========================================================================== */
.w-800 { max-width: 800px; margin: 0 auto; }
.w-900 { max-width: 900px; margin: 0 auto; }
.w-1000 { max-width: 1000px; margin: 0 auto; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.text-primary { color: var(--text); }
.text-sm { font-size: 0.82rem; }
.text-muted { color: var(--text-muted); }

.nav-mobile-login { background: var(--gold-gradient); color: #fff !important; font-weight: 600; text-align: center; border: none; }
.nav-mobile-register { background: linear-gradient(135deg, #059669, #10b981); color: #fff !important; font-weight: 600; text-align: center; border: none; }
.nav-mobile-portal {
  border: 1.5px solid rgba(91, 122, 158, 0.35) !important;
  color: #3d4f66 !important;
  text-align: center;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(61, 79, 102, 0.08);
}
.nav-mobile-anchor {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  background: rgba(197,160,89,0.06);
}
.nav-mobile-lang-wrapper { display: flex; justify-content: center; padding-bottom: 16px; }

/* Focus rings for keyboard users */
.btn-gold:focus-visible,
.btn-outline:focus-visible,
.nav-action:focus-visible,
.nav-anchor:focus-visible,
.faq-q:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

.bento-content { position: relative; z-index: 1; }
.bento-content.text-center { text-align: center; }
.bento-icon { font-size: 2.8rem; margin-bottom: 18px; }
.bento-icon.lg { font-size: 4rem; }

.tech-tag.stripe { background: rgba(99,91,255,0.06); color: #5b4dff; }
.tech-tag.gold { background: rgba(197,160,89,0.06); color: var(--gold-600); }
.tech-tags.center { justify-content: center; }

/* Features showcase — flex so incomplete last rows stay centered */
.features-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
/* Más aire entre el titular de la sección y la rejilla de tarjetas */
#funcionalidades > .reveal {
  margin-bottom: 12px;
}
#funcionalidades .section-desc {
  margin-bottom: 0;
}
#funcionalidades .features-showcase {
  margin-top: 56px;
}
@media (max-width: 560px) {
  #funcionalidades .features-showcase {
    margin-top: 40px;
  }
}
.feature-showcase-card {
  background: var(--surface, #fff);
  border: 1px solid rgba(197,160,89,0.18);
  border-radius: 20px;
  padding: 28px 22px 24px;
  text-align: center;
  box-shadow: 0 8px 28px rgba(30,27,46,0.04);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s, border-color 0.25s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  min-height: 240px;
  /* 3 per row on desktop; last incomplete row stays centered via flex parent */
  flex: 0 1 calc(33.333% - 14px);
  max-width: 340px;
  min-width: 260px;
  width: 100%;
  box-sizing: border-box;
}
.feature-showcase-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #e8d194, #c5a059, #b8860b);
  opacity: 0.85;
}
.feature-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197,160,89,0.4);
  box-shadow: 0 16px 40px rgba(197,160,89,0.12);
}
.feature-showcase-card .fs-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: rgba(197,160,89,0.12);
  margin: 0 auto 16px;
  flex-shrink: 0;
}
.feature-showcase-card h3 {
  font-family: var(--font-heading, Outfit, sans-serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text, #1e1b2e);
  margin: 0 0 10px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}
.feature-showcase-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #6b7280);
  line-height: 1.55;
  text-align: center;
  flex: 1 1 auto;
  width: 100%;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}
/* Chip centrado bajo el texto (no “pegado” a la izquierda) */
.feature-showcase-card .fs-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px auto 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-600, #c5a059);
  background: rgba(197,160,89,0.1);
  border: 1px solid rgba(197,160,89,0.25);
  padding: 5px 12px;
  border-radius: 999px;
  flex-shrink: 0;
  align-self: center;
}
@media (max-width: 900px) {
  .feature-showcase-card {
    flex: 0 1 calc(50% - 12px);
    max-width: 380px;
  }
}
@media (max-width: 560px) {
  .features-showcase { max-width: 420px; }
  .feature-showcase-card {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;
  }
  .feature-showcase-card p { max-width: none; }
}
.btn-portal-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  color: #3d4f66;
  background: linear-gradient(180deg, #f4f7fb 0%, #e8eef6 100%);
  border: 1.5px solid rgba(91, 122, 158, 0.35);
  box-shadow: 0 2px 10px rgba(61, 79, 102, 0.08);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn-portal-soft:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 122, 158, 0.55);
  box-shadow: 0 8px 22px rgba(61, 79, 102, 0.14);
  color: #2a3a4f;
}

.stripe-mini-card { background: var(--surface-alt); border-radius: 16px; padding: 24px; border: 1px solid var(--border-light); }
.stripe-mini-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.stripe-mini-logo { width: 44px; height: 44px; background: linear-gradient(135deg, #635bff, #7baaf7); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.2rem; }
.stripe-mini-brands { display: flex; gap: 10px; flex-wrap: wrap; }
.stripe-mini-brand { background: var(--surface); padding: 4px 12px; border-radius: 12px; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border-light); }

.steps-compact { gap: 10px; }
.step-compact { padding: 14px; gap: 14px; }
.step-num.sm { width: 30px; height: 30px; min-width: 30px; font-size: 0.8rem; }
.btn-outline.sm { display: inline-block; font-size: 0.9rem; padding: 10px 24px; }

.lia-chat-preview { background: var(--surface-alt); border-radius: 16px; padding: 20px; margin-top: 20px; border: 1px solid var(--border-light); text-align: left; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.lia-features-grid { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 24px; }
.lia-feature-card { background: var(--surface-alt); border-radius: 14px; padding: 14px 18px; flex: 1; min-width: 150px; border: 1px solid var(--border-light); }
.lia-feature-icon { font-size: 1.3rem; margin-bottom: 6px; }
.lia-feature-title { font-size: 0.85rem; color: var(--text); display: block; font-weight: bold; }
.lia-feature-desc { font-size: 0.8rem; color: var(--text-muted); margin: 4px 0 0; }

/* Mobile app gate: styles inline in includes/mobile_block.php (hard by default) */

/* Authorized persons path cards */
.auth-path-grid article h4,
.auth-path-grid article p,
.auth-path-grid article li {
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* responsive content safety — never hide main content */
img, video, iframe { max-width: 100%; height: auto; }
.section-inner, .hero, .footer-grid { box-sizing: border-box; }
@media (max-width: 768px) {
  .auth-path-grid { grid-template-columns: 1fr !important; }
  .features-showcase { grid-template-columns: 1fr !important; }
  .hero-actions { flex-wrap: wrap; }
  .hero-actions .btn-gold, .hero-actions .btn-outline { width: 100%; justify-content: center; }
}
@media (min-width: 1600px) {
  .section-inner { max-width: 1280px; margin-left: auto; margin-right: auto; }
}

/* —— Landing clarity pack (light only, multi-age) —— */
html[data-theme="light"],
html { color-scheme: light; }
body.landing-light-only,
body.landing-page {
  background: var(--bg, #faf7f2) !important;
  color: var(--text, #1e1b2e) !important;
}

/* Hero hierarchy: H1 dominant; body & meta secondary */
.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
}
.hero-copy > p:not(.hero-price-hint) {
  font-size: clamp(0.92rem, 1.35vw, 1.02rem);
  line-height: 1.7;
  color: var(--text-muted, #57534e);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero-price-hint {
  margin: 24px 0 0;
  padding: 9px 14px;
  max-width: 36em;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #78716c);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(197, 160, 89, 0.28);
  border-radius: 10px;
  box-shadow: none;
  display: inline-block;
  box-sizing: border-box;
}
.hero-actions + .hero-price-hint {
  margin-top: 28px;
}
.hero-actions .btn-gold,
.hero-actions .btn-outline {
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
}
.btn-outline {
  border: 1.5px solid rgba(30, 27, 46, 0.22) !important;
  background: #fff !important;
  color: #1e1b2e !important;
}
.btn-gold {
  border: 1.5px solid rgba(184, 134, 11, 0.35);
}

/* 3-box concept after hero */
.idx-concept {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 28px auto 36px;
  text-align: left;
}
.idx-concept-card {
  background: #fff;
  border: 1.5px solid rgba(197, 160, 89, 0.28);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 6px 20px rgba(197, 160, 89, 0.08);
  position: relative;
}
.idx-concept-n {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #e8d194, #c5a059);
  color: #1a1208;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}
.idx-concept-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  color: var(--text, #1e1b2e);
  line-height: 1.25;
}
.idx-concept-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted, #57534e);
  line-height: 1.5;
}
.idx-soft-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 28px 0 0;
}
.idx-soft-cta .btn-gold,
.idx-soft-cta .btn-outline {
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-weight: 700;
}
.idx-benefits { margin-top: 8px; }

/* More features: collapsed by default, not 13 cards at once */
.idx-more-features {
  max-width: 1100px;
  margin: 28px auto 0;
  text-align: left;
  border: 1.5px solid rgba(197, 160, 89, 0.22);
  border-radius: 16px;
  background: #fffefb;
  padding: 4px 8px;
}
.idx-more-features > summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #8b6914;
  text-align: center;
  border-radius: 12px;
}
.idx-more-features > summary::-webkit-details-marker { display: none; }
.idx-more-features > summary::after {
  content: ' ▾';
  opacity: 0.7;
}
.idx-more-features[open] > summary::after { content: ' ▴'; }
.idx-more-features .features-showcase-more {
  margin: 8px 0 16px;
  padding: 0 8px 8px;
}
.idx-more-features .feature-showcase-card {
  min-height: 200px;
}

/* Section titles: more air, less wall of text */
.section-desc {
  line-height: 1.65 !important;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem) !important;
  color: var(--text-muted, #57534e) !important;
}
.feature-card p,
.feature-showcase-card p {
  color: #57534e !important;
  line-height: 1.55 !important;
}
.feature-card h3,
.feature-showcase-card h3 {
  color: #1e1b2e !important;
}

/* Prevent overflow from long tech tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tech-tag {
  max-width: 100%;
  overflow-wrap: anywhere;
}

/* iOS: 16px prevents input zoom */
.footer-contact-form input,
.footer-contact-form textarea {
  font-size: 16px !important;
}

/* FAQ: more readable open answer */
.faq-a {
  line-height: 1.6;
  font-size: 0.95rem;
  color: #44403c;
  text-align: left;
}
.faq-q {
  text-align: left;
  font-size: 1rem;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .idx-concept { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: 1.85rem; }
  .idx-concept-card { padding: 16px; }
  .feature-showcase-card {
    min-width: 0 !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
  .nav-links .nav-anchor { display: none; } /* already mobile menu — avoid double clutter if any leak */
}

/* Never invert to dark via OS preference on landing */
@media (prefers-color-scheme: dark) {
  body.landing-page {
    background: #faf7f2 !important;
    color: #1e1b2e !important;
  }
}
