/* =========================================================
   InversorBOE — Estilos compartidos
   ========================================================= */

:root {
  --navy:        #0f2147;
  --navy-light:  #1a3461;
  --navy-mid:    #162b50;
  --gold:        #d4970a;
  --gold-light:  #f0b429;
  --gold-pale:   #fef3c7;
  --white:       #ffffff;
  --gray-50:     #f8fafc;
  --gray-100:    #f1f5f9;
  --gray-200:    #e2e8f0;
  --gray-400:    #94a3b8;
  --gray-500:    #64748b;
  --gray-700:    #334155;
  --gray-900:    #0f172a;
  --text:        #1e293b;
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.18);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 33, 71, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
  flex-shrink: 0;
}
.nav-logo .logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}
.nav-logo .logo-text span { color: var(--gold-light); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--white); text-decoration: none; }
.btn-nav {
  padding: 8px 20px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 700;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn-nav:hover { background: var(--gold-light); text-decoration: none; transform: translateY(-1px); }
.btn-nav.disabled {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.5);
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   Hero — Landing
   ========================================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, #0a1628 0%, #0f2147 50%, #12294e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212,151,10,.12) 0%, transparent 65%);
  pointer-events: none;
}
.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(212,151,10,.15);
  border: 1px solid rgba(212,151,10,.35);
  border-radius: 40px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.badge-soon::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 780px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold-light);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.65);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .1s, box-shadow .2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,151,10,.35);
  text-decoration: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  text-decoration: none;
}
.hero-note {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  margin-top: 4px;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: -1px;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* =========================================================
   How it works
   ========================================================= */
.section {
  padding: 96px 24px;
}
.section-alt { background: var(--gray-50); }
.section-dark {
  background: var(--navy);
  color: var(--white);
}
.container { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 16px;
  color: inherit;
}
.section-dark .section-title { color: var(--white); }
.section-sub {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 540px;
  line-height: 1.7;
}
.section-dark .section-sub { color: rgba(255,255,255,.6); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-num {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold);
}
.section-dark .step-num { background: rgba(212,151,10,.15); }
.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: inherit;
}
.step-desc {
  font-size: .9rem;
  color: var(--gray-500);
  line-height: 1.65;
}
.section-dark .step-desc { color: rgba(255,255,255,.55); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}
.feature-desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* CTA section */
.cta-box {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.08);
}
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 32px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.waitlist-input {
  flex: 1;
  min-width: 220px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  color: var(--white);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.waitlist-input::placeholder { color: rgba(255,255,255,.4); }
.waitlist-input:focus { border-color: var(--gold); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.55);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; font-weight: 700; }
.footer-brand p {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
  margin-top: 8px;
  max-width: 240px;
  line-height: 1.6;
}
.footer-nav-group h4 {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 16px;
}
.footer-nav-group ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-group a {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav-group a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }

/* =========================================================
   Legal pages layout
   ========================================================= */
.legal-hero {
  background: linear-gradient(145deg, #0a1628 0%, #0f2147 100%);
  padding: 120px 24px 64px;
  text-align: center;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.5px;
}
.legal-hero .legal-date {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  margin-top: 12px;
}
.legal-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-200);
}
.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-700);
  margin: 28px 0 10px;
}
.legal-body p {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 14px;
}
.legal-body ul, .legal-body ol {
  margin: 12px 0 20px 20px;
}
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.legal-body a { color: var(--gold); }
.legal-info-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 24px 0;
}
.legal-info-box p { margin: 0; }
.legal-info-box strong { color: var(--navy); }

/* Cookies table */
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin: 20px 0;
}
.cookies-table th {
  background: var(--gray-100);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gray-200);
}
.cookies-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  vertical-align: top;
}
.cookies-table tr:last-child td { border-bottom: none; }

/* =========================================================
   Cookie Banner
   ========================================================= */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(15, 33, 71, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  display: none;
}
#cookie-banner.visible { display: block; }
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-text {
  flex: 1;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  min-width: 240px;
}
.cookie-text a { color: var(--gold-light); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; flex-wrap: wrap; }
.btn-cookie-accept {
  padding: 9px 22px;
  background: var(--gold);
  color: var(--navy);
  font-size: .85rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}
.btn-cookie-accept:hover { background: var(--gold-light); }
.btn-cookie-settings {
  padding: 9px 22px;
  background: transparent;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s;
}
.btn-cookie-settings:hover { border-color: rgba(255,255,255,.6); color: var(--white); }

/* =========================================================
   Cookie Modal / Overlay
   ========================================================= */
#cookie-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
#cookie-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
#cookie-modal {
  background: var(--white);
  border-radius: 10px;
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  padding: 32px 32px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--gray-400);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  transition: background .15s, color .15s;
  line-height: 1;
}
.cookie-modal-close:hover { background: var(--gray-100); color: var(--gray-700); }
#cookie-modal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  padding-right: 32px;
}
.cookie-modal-desc {
  font-size: .875rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Categories */
.cookie-categories {
  border-top: 1px solid var(--gray-200);
}
.cookie-cat {
  border-bottom: 1px solid var(--gray-200);
}
.cookie-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.cookie-cat-header:hover { background: var(--gray-50); margin: 0 -4px; padding: 14px 4px; border-radius: 4px; }
.cat-arrow {
  font-size: .7rem;
  color: var(--gray-500);
  transition: transform .2s;
  flex-shrink: 0;
  width: 14px;
}
.cat-name {
  flex: 1;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.cat-always {
  font-size: .8rem;
  color: #16a34a;
  font-weight: 600;
  flex-shrink: 0;
}
.cat-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.cat-status {
  font-size: .78rem;
  color: var(--gray-400);
  min-width: 70px;
  text-align: right;
}
.cookie-cat-body {
  display: none;
  padding: 0 0 14px 24px;
}
.cookie-cat-body p {
  font-size: .84rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin: 0;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 24px;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle-switch input:checked + .toggle-slider { background: #16a34a; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Modal footer */
.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}
.btn-cookie-save {
  padding: 11px 28px;
  background: #16a34a;
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .5px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
}
.btn-cookie-save:hover { background: #15803d; }

@media (max-width: 480px) {
  #cookie-modal { padding: 24px 20px 20px; }
}

/* =========================================================
   Utilities
   ========================================================= */
.text-center { text-align: center; }
.text-gold { color: var(--gold-light); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
  .hero-stats { gap: 24px; flex-wrap: wrap; justify-content: center; }
  .nav-links .nav-link { display: none; }
  .footer-top { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
  .cookie-inner { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: 1fr; }
  /* Demo: ocultar iframe, mostrar enlace */
  .demo-desktop { display: none !important; }
  .demo-mobile  { display: block !important; }
}
@media (min-width: 769px) {
  /* Demo: mostrar iframe, ocultar enlace */
  .demo-desktop { display: block; }
  .demo-mobile  { display: none !important; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 20px; }
}
