/* solucity-legal-site/styles.css */
:root {
  --bg1: #05666f;
  --bg2: #12a2aa;
  --bg3: #063f46;
  --surface: rgba(2, 84, 92, 0.72);
  --surface-strong: rgba(3, 74, 82, 0.88);
  --surface-soft: rgba(233, 254, 255, 0.10);
  --card: rgba(0, 70, 78, 0.68);
  --card-dark: rgba(0, 52, 58, 0.72);
  --border: rgba(233, 254, 255, 0.18);
  --border-strong: rgba(233, 254, 255, 0.28);
  --text: rgba(246, 255, 255, 0.98);
  --muted: rgba(233, 254, 255, 0.76);
  --muted-2: rgba(233, 254, 255, 0.62);
  --white: #ffffff;
  --accent: #e8fdff;
  --accent-text: #075c65;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  --shadow-soft: 0 14px 34px rgba(0, 0, 0, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1050px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body {
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(440px 320px at 20% 10%, rgba(233, 254, 255, 0.18), transparent 70%),
    radial-gradient(520px 360px at 90% 20%, rgba(255, 255, 255, 0.10), transparent 68%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 52%, var(--bg3) 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(72px);
  z-index: 0;
  opacity: 0.2;
  animation: floatGlow 9s ease-in-out infinite;
}

body::before {
  width: 250px;
  height: 250px;
  top: 90px;
  left: -80px;
  background: #e8fdff;
}

body::after {
  width: 300px;
  height: 300px;
  right: -100px;
  top: 280px;
  background: #003a40;
  animation-delay: 1.6s;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover { text-decoration: none; }

.container {
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-shell {
  padding: 16px 0 34px;
}

/* Header coherente con la app */
.topbar,
.header-wrap {
  padding-top: 14px;
  position: relative;
  z-index: 10;
}

.topbar__inner,
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 66, 74, 0.34);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img,
.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.22));
}

.brand .name,
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .name strong,
.brand__name {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 1.12rem;
}

.brand .name span,
.brand__subtitle {
  color: var(--muted-2);
  font-weight: 800;
  font-size: 0.72rem;
  margin-top: 3px;
}

.navlinks,
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(233, 254, 255, 0.12);
  background: rgba(233, 254, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  font-size: 0.82rem;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav__link:hover,
.pill:hover {
  transform: translateY(-1px);
  background: rgba(233, 254, 255, 0.14);
  border-color: var(--border-strong);
}

.nav__link--active,
.pill[aria-current="page"] {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

/* Hero legal */
.hero,
.legal-hero {
  margin-top: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(0, 86, 96, 0.72), rgba(0, 48, 54, 0.52));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
  position: relative;
  animation: fadeUp 0.65s ease both;
}

.hero::before,
.legal-hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -90px;
  background: rgba(233, 254, 255, 0.13);
  border-radius: 999px;
  filter: blur(4px);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(233, 254, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(233, 254, 255, 0.14);
  font-weight: 950;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.h1,
h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 950;
}

.sub,
.lead {
  margin: 14px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.58;
  font-size: 1rem;
}

/* Cards y contenido */
.card,
.legal {
  margin-top: 16px;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(0, 52, 58, 0.58);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: fadeUp 0.72s ease both;
}

.card h1 {
  font-size: clamp(1.9rem, 6vw, 3.1rem);
  margin-bottom: 12px;
}

.card h2,
.legal h2 {
  margin: 28px 0 10px;
  color: var(--text);
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.card h3,
.legal h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
}

.card p,
.card li,
.legal p,
.legal li {
  color: var(--muted);
  font-weight: 720;
  line-height: 1.7;
  font-size: 0.98rem;
}

.card p { margin: 0 0 12px; }

.card ul,
.card ol,
.legal ul,
.legal ol {
  margin: 10px 0 16px 20px;
  padding: 0;
}

.card li,
.legal li { margin-top: 8px; }

.card strong,
.legal strong { color: var(--text); }

.note {
  margin: 16px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(233, 254, 255, 0.22);
  background: rgba(233, 254, 255, 0.10);
  color: var(--text) !important;
  font-weight: 900 !important;
  line-height: 1.5 !important;
}

.small {
  display: inline-flex;
  margin-top: 20px !important;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(233, 254, 255, 0.08);
  color: var(--muted-2) !important;
  font-size: 0.82rem !important;
  font-weight: 900 !important;
}

/* CTA */
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(233, 254, 255, 0.14);
  background: rgba(233, 254, 255, 0.10);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
  font-weight: 950;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(233, 254, 255, 0.16);
}

.btn--primary,
.btn:first-child {
  background: var(--accent);
  color: var(--accent-text);
  border-color: transparent;
}

/* Footer */
.footer {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: rgba(0, 52, 58, 0.38);
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}

.footer__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer a,
.footer__links a {
  color: var(--text);
  font-weight: 900;
  opacity: 0.9;
}

.footer a:hover,
.footer__links a:hover { opacity: 1; }

.legal a,
.card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(233, 254, 255, 0.38);
  text-underline-offset: 4px;
}

/* Mobile */
@media (max-width: 720px) {
  .container { width: min(100% - 18px, var(--max)); }
  .page-shell { padding-bottom: 22px; }

  .topbar__inner,
  .nav {
    align-items: flex-start;
    border-radius: 24px;
    padding: 12px;
  }

  .topbar__inner {
    flex-direction: column;
  }

  .navlinks,
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
  }

  .nav__link,
  .pill {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.78rem;
  }

  .hero,
  .legal-hero,
  .card,
  .legal {
    padding: 18px;
    border-radius: 24px;
  }

  .cta-row { flex-direction: column; }
  .btn { width: 100%; }

  .footer__inner {
    justify-content: center;
    text-align: center;
  }
}

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

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, -14px, 0) scale(1.04); }
}

/* Ajustes v2: navegación visible y espacio inferior seguro */
body { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.site-nav { display:flex; gap:10px; overflow-x:auto; padding:0 0 16px; margin-top:-6px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.site-nav::-webkit-scrollbar { display:none; }
.site-nav a { flex:0 0 auto; padding:10px 13px; border-radius:999px; border:1px solid rgba(233,254,255,0.18); background:rgba(233,254,255,0.07); color:var(--text); font-weight:900; font-size:13px; text-decoration:none; }
.site-nav a.active, .site-nav a[aria-current="page"] { background:rgba(233,254,255,0.16); }
.legal-page .card, .legal-page .legal { margin-bottom:42px; }
@media (max-width:640px){ .container{ width:min(100% - 18px,1050px); padding-bottom:54px;} .topbar__inner,.nav{border-radius:22px;} .nav{flex-direction:column;align-items:stretch;} .navlinks{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;} .navlinks .pill{flex:0 0 auto;} .card,.legal,.hero,.section,.footer{border-radius:24px;} .footer__inner{justify-content:center;text-align:center;} }
