/* ============================================================
   HELIOT MEDIA — Sistema de diseño oficial
   Paleta: Negro #000000 · Dorado #feda15 · Blanco #ffffff
   Tipografía: Poppins · Gliker (fallback Poppins)
   ============================================================ */

:root {
  /* Colores corporativos (Manual de marca) */
  --black: #000000;
  --gold:  #feda15;
  --white: #ffffff;

  /* Escala neutra */
  --g-50:  #fafafa;
  --g-100: #f4f4f4;
  --g-200: #e8e8e8;
  --g-300: #d4d4d4;
  --g-400: #a3a3a3;
  --g-500: #737373;
  --g-600: #525252;
  --g-700: #404040;
  --g-800: #262626;
  --g-900: #171717;

  /* Semánticos */
  --bg: var(--white);
  --bg-alt: var(--g-50);
  --bg-dark: var(--black);
  --text: var(--g-900);
  --text-muted: var(--g-500);
  --text-inverse: var(--white);
  --border: var(--g-200);

  /* Tipografía */
  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Gliker', 'Poppins', sans-serif;

  /* Layout */
  --container-max: 1200px;
  --header-height: 72px;

  /* Radios y sombras */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow:    0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);

  /* Transiciones */
  --t: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--t); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 600; }

p { color: var(--text-muted); }

.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--gold); }
.eyebrow-light { color: var(--gold); }

.gold { color: var(--gold); }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: transform var(--t);
}
.header.scroll-hidden { transform: translateY(-100%); }

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--black);
  display: inline-flex;
  align-items: baseline;
}
.logo-dot { color: var(--gold); margin-left: 1px; }
.logo a { color: inherit; display: inline-flex; align-items: baseline; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}
.nav-main > li { position: relative; }
.nav-main a, .dropbtn {
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  padding: 8px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.nav-main a::after, .dropbtn::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--t);
}
.nav-main a:hover::after, .dropbtn:hover::after { width: 100%; }
.nav-main a:hover, .dropbtn:hover { color: var(--black); }

.dropbtn::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  opacity: 0.6;
  transition: transform var(--t);
}
.dropdown:hover .dropbtn::before { transform: rotate(225deg) translateY(-4px); }

.submenu {
  position: absolute;
  top: calc(100% + 4px);
  left: -16px;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  list-style: none;
  z-index: 10;
}
.dropdown:hover .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}
.submenu a::after { display: none; }
.submenu a:hover { background: var(--g-50); color: var(--black); }

.search-toggle, .menu-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: var(--black);
  transition: background var(--t);
}
.search-toggle:hover, .menu-mobile-toggle:hover { background: var(--g-100); }
.menu-mobile-toggle { display: none; font-size: 1.5rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--t);
  text-align: center;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.btn-gold { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-gold:hover { background: var(--black); color: var(--gold); border-color: var(--black); }

.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--black); }

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--white);
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(254,218,21,0.08), transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 900px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 16px 32px; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-dark { background: var(--black); color: var(--white); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.65); }
.section-alt { background: var(--bg-alt); }

.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { font-size: 1.05rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Card ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--t);
}
.card:hover { border-color: var(--black); transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--black);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* Card sobre fondo negro */
.section-dark .card { background: #0f0f0f; border-color: #1f1f1f; }
.section-dark .card:hover { border-color: var(--gold); }
.section-dark .card p { color: rgba(255,255,255,0.55); }

/* ---------- ORIGINAL values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: var(--t);
}
.value-card:hover { border-color: var(--gold); }
.value-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.value-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--black);
}
.value-card p { font-size: 0.88rem; line-height: 1.55; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--t);
}
.team-card:hover { border-color: var(--gold); }
.team-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.team-card h4 { font-size: 1rem; margin-bottom: 4px; color: var(--black); }
.team-role {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 12px;
}
.team-card p { font-size: 0.85rem; line-height: 1.55; }

/* ---------- Precios ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: var(--t);
  position: relative;
}
.price-card:hover { border-color: var(--black); transform: translateY(-4px); }
.price-card.featured { border-color: var(--gold); border-width: 2px; }
.price-badge {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.price-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 4px;
}
.price-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--black);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.price-amount small { font-size: 1rem; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.price-unit { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 24px; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-list li {
  padding: 9px 0 9px 26px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--g-100);
}
.price-list li:last-child { border-bottom: none; }
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 9px;
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Form ---------- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 8px;
}
.form-label .req { color: #c62828; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--t);
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.05);
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-hint { font-size: 0.75rem; color: var(--text-muted); margin-top: 6px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-brand h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 14px;
}
.footer-brand .tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  max-width: 320px;
  line-height: 1.65;
}
.footer-slogan {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  color: var(--gold);
  font-size: 1.05rem;
}
.footer-col h4 {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid #1f1f1f;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-social {
  display: inline-flex;
  gap: 8px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid #1f1f1f;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.footer-social a:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

/* ---------- Página interna ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 64px;
  margin-bottom: 0;
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; max-width: 720px; }

.prose {
  max-width: 800px;
  margin: 0 auto;
}
.prose h2 { margin-top: 48px; margin-bottom: 16px; font-size: 1.6rem; }
.prose h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.2rem; }
.prose p { margin-bottom: 18px; font-size: 1rem; }
.prose ul, .prose ol { margin: 0 0 24px 24px; }
.prose li { margin-bottom: 8px; color: var(--text-muted); }
.prose a { color: var(--black); font-weight: 600; border-bottom: 1.5px solid var(--gold); }
.prose a:hover { background: var(--gold); }
.prose strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.prose th { background: var(--black); color: var(--white); padding: 14px 18px; text-align: left; font-weight: 600; }
.prose td { padding: 12px 18px; border-bottom: 1px solid var(--border); color: var(--text-muted); }

/* ---------- Search overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 40px;
}
.search-overlay.active { display: flex; }
.search-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  padding: 32px 28px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.search-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-close:hover { background: var(--g-100); color: var(--black); }
.search-container { display: flex; gap: 10px; margin-bottom: 16px; }
.search-input {
  flex: 1;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}
.search-input:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 4px rgba(0,0,0,0.05); }
.search-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  transition: var(--t);
}
.search-submit-btn:hover { background: var(--gold); color: var(--black); }
.search-results { max-height: 340px; overflow-y: auto; }
.search-results .result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--t);
}
.search-results .result-item:hover { background: var(--g-50); }
.search-results .result-item a { color: var(--black); font-weight: 500; font-size: 0.95rem; }
.search-results .no-results { padding: 24px; text-align: center; color: var(--text-muted); font-size: 0.9rem; }
.search-hint { text-align: center; font-size: 0.75rem; color: var(--text-muted); margin-top: 12px; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-main { gap: 20px; }
}
@media (max-width: 768px) {
  :root { --header-height: 60px; }
  .menu-mobile-toggle { display: inline-flex; }
  .search-toggle { display: none; }
  .nav-main {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    display: none;
    margin: 0;
    box-shadow: var(--shadow);
  }
  .nav-main.active { display: flex; }
  .nav-main li { width: 100%; }
  .nav-main a, .dropbtn { padding: 14px 0; width: 100%; justify-content: space-between; font-size: 1rem; border-bottom: 1px solid var(--border); }
  .nav-main a::after, .dropbtn::after { display: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: 0;
    display: none;
  }
  .dropdown.open .submenu { display: block; }
  .submenu a { border: none; padding: 10px 0; font-size: 0.92rem; }
  .hero { padding: 64px 0; }
  .hero-actions .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .search-overlay { padding: 80px 12px 40px; }
}
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .btn { padding: 12px 22px; font-size: 0.85rem; }
  .price-card { padding: 28px 24px; }
}

/* ---------- 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;
  }
}

/* Print */
@media print {
  .header, .footer, .search-overlay { display: none; }
  body { padding-top: 0; }
}
/* ---------- Popup de Aviso Legal (global) ---------- */
/* ---------- Popup de Aviso Legal (global) ---------- */
.legal-popup {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.legal-popup.active { display: flex; }

.legal-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
}

.legal-popup-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px 26px;
  max-width: 540px;
  width: 100%;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: var(--shadow-lg);
  animation: legalPopupIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes legalPopupIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.legal-popup-eyebrow {
  display: inline-block;
  font-family: var(--font-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--black);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.legal-popup-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 12px;
}

.legal-popup-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 12px;
}

.legal-popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 14px;
}
.legal-popup-actions .btn {
  flex: 1 1 auto;
  min-width: 150px;
  padding: 12px 20px;
  font-size: 0.85rem;
}

.legal-popup-nota {
  font-size: 0.72rem !important;
  color: var(--text-muted) !important;
  text-align: center;
  margin: 0 !important;
}

/* Scrollbar discreto en navegadores WebKit */
.legal-popup-content::-webkit-scrollbar { width: 6px; }
.legal-popup-content::-webkit-scrollbar-track { background: transparent; }
.legal-popup-content::-webkit-scrollbar-thumb {
  background: var(--g-300);
  border-radius: 999px;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .legal-popup { padding: 12px; }
  .legal-popup-content {
    padding: 28px 20px 20px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: var(--radius);
  }
  .legal-popup-content h3 { font-size: 1.1rem; }
  .legal-popup-content p { font-size: 0.88rem; }
  .legal-popup-actions { gap: 8px; margin: 16px 0 12px; }
  .legal-popup-actions .btn { min-width: 100%; padding: 12px 18px; }
  .legal-popup-eyebrow { font-size: 0.62rem; padding: 5px 12px; margin-bottom: 12px; }
}

/* Móvil horizontal (poca altura) */
@media (max-height: 520px) {
  .legal-popup { align-items: flex-start; padding: 8px; }
  .legal-popup-content {
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 22px 20px 18px;
  }
}
