/* Ruleta Costera — hoja de estilos del sitio */

:root {
  --indigo-950: #1e1b4b;
  --indigo-900: #312e81;
  --indigo-800: #363189;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-100: #e5e3fb;
  --indigo-50: #f4f3ff;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-100: #fef3d9;
  --white: #ffffff;
  --ink: #1c1b2e;
  --slate: #55536c;
  --slate-light: #8583a0;
  --border: #e4e2f2;
  --bg-soft: #f7f6fd;
  --success: #0f7a52;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 30px -12px rgba(30, 27, 75, 0.22);
  --shadow-soft: 0 4px 18px -6px rgba(30, 27, 75, 0.14);
  --max-width: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--indigo-700); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; color: var(--slate); }
strong { color: var(--ink); }

ul, ol { color: var(--slate); padding-left: 1.3em; }
li { margin-bottom: 0.5em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-700);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 6px 14px;
  border-radius: 999px;
}

/* ============ HEADER ============ */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name span { color: var(--indigo-700); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--indigo-700); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--amber-500); color: var(--indigo-950); box-shadow: 0 8px 20px -8px rgba(245, 158, 11, 0.6); }
.btn-primary:hover { background: var(--amber-400); }
.btn-outline { background: transparent; border-color: var(--indigo-700); color: var(--indigo-700); }
.btn-outline:hover { background: var(--indigo-50); }
.btn-ghost { background: var(--indigo-50); color: var(--indigo-700); }
.btn-sm { padding: 8px 16px; font-size: 0.84rem; }
.btn-block { width: 100%; }

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* ============ HERO ============ */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--indigo-50) 0%, var(--white) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 46px;
  align-items: center;
}
.hero-visual {
  order: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--indigo-900), var(--indigo-700));
  padding: 34px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245,158,11,0.35), transparent 70%);
}
.hero-copy { order: 2; }
.hero-visual .wheel {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 3px solid var(--amber-400);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
}
.hero-visual .wheel::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.35);
}
.hero-visual .wheel span { font-size: 1.6rem; font-weight: 800; color: var(--amber-400); }
.hero-stat-row { display: flex; gap: 22px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-stat b { display: block; font-size: 1.5rem; color: var(--amber-400); }
.hero-stat span { font-size: 0.82rem; color: rgba(255,255,255,0.78); }

.hero h1 { margin-bottom: 0.5em; }
.hero-lede { font-size: 1.12rem; color: var(--slate); max-width: 560px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.badge.badge-amber { background: var(--amber-100); border-color: #f7d789; color: #8a5a00; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-alt { background: var(--bg-soft); }
.section-dark {
  background: linear-gradient(160deg, var(--indigo-950), var(--indigo-800));
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.82); }

/* ============ BENTO GRID ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.bento .b-wide { grid-column: span 2; }
.bento .b-full { grid-column: span 4; }
.bento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  box-shadow: var(--shadow-soft);
}
.bento-card h3 { margin-bottom: 0.4em; }
.bento-card .icon-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--indigo-50);
  color: var(--indigo-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
  font-weight: 800;
}

/* ============ OPERATOR CARDS (framed) ============ */
.operator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}
.op-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  padding: 4px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.op-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.op-card-inner {
  border: 1.5px solid var(--indigo-100);
  border-radius: 16px;
  padding: 22px;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.op-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.op-logo { height: 34px; max-width: 140px; object-fit: contain; }
.op-logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--indigo-50);
  padding: 6px 12px;
  border-radius: 8px;
}
.verdict-tag {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--amber-100);
  color: #8a5a00;
  white-space: nowrap;
}
.op-card p { font-size: 0.94rem; margin-bottom: 0.9em; }
.op-facts { list-style: none; padding: 0; margin: 0 0 16px; font-size: 0.88rem; }
.op-facts li { display: flex; gap: 8px; margin-bottom: 8px; color: var(--slate); }
.op-facts li::before { content: "✓"; color: var(--success); font-weight: 800; }
.op-card-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.op-domain { font-size: 0.8rem; color: var(--slate-light); margin-top: 10px; }
.op-domain code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: 0.78rem; }

/* ============ COMPARISON TABLE ============ */
.table-scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: var(--white); }
table.compare th, table.compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table.compare thead th { background: var(--indigo-950); color: var(--white); font-weight: 700; position: sticky; top: 0; }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: var(--bg-soft); }
table.compare td strong { display: block; }

/* ============ STEPS / METHODOLOGY ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; }
.step-num { font-size: 0.8rem; font-weight: 800; color: var(--amber-500); display: block; margin-bottom: 8px; }

/* ============ FAQ ============ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 4px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-q::after { content: "+"; font-size: 1.5rem; color: var(--indigo-700); font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 4px 20px; margin: 0; }
.faq-item.open .faq-a { max-height: 480px; }

/* ============ CTA BAND ============ */
.cta-band {
  background: linear-gradient(135deg, var(--indigo-900), var(--indigo-600));
  border-radius: var(--radius-lg);
  padding: 42px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); margin-bottom: 0.3em; }
.cta-band p { color: rgba(255,255,255,0.82); margin-bottom: 0; max-width: 480px; }

/* ============ DISCLOSURE STRIP ============ */
.disclosure-strip {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.88rem;
  color: var(--indigo-900);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.disclosure-strip strong { color: var(--indigo-900); }

/* ============ RESOURCES LIST ============ */
.resource-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.resource-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--white);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.resource-card img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.resource-card .r-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--indigo-50); color: var(--indigo-700);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.resource-card h4 { margin: 0 0 4px; font-size: 1rem; }
.resource-card p { font-size: 0.88rem; margin-bottom: 6px; }

/* ============ CONTENT PAGES ============ */
.page-hero {
  padding: 48px 0 30px;
  background: var(--indigo-50);
  border-bottom: 1px solid var(--indigo-100);
}
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero p { max-width: 640px; font-size: 1.04rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.breadcrumb { font-size: 0.85rem; color: var(--slate-light); margin-bottom: 14px; }
.breadcrumb a { color: var(--slate-light); }

.callout {
  border-left: 4px solid var(--indigo-700);
  background: var(--indigo-50);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 22px 0;
}
.callout.callout-amber { border-color: var(--amber-500); background: var(--amber-100); }
.callout p:last-child { margin-bottom: 0; }

/* ============ FOOTER ============ */
.site-footer { background: var(--indigo-950); color: rgba(255,255,255,0.82); padding: 56px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--white); font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer-brand svg, .footer-brand img { width: 32px; height: 32px; }
.site-footer p { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.site-footer h4 { color: var(--white); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer a:hover { color: var(--amber-400); }
.footer-legalese {
  border-top: 1px solid rgba(255,255,255,0.14);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
}
.footer-legalese p { color: rgba(255,255,255,0.6); font-size: 0.82rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
  z-index: 100;
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-banner p { font-size: 0.88rem; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 0; }
  .hero-copy { order: 1; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .b-wide, .bento .b-full { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 14px;
  }
  .header-inner { position: relative; }
  .bento { grid-template-columns: 1fr; }
  .bento .b-wide, .bento .b-full { grid-column: span 1; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  section { padding: 46px 0; }
}
