/* ─── VARIABLES ─── */
:root {
  --bg:        #ffffff;
  --bg-alt:    #f0f7ff;
  --bg-card:   #ffffff;
  --border:    rgba(0,0,0,.08);
  --shadow:    0 2px 16px rgba(0,0,0,.07);
  --shadow-md: 0 6px 28px rgba(0,0,0,.11);
  --gold:      #0369a1;
  --gold-lt:   #0ea5e9;
  --white:     #0f1c2e;
  --text:      #526070;
  --dim:       #8899aa;
  --nav-h:     88px;
  --max:       1100px;
  --r:         14px;
  --h:         'Outfit', system-ui, sans-serif;
  --b:         'DM Sans', system-ui, sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--h);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--white);
}

/* ─── NAV ─── */
.main-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-name {
  font-family: var(--h);
  font-size: .88rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
}
.nav-brand-sub {
  font-size: .58rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links > li {
  display: flex;
  align-items: center;
  height: 100%;
}
.nav-links a {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ─── NAV DROPDOWN (mega menu) ─── */
.nav-item-drop {
  position: relative;
}
.nav-item-drop > a {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-item-drop > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  display: inline-block;
  transition: transform .2s;
  margin-top: 1px;
}
.nav-item-drop:hover > a::after,
.nav-item-drop:focus-within > a::after {
  transform: rotate(180deg);
}

/* Invisible bridge — fills the gap so hover isn't lost mid-air */
.nav-item-drop::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -40px;
  right: -40px;
  height: 18px;
  z-index: 199;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px); /* matches bridge height */
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.07);
  width: 560px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 200;
  pointer-events: none;
}
.nav-item-drop:hover .nav-dropdown,
.nav-item-drop:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Triangle pointer */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 7px;
  background: #fff;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.08));
}

.nav-drop-item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background .15s;
}
.nav-drop-item:hover {
  background: var(--bg-alt);
}
.nav-drop-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--h);
  font-size: .65rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: .04em;
  margin-top: 1px;
}
.nav-drop-item:hover .nav-drop-icon {
  background: linear-gradient(135deg, #bfdbfe, #93c5fd);
}
.nav-drop-text {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.nav-drop-item-title {
  font-family: var(--h);
  font-size: .82rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: -.01em;
  line-height: 1.25;
}
.nav-drop-item:hover .nav-drop-item-title {
  color: var(--gold);
}
.nav-drop-item-desc {
  font-size: .7rem;
  color: var(--dim);
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* Bottom "ver todos" bar */
.nav-drop-all {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1rem;
  border-radius: 10px;
  background: var(--bg-alt);
  margin-top: .2rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: background .15s;
  border: 1px solid var(--border);
}
.nav-drop-all:hover {
  background: rgba(3,105,161,.08);
  border-color: rgba(3,105,161,.2);
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  background: var(--gold);
  color: #fff;
  font-family: var(--b);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .5rem 1.2rem;
  border-radius: 999px;
  border: none;
  transition: background .2s, box-shadow .2s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(3,105,161,.28);
}
.btn-nav:hover {
  background: var(--gold-lt);
  box-shadow: 0 4px 14px rgba(3,105,161,.38);
}

.nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-ham span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 2.5rem 4vw;
  gap: 1.5rem;
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  text-decoration: none;
}
.mobile-menu a.active { color: var(--gold); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--b);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold);
  color: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 2px 10px rgba(3,105,161,.25);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  box-shadow: 0 4px 16px rgba(3,105,161,.35);
}
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover {
  background: var(--gold);
  color: #ffffff;
}
.btn-outline-white {
  background: transparent;
  color: var(--text);
  border-color: rgba(0,0,0,.18);
}
.btn-outline-white:hover {
  border-color: var(--text);
  color: var(--white);
}
/* ─── CTA STRIP ─── */
.cta-strip {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
  padding: 5rem 4vw;
  text-align: center;
}
.cta-strip .cta-title {
  font-family: var(--h);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: #ffffff;
  letter-spacing: -.03em;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.cta-strip .cta-sub {
  font-size: 1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.cta-strip .cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-strip .btn-outline-white {
  color: #fff;
  border-color: rgba(255,255,255,.45);
}
.cta-strip .btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.8);
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 4vw 4rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}
.page-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.page-hero-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.page-hero-title {
  font-family: var(--h);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
}
.page-hero-sub {
  font-size: 1rem;
  color: var(--text);
  margin-top: 1rem;
  max-width: 520px;
  line-height: 1.75;
}

/* ─── SECTIONS ─── */
.s { padding: 6rem 4vw; }
.s.alt { background: var(--bg-alt); }
.s.dark-card { background: var(--bg-card); }
.inner {
  max-width: var(--max);
  margin: 0 auto;
}

.s-label {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.s-title {
  font-family: var(--h);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: .9rem;
}
.s-body {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  max-width: 560px;
}

.gold-rule {
  width: 36px;
  height: 3px;
  background: var(--gold);
  margin: 1.2rem 0;
  border-radius: 2px;
}

/* ─── CREDENTIAL PILL ─── */
.cred-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid rgba(3,105,161,.22);
  background: rgba(3,105,161,.06);
  padding: .35rem .85rem;
  border-radius: 999px;
  font-weight: 500;
}
.cred-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 4vw 2.5rem;
  background: var(--bg-alt);
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-name {
  font-family: var(--h);
  font-size: .95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.footer-brand-spec {
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-bio {
  font-size: .88rem;
  color: var(--dim);
  line-height: 1.75;
}
.footer-col h4 {
  font-family: var(--b);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.footer-col ul a {
  font-size: .88rem;
  color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .7rem;
  color: var(--dim);
}
.footer-socials {
  display: flex;
  gap: .7rem;
}
.footer-socials a {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--dim);
  transition: border-color .2s, color .2s, background .2s;
}
.footer-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(3,105,161,.06);
}
.footer-socials svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ─── FLOATING BUTTONS ─── */
.float-btn-wa,
.float-btn-doc {
  position: fixed;
  bottom: 1.8rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.32);
  transition: transform .2s, box-shadow .2s;
  z-index: 998;
}
.float-btn-wa:hover,
.float-btn-doc:hover { transform: translateY(-3px) scale(1.07); box-shadow: 0 8px 30px rgba(0,0,0,.38); }
.float-btn-wa  { right: 1.5rem; background: #25d366; }
.float-btn-doc { left: 1.5rem;  background: #00a499; }
.float-btn-wa svg,
.float-btn-doc svg { width: 30px; height: 30px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 860px) {
  .nav-links, .btn-nav { display: none; }
  .nav-ham { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .s { padding: 4rem 5vw; }
}
@media (max-width: 600px) {
  .s { padding: 3.5rem 5vw; }
  .float-btn-wa, .float-btn-doc { width: 52px; height: 52px; bottom: 1.4rem; }
  .float-btn-wa svg, .float-btn-doc svg { width: 26px; height: 26px; }
}
