/* Blas – estilos compartidos (landing + páginas SEO). No lo usa el Prode. */
:root {
  --bg: #131211;
  --bg-soft: #1a1816;
  --card: #201d1a;
  --text: #f4efe6;
  --text-muted: #a9a195;
  --cream: #f3e9d6;
  --amber: #d4a853;
  --amber-hover: #e6bd68;
  --amber-soft: rgba(212, 168, 83, .14);
  --line: rgba(244, 239, 230, .1);
  --wa: #25d366;
  --wa-hover: #1fba5a;
  --star: #fbbc04;
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #07240f; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .55); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { border-color: rgba(244, 239, 230, .28); color: var(--cream); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn svg { flex: none; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(19, 18, 17, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
header.scrolled { background: rgba(19, 18, 17, .94); border-bottom-color: var(--line); }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: height .3s var(--ease);
}
header.scrolled .header-inner { height: 58px; }
.logo-wrap, .logo-link { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.logo-wrap img, .logo-link img { height: 40px; width: auto; }
.logo-wrap .tagline, .logo-link span {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; color: var(--cream);
}
.mobile-brand { display: none; }
.header-nav { display: flex; align-items: center; gap: 1.75rem; }
.header-nav a:not(.nav-cta) { font-size: .93rem; font-weight: 500; color: var(--text-muted); text-decoration: none; transition: color .2s; }
.header-nav a:not(.nav-cta):hover { color: var(--amber); }
.social-icon { display: inline-flex; color: var(--text-muted); transition: color .2s; }
.social-icon:hover { color: var(--amber); }
.social-icon svg { width: 20px; height: 20px; }
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1.1rem;
  background: var(--wa); color: #07240f; font-weight: 700; font-size: .875rem;
  border-radius: 999px; text-decoration: none; transition: background .2s, transform .25s var(--ease);
}
.nav-cta:hover { background: var(--wa-hover); transform: translateY(-1px); }

.hamburger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--cream); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { overflow: hidden; border-top: 1px solid var(--line); background: rgba(19, 18, 17, .98); }
.mobile-menu-inner { display: flex; flex-direction: column; padding: .75rem 1.25rem 1.25rem; gap: .15rem; }
.mobile-menu-inner a:not(.nav-cta) { padding: .85rem 0; color: var(--cream); text-decoration: none; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
.mobile-menu-inner .nav-cta { margin-top: .9rem; justify-content: center; padding: .85rem; font-size: 1rem; }
.mobile-menu-inner .social-icon { padding: .85rem 0; border-bottom: 1px solid var(--line); }
.slide-enter { max-height: 0; opacity: 0; }
.slide-enter-active { transition: max-height .3s ease, opacity .2s ease; }
.slide-enter-to { max-height: 460px; opacity: 1; }
.slide-leave { max-height: 460px; opacity: 1; }
.slide-leave-active { transition: max-height .25s ease, opacity .2s ease; }
.slide-leave-to { max-height: 0; opacity: 0; }

@media (max-width: 860px) {
  .header-nav { display: none; }
  .hamburger { display: flex; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--bg-soft); color: var(--text-muted); font-size: .9rem; }
footer a { color: var(--amber); text-decoration: none; }
footer a:hover { color: var(--amber-hover); }

/* ---------- Flotantes ---------- */
.whatsapp-float-wrap { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; align-items: center; gap: .6rem; }
.wa-float-tooltip {
  background: var(--cream); color: #1b1712; font-size: .85rem; font-weight: 600;
  padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateX(8px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.whatsapp-float-wrap:hover .wa-float-tooltip { opacity: 1; transform: none; }
.whatsapp-float {
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #07240f;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .6);
  transition: transform .25s var(--ease), background .2s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.07); background: var(--wa-hover); }
.share-float {
  position: fixed; right: 1.4rem; bottom: 5.4rem; z-index: 90; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(32, 29, 26, .9); color: var(--cream); border: 1px solid var(--line); cursor: pointer;
  display: grid; place-items: center; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .25s var(--ease), background .2s, color .2s;
}
.share-float:hover { transform: scale(1.07); color: var(--amber); }
.share-float.copied { background: #22c55e; color: #fff; }
.share-float svg { width: 20px; height: 20px; }
@media (max-width: 600px) {
  .whatsapp-float-wrap { right: 1rem; bottom: 1rem; }
  .whatsapp-float { width: 52px; height: 52px; }
  .share-float { right: 1.2rem; bottom: 4.9rem; width: 40px; height: 40px; }
  .wa-float-tooltip { display: none; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
