/* =========================================================
   Worbi — sistema de diseño corporativo
   "World Orbi": núcleo azul + planetas (verticales) que orbitan
   ========================================================= */

:root {
  /* Marca madre */
  --worbi-blue: #2563EB;
  --worbi-blue-dark: #1E40AF;
  --worbi-blue-soft: #EFF4FF;

  /* Verticales */
  --clubs: #06B6D4;
  --restaurantes: #F97316;
  --vivi: #10B981;

  /* Neutros */
  --ink: #0F1822;
  --slate: #4B5563;
  --slate-light: #6B7280;
  --line: #E5E9EF;
  --bg: #F4F6F8;
  --surface: #FFFFFF;

  /* Espacio "orbital" oscuro para heros de contraste */
  --space-1: #0B1530;
  --space-2: #122046;

  /* Acento dinámico (cambia por vertical con data-theme) */
  --accent: var(--worbi-blue);
  --accent-dark: var(--worbi-blue-dark);
  --accent-soft: var(--worbi-blue-soft);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 24, 34, .06), 0 1px 3px rgba(15, 24, 34, .08);
  --shadow-md: 0 10px 30px -12px rgba(15, 24, 34, .18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 24, 34, .28);
  --container: 1140px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Theming por vertical */
[data-theme="clubs"]        { --accent: var(--clubs);        --accent-dark: #0E7490; --accent-soft: #ECFEFF; }
[data-theme="restaurantes"] { --accent: var(--restaurantes); --accent-dark: #C2410C; --accent-soft: #FFF4ED; }
[data-theme="vivi"]         { --accent: var(--vivi);         --accent-dark: #047857; --accent-soft: #ECFDF5; }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
ul { list-style: none; padding: 0; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.section-head p { color: var(--slate); margin-top: 14px; font-size: 1.08rem; }
.center { text-align: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 1rem; padding: 13px 24px;
  border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px var(--accent); }
.btn--primary:hover { background: var(--accent-dark); box-shadow: 0 12px 26px -8px var(--accent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #f0f3f8; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.34rem; color: var(--ink); text-transform: uppercase; letter-spacing: .15em; }
.brand .mark { width: 42px; height: 42px; color: var(--accent); flex: none; border-radius: 13px; box-shadow: 0 8px 18px -8px var(--accent); }
.brand small { font-weight: 600; color: var(--slate); font-size: .8rem; letter-spacing: .15em; margin-left: 2px; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links > li > a, .dropdown > button {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .97rem; color: var(--slate);
  background: none; border: 0; cursor: pointer; padding: 9px 14px; border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav-links > li > a:hover, .dropdown > button:hover,
.nav-links > li > a[aria-current="page"] { color: var(--ink); background: var(--bg); }

/* Dropdown Apps */
.dropdown { position: relative; }
.dropdown > button svg { transition: transform .2s ease; }
.dropdown[open] > button svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px; display: none;
}
.dropdown[open] .dropdown-menu { display: block; animation: pop .16s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dropdown-menu a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; }
.dropdown-menu a:hover { background: var(--bg); }
.dropdown-menu .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dropdown-menu .dot svg { width: 18px; height: 18px; color: #fff; }
.dropdown-menu strong { display: block; font-size: .95rem; color: var(--ink); }
.dropdown-menu span { font-size: .82rem; color: var(--slate-light); }

.nav-cta { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 70% -10%, var(--space-2), var(--space-1) 60%); }
.hero::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.5), transparent),
              radial-gradient(2px 2px at 80% 20%, rgba(255,255,255,.35), transparent),
              radial-gradient(1.5px 1.5px at 60% 70%, rgba(255,255,255,.3), transparent),
              radial-gradient(1.5px 1.5px at 35% 80%, rgba(255,255,255,.3), transparent);
  pointer-events: none; }
.hero .container { position: relative; z-index: 2; padding: 96px 0 100px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.03em; }
.hero h1 .grad { background: linear-gradient(100deg, #fff, #BBD3FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: #C3CEEA; font-size: 1.18rem; margin-top: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; color: #95A6CC; font-size: .9rem; flex-wrap: wrap; }
.hero-trust b { color: #fff; display: block; font-size: 1.5rem; }

/* Sistema orbital animado */
.orbit-system { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.orbit-ring { position: absolute; inset: 0; border: 1.5px dashed rgba(255,255,255,.16); border-radius: 50%; }
.orbit-ring.r2 { inset: 16%; }
.orbit-ring.r3 { inset: 32%; }
.orbit-core {
  position: absolute; inset: 38%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5B8DEF, var(--worbi-blue) 60%, var(--worbi-blue-dark));
  box-shadow: 0 0 50px -6px var(--worbi-blue); display: grid; place-items: center; color: #fff; font-weight: 800;
}
.orbit-core span { font-size: clamp(.9rem, 2.4vw, 1.15rem); letter-spacing: -.02em; }
.spin { animation: spin 36s linear infinite; }
.spin.rev { animation-duration: 46s; animation-direction: reverse; }
.spin.slow { animation-duration: 60s; }
@keyframes spin { to { transform: rotate(360deg); } }
.planet { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px;
  border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-md); }
.planet svg { width: 28px; height: 28px; }
.planet small { position: absolute; top: 105%; font-size: .72rem; font-weight: 700; color: #fff; white-space: nowrap;
  background: rgba(11,21,48,.7); padding: 2px 8px; border-radius: 999px; }
.planet.clubs        { background: var(--clubs); }
.planet.restaurantes { background: var(--restaurantes); }
.planet.vivi         { background: var(--vivi); }
.p-counterspin { animation: spin 36s linear infinite reverse; }
@media (prefers-reduced-motion: reduce) { .spin, .p-counterspin { animation: none; } }

/* ---------- App cards (Home) ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.app-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; overflow: hidden;
}
.app-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.app-card .icon { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); margin-bottom: 18px; }
.app-card .icon svg { width: 28px; height: 28px; }
.app-card h3 { font-size: 1.3rem; }
.app-card h3 b { color: var(--c); }
.app-card p { color: var(--slate); margin-top: 10px; font-size: .98rem; }
.app-card .features { margin: 18px 0 22px; display: grid; gap: 8px; }
.app-card .features li { display: flex; gap: 9px; align-items: flex-start; font-size: .93rem; color: var(--slate); }
.app-card .features svg { width: 18px; height: 18px; color: var(--c); flex: none; margin-top: 2px; }
.app-card .more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--c); font-size: .95rem; }
.app-card .more svg { width: 18px; height: 18px; transition: transform .2s ease; }
.app-card:hover .more svg { transform: translateX(4px); }

/* ---------- Value / why ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--slate); margin-top: 8px; font-size: .96rem; }

/* Split (texto + lista) para landings de vertical */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: .9fr 1.1fr; }
.split.rev .split-media { order: -1; }
.checklist { display: grid; gap: 14px; margin-top: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.checklist .tick svg { width: 16px; height: 16px; }
.checklist strong { display: block; }
.checklist span { color: var(--slate); font-size: .95rem; }
.split-media { background: linear-gradient(160deg, var(--accent-soft), #fff); border: 1px solid var(--line);
  border-radius: 20px; padding: 36px; box-shadow: var(--shadow-md); }
.media-orbit { position: relative; aspect-ratio: 1.1; display: grid; place-items: center; }
.media-orbit .big-planet { width: 120px; height: 120px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center; color: #fff; box-shadow: 0 20px 50px -16px var(--accent); }
.media-orbit .big-planet svg { width: 56px; height: 56px; }
.media-orbit .ring { position: absolute; inset: 8%; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; }
.media-orbit .chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 12px; font-size: .82rem; font-weight: 600; box-shadow: var(--shadow-sm); display: flex; gap: 7px; align-items: center; }
.media-orbit .chip svg { width: 16px; height: 16px; color: var(--accent); }
.media-orbit .chip.a { top: 4%; left: 0; }
.media-orbit .chip.b { top: 36%; right: -6%; }
.media-orbit .chip.c { bottom: 6%; left: 6%; }

/* Vertical hero (subpáginas) */
.vhero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.vhero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0; }
.vhero .badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  color: var(--accent); font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.vhero .badge svg { width: 16px; height: 16px; }
.vhero h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin-top: 16px; }
.vhero h1 b { color: var(--accent); }
.vhero p { color: var(--slate); font-size: 1.12rem; margin-top: 16px; max-width: 520px; }
.vhero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(900px 400px at 80% -40%, var(--accent), var(--space-1) 70%); }
.cta-band .container { padding: 70px 0; text-align: center; position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { color: #C7D2EC; margin: 14px auto 28px; max-width: 540px; font-size: 1.1rem; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats .stat b { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--accent); display: block; letter-spacing: -.02em; }
.stats .stat span { color: var(--slate); font-size: .95rem; }

/* ---------- Nosotros ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.value-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.value-card .ico svg { width: 22px; height: 22px; }
.value-card h3 { font-size: 1.1rem; }
.value-card p { color: var(--slate); margin-top: 8px; font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-info .ico svg { width: 22px; height: 22px; }
.contact-info strong { display: block; }
.contact-info span, .contact-info a { color: var(--slate); font-size: .96rem; }
.contact-info a:hover { color: var(--accent); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .err { color: #DC2626; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #DC2626; }
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: var(--slate-light); margin-top: 4px; }
.form-status { display: none; margin-top: 16px; padding: 13px 16px; border-radius: var(--radius-sm); font-size: .95rem; }
.form-status.ok { display: block; background: var(--accent-soft); color: var(--accent-dark); }

.faq { max-width: 760px; margin-inline: auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "\2013"; }
.faq p { color: var(--slate); padding-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--space-1); color: #AEBBDA; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer .brand { color: #fff; }
.site-footer .brand .mark { color: var(--worbi-blue); }
.site-footer p.tag { margin-top: 14px; max-width: 280px; font-size: .94rem; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; padding: 6px 0; font-size: .95rem; color: #AEBBDA; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--worbi-blue); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 24px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Páginas legales ---------- */
.legal { max-width: 820px; margin-inline: auto; }
.legal > .eyebrow { display:block; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 8px; }
.legal .updated { color: var(--slate-light); font-size: .92rem; margin-top: 10px; }
.legal h2 { font-size: 1.32rem; margin-top: 40px; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.05rem; margin-top: 24px; }
.legal p { color: var(--slate); margin-top: 12px; }
.legal ul { margin-top: 12px; display: grid; gap: 9px; }
.legal ul li { position: relative; padding-left: 22px; color: var(--slate); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.legal a { color: var(--accent); text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 30px 0; }
.legal .toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-light); margin-bottom: 10px; }
.legal .toc a { display: block; padding: 5px 0; color: var(--slate); text-decoration: none; font-size: .96rem; }
.legal .toc a:hover { color: var(--accent); }
.legal .callout { background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 16px 18px; margin-top: 20px; }
.legal .callout p { margin-top: 0; color: var(--ink); }
.legal .placeholder { background: #FFF7E6; border: 1px dashed #E0A300; color: #8A6100; border-radius: 6px; padding: 1px 7px; font-size: .92em; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero .container, .vhero .container, .split, .split.rev, .contact-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .apps-grid, .feature-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .orbit-system { max-width: 360px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px; gap: 4px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .28s ease; height: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links > li > a, .dropdown > button { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 13px 14px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 4px 0 8px 14px; }
  .nav-cta { width: 100%; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .apps-grid, .feature-grid, .values-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
