/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #0a1626;   /* deep navy, near-black but warm-tinted */
  --bg-2:      #0f2038;
  --bg-3:      #16294a;   /* card */
  --bg-4:      #1c3358;
  --navy-brand:#132f5b;
  --cream:     #f2ede0;   /* text on dark, never pure white */
  --cream-2:   #d9d3c2;
  --cream-mute:#8b93a8;
  --gold:      #eaaa00;   /* brand gold, sampled from logo */
  --gold-soft: #f4c552;
  --line:      rgba(242,237,224,.14);
  --line-strong: rgba(242,237,224,.28);

  --paper:     #f7f4ec;   /* light card surface for logo tiles */
  --ink:       #12121a;

  --serif: "Playfair Display", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono:  "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--cream);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--cream); color: var(--bg);
  border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.5rem; }

.kicker {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  color: var(--cream);
  max-width: 20ch;
}
.section-lead {
  max-width: 62ch;
  color: var(--cream-2);
  font-size: 1.05rem;
  margin-top: 1rem;
}

.section-head { margin-bottom: 3rem; }
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-center .section-title,
.section-head-center .section-lead { margin-inline: auto; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .95rem 1.9rem;
  font-family: var(--sans); font-weight: 600; font-size: .95rem;
  border-radius: 999px;
  transition: transform .35s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out), color .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold); color: #1a1508;
  border: 1px solid var(--gold);
}
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-block { width: 100%; padding-block: 1.05rem; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* =============================================================
   5. Nav
   ============================================================= */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out);
}
.site-nav.is-solid {
  background: rgba(10, 22, 38, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-brand { display: flex; align-items: center; gap: .4rem; }
.nav-logo { width: 58px; height: auto; margin-left: -.4rem; }
.nav-brand-text {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--cream);
  letter-spacing: .01em;
}
.nav-brand-text em { font-style: italic; color: var(--gold); }

.nav-links { display: none; align-items: center; gap: 2.1rem; }
.nav-links a:not(.nav-cta):not(.nav-social) {
  font-size: .92rem; font-weight: 500; color: var(--cream-2);
  position: relative; padding-block: .3rem;
}
.nav-links a:not(.nav-cta):not(.nav-social)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right .35s var(--ease-out);
}
.nav-links a:not(.nav-cta):not(.nav-social):hover { color: var(--cream); }
.nav-links a:not(.nav-cta):not(.nav-social):hover::after { right: 0; }
.nav-cta {
  background: var(--gold); color: #1a1508 !important; font-weight: 700;
  padding: .55rem 1.3rem; border-radius: 999px; font-size: .88rem;
  transition: transform .3s var(--ease-out), background .3s var(--ease-out);
}
.nav-cta:hover { background: var(--gold-soft); transform: translateY(-2px); }

.nav-socials { display: flex; align-items: center; gap: .6rem; }
.nav-social {
  display: flex !important; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--cream-2);
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav-social svg { width: 16px; height: 16px; fill: currentColor; }
.nav-social:hover { border-color: var(--gold); color: var(--gold); background: rgba(234,170,0,.08); transform: translateY(-2px); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger { display: inline-flex !important; align-items: center; gap: .35rem; }
.nav-dropdown-chevron { width: 10px; height: 7px; transition: transform .3s var(--ease-out); }
.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown:focus-within .nav-dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translate(-50%, -8px);
  min-width: 180px;
  display: flex; flex-direction: column;
  background: rgba(10, 22, 38, 0.97);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .5rem;
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.6);
  backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
  z-index: 10;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s;
}
.nav-dropdown-panel a {
  padding: .65rem .9rem !important; border-radius: 8px;
  font-size: .88rem !important;
}
.nav-dropdown-panel a:hover { background: rgba(234,170,0,.1); }
.nav-dropdown-panel a::after { display: none; }

.nav-burger {
  display: flex; flex-direction: column; gap: 5px; padding: .5rem;
}
.nav-burger span { width: 22px; height: 2px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s var(--ease-out); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
}

.nav-links.is-open {
  display: flex; position: fixed; inset: var(--nav-h) 0 0 0;
  flex-direction: column; align-items: flex-start; gap: 0;
  background: rgba(10, 18, 32, 0.98); padding: 1.5rem;
  backdrop-filter: blur(14px);
}
.nav-links.is-open a:not(.nav-cta):not(.nav-social) { padding-block: .9rem; width: 100%; border-bottom: 1px solid var(--line); }
.nav-links.is-open .nav-cta { margin-top: 1.2rem; }
.nav-links.is-open .nav-socials { margin-top: 1.2rem; gap: .9rem; }
.nav-links.is-open .nav-social { width: 44px; height: 44px; }
.nav-links.is-open .nav-social svg { width: 19px; height: 19px; }
.nav-links.is-open .nav-dropdown { width: 100%; }
.nav-links.is-open .nav-dropdown-trigger { border-bottom: none; }
.nav-links.is-open .nav-dropdown-panel {
  position: static; opacity: 1; visibility: visible; transform: none;
  min-width: 0; width: 100%; margin-bottom: .3rem;
  background: rgba(255,255,255,.03); box-shadow: none; backdrop-filter: none;
  border-color: var(--line);
}
.nav-links.is-open .nav-dropdown-panel a { width: 100%; padding-block: .6rem !important; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--nav-h);
  overflow: clip;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 46%;
  filter: saturate(1.3) contrast(1.1) brightness(1.08);
  animation: heroKenBurns 26s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1.06) translate(0, 0); }
  100% { transform: scale(1.16) translate(-1.4%, -1%); }
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(234,170,0,.10) 50%, transparent 58%);
  background-size: 320% 320%;
  mix-blend-mode: overlay;
  animation: heroSheen 10s ease-in-out infinite;
}
@keyframes heroSheen {
  0%, 100% { background-position: 120% 0%; }
  50%      { background-position: -20% 100%; }
}
.hero-bg-tint {
  position: absolute; inset: 0;
  background:
    radial-gradient(48% 58% at 63% 44%, transparent 30%, rgba(8,16,28,.55) 100%),
    linear-gradient(180deg, rgba(8,16,28,.22) 0%, rgba(8,16,28,.4) 45%, rgba(8,16,28,.86) 100%),
    linear-gradient(90deg, rgba(8,16,28,.62) 0%, rgba(8,16,28,.08) 58%, rgba(8,16,28,.16) 100%);
}
.hero-mesh {
  position: absolute; inset: -20% -10%; z-index: 1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 22% 28%, rgba(234,170,0,.22), transparent 70%),
    radial-gradient(32% 30% at 82% 70%, rgba(28,60,110,.55), transparent 72%),
    radial-gradient(26% 24% at 55% 12%, rgba(234,170,0,.14), transparent 75%);
  filter: blur(60px);
  animation: meshDrift 18s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100%  { transform: translate(0,0) scale(1); }
  33%       { transform: translate(3%, -4%) scale(1.1); }
  66%       { transform: translate(-2.5%, 3%) scale(1.05); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-inner { position: relative; z-index: 2; padding-top: 2rem; }
.hero-inner .kicker { text-shadow: 0 2px 12px rgba(4,8,16,.7); }
.hero-title {
  font-size: clamp(3.4rem, 9vw, 7.2rem);
  max-width: 15ch;
  margin-bottom: 1.6rem;
  text-shadow: 0 4px 28px rgba(4,8,16,.55);
}
.hero-title span { display: block; }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.32rem);
  color: var(--cream-2);
  max-width: 48ch;
  margin-bottom: 2.3rem;
  text-shadow: 0 2px 16px rgba(4,8,16,.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.hero-actions .btn { padding: 1.05rem 2.15rem; font-size: 1rem; }

/* =============================================================
   7. Ticker
   ============================================================= */
.ticker {
  position: relative; z-index: 3;
  background: var(--navy-brand);
  border-block: 1px solid var(--line);
  overflow: clip;
  padding-block: .85rem;
}
.ticker-track {
  display: flex; gap: 2.5rem; white-space: nowrap; width: max-content;
  animation: tickerScroll 38s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation-duration: 70s; }
}
.ticker-item {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cream-2); display: flex; align-items: center; gap: 2.5rem;
}
.ticker-item::after { content: "◆"; color: var(--gold); font-size: .6rem; margin-left: 2.5rem; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   8. Sections
   ============================================================= */
.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); position: relative; z-index: 0; }
.section::before {
  content: "";
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background-image: radial-gradient(rgba(234,170,0,.16) 1px, transparent 1.4px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 14%, rgba(0,0,0,.85) 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,.85) 14%, rgba(0,0,0,.85) 86%, transparent);
}
.team-page-hero { padding-top: calc(var(--nav-h) + 3rem); }

.error-page {
  min-height: 100svh;
  display: flex; align-items: center;
}
.error-page-inner { text-align: center; max-width: 46ch; margin-inline: auto; }
.error-page-icon { width: 64px; margin: 0 auto 1.6rem; opacity: .85; }
.error-page .section-lead { margin-inline: auto; margin-bottom: 2rem; }
.section-alt { background: var(--bg-2); }

.section-halo {
  position: absolute; inset: -35% -10% -15% -10%; z-index: -1; pointer-events: none;
  filter: blur(100px);
}
.section-halo--gold-tl { background: radial-gradient(38% 38% at 15% 20%, rgba(234,170,0,.16), transparent 72%); }
.section-halo--navy-br { background: radial-gradient(42% 42% at 85% 75%, rgba(28,60,110,.55), transparent 72%); }
.section-halo--gold-tr { background: radial-gradient(38% 38% at 82% 15%, rgba(234,170,0,.14), transparent 72%); }

.about-grid { display: grid; gap: 2.6rem; }
.about-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--cream-2);
  max-width: 74ch;
  line-height: 1.65;
}
.about-lead strong { color: var(--cream); font-weight: 600; }

.mv-grid { display: grid; gap: 1.6rem; margin-top: .5rem; perspective: 1400px; }
@media (min-width: 720px) { .mv-grid { grid-template-columns: 1fr 1fr; } }

.mv-card {
  background:
    radial-gradient(120% 140% at 12% -10%, rgba(234,170,0,.10), transparent 55%),
    linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 55%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.4rem 2.2rem;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,.65);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.mv-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
  opacity: .8;
}
.mv-card::after {
  content: attr(data-ghost);
  position: absolute; right: -.4rem; bottom: -1.6rem;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 9rem; line-height: 1; color: var(--cream);
  opacity: .04; pointer-events: none;
}
.mv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(234,170,0,.4);
  box-shadow: 0 34px 60px -24px rgba(234,170,0,.22), 0 20px 40px -28px rgba(0,0,0,.7);
}
.mv-index {
  font-family: var(--mono); color: var(--gold); font-size: .85rem; letter-spacing: .1em;
  display: block; margin-bottom: 1rem;
  position: relative; z-index: 1;
}
.mv-card h3 { font-size: 1.6rem; margin-bottom: .9rem; position: relative; z-index: 1; }
.mv-card p { color: var(--cream-2); font-size: .98rem; position: relative; z-index: 1; }

.promote-row {
  display: grid; gap: 1.5rem; margin-top: 2.6rem;
  padding-top: 2.6rem; border-top: 1px solid var(--line);
}
@media (min-width: 720px) { .promote-row { grid-template-columns: 1fr 1fr; } }
.promote-item { display: flex; gap: 1rem; }
.promote-mark {
  font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.6rem; line-height: 1;
}
.promote-item h4 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--cream); }
.promote-item p { color: var(--cream-mute); font-size: .92rem; }

.back-link {
  display: inline-block; font-size: .88rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1.6rem;
}
.back-link:hover { color: var(--gold-soft); }
.team-page-hero .section-lead { margin-bottom: 1rem; }

.team-grid {
  display: grid; gap: 1.3rem; margin-top: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.team-card {
  background: linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 60%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.6rem;
  text-align: center;
  transform-style: preserve-3d;
  box-shadow: 0 18px 36px -26px rgba(0,0,0,.6);
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  opacity: 0; transform: translateY(24px);
}
.team-card.is-visible { opacity: 1; transform: translateY(0); }
.team-card:hover {
  border-color: rgba(234,170,0,.4);
  box-shadow: 0 30px 54px -24px rgba(234,170,0,.2), 0 18px 36px -26px rgba(0,0,0,.65);
}
.team-avatar {
  width: 140px; height: 140px; margin: 0 auto 1.3rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(155deg, var(--navy-brand), var(--bg-2));
  border: 2px solid rgba(234,170,0,.35);
  overflow: hidden;
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h4 { font-size: 1.08rem; margin-bottom: .3rem; }
.team-role { font-size: .82rem; color: var(--cream-mute); margin-bottom: 1.1rem; }
.team-linkedin {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; font-weight: 600; color: var(--cream-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: .5rem 1.05rem;
  transition: border-color .3s var(--ease-out), color .3s var(--ease-out), background .3s var(--ease-out);
}
.team-linkedin svg { width: 15px; height: 15px; fill: currentColor; }
.team-linkedin:hover { border-color: var(--gold); color: var(--gold); background: rgba(234,170,0,.08); }

/* Qué hacemos cards */
.do-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .do-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .do-grid { grid-template-columns: repeat(4, 1fr); } }

.do-card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 1.7rem;
  position: relative;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
  opacity: 0; transform: translateY(28px);
}
.do-card.is-visible { opacity: 1; transform: translateY(0); }
.do-card:hover {
  border-color: rgba(234,170,0,.5);
  box-shadow: 0 24px 48px -20px rgba(234,170,0,.25);
}
.do-num { font-family: var(--mono); color: var(--gold); font-size: .82rem; letter-spacing: .1em; }
.do-card h3 { font-size: 1.18rem; margin: .9rem 0 .6rem; }
.do-card p { color: var(--cream-mute); font-size: .92rem; }

/* Variante con ícono: 2 columnas, más aire */
.do-grid--pillars { gap: 1.5rem; }
@media (min-width: 760px) {
  .do-grid--pillars { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) {
  .do-grid--pillars { grid-template-columns: 1fr 1fr; }
}

.do-card--icon {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.3rem;
  align-items: start;
  padding: 2.1rem 2rem;
}
.do-icon {
  grid-row: 1 / span 3;
  display: grid; place-items: center;
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 15px;
  color: var(--gold);
  background: rgba(234,170,0,.08);
  border: 1px solid rgba(234,170,0,.2);
  transition: background .45s var(--ease-out), border-color .45s var(--ease-out);
}
.do-icon svg { width: 26px; height: 26px; }
.do-card--icon:hover .do-icon {
  background: rgba(234,170,0,.16);
  border-color: rgba(234,170,0,.45);
}
.do-card--icon .do-num { grid-column: 2; }
.do-card--icon h3 { grid-column: 2; margin: .4rem 0 .55rem; }
.do-card--icon p  { grid-column: 2; }

/* En pantallas angostas el ícono va arriba, no al costado */
@media (max-width: 519px) {
  .do-card--icon { grid-template-columns: 1fr; }
  .do-icon { grid-row: auto; margin-bottom: 1rem; }
  .do-card--icon .do-num,
  .do-card--icon h3,
  .do-card--icon p { grid-column: 1; }
}

/* Eventos */
.events-grid { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .events-grid { grid-template-columns: 1fr 1fr; } }
.events-grid--single { max-width: 560px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .events-grid--single { grid-template-columns: 1fr; } }

.event-card {
  background: linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 60%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.9rem 1.7rem;
  transform-style: preserve-3d;
  box-shadow: 0 18px 36px -26px rgba(0,0,0,.6);
  transition: transform .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
  opacity: 0; transform: translateY(24px);
}
.event-card.is-visible { opacity: 1; transform: translateY(0); }
.event-card:hover {
  border-color: rgba(234,170,0,.4);
  box-shadow: 0 30px 54px -24px rgba(234,170,0,.2), 0 18px 36px -26px rgba(0,0,0,.65);
}
.event-top {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  margin-bottom: 1rem;
}
.event-date {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--gold);
}
.event-status {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line);
}
.event-status--confirmed { color: #7cd39a; border-color: rgba(124,211,154,.4); background: rgba(124,211,154,.08); }
.event-status--pending { color: var(--cream-mute); }
.event-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.event-card p { color: var(--cream-mute); font-size: .92rem; }
.event-media {
  border-radius: 12px; overflow: hidden; margin-bottom: 1.2rem;
}
.event-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.event-media--photo { aspect-ratio: 900 / 795; }
.event-media--photo img { object-position: top center; }

/* Historial de eventos */
.events-history { margin-top: 3.6rem; padding-top: 3.6rem; border-top: 1px solid var(--line); }
.past-events-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .past-events-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .past-events-grid { grid-template-columns: repeat(3, 1fr); } }

.past-event-card {
  display: flex; flex-direction: column;
  background: linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 60%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px -26px rgba(0,0,0,.6);
  transition: border-color .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.past-event-card:hover {
  border-color: rgba(234,170,0,.4);
  box-shadow: 0 30px 54px -24px rgba(234,170,0,.2), 0 18px 36px -26px rgba(0,0,0,.65);
}
.past-event-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-2); }
.past-event-media img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.past-event-card:hover .past-event-media img { transform: scale(1.055); }
.past-event-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(8,16,28,.72) 100%);
}
.past-event-body { padding: 1.4rem 1.5rem 1.6rem; }
.past-event-num {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--gold);
}
.past-event-body h3 { font-size: 1.12rem; margin-top: .55rem; }
.past-event-body p { color: var(--cream-mute); font-size: .9rem; margin-top: .65rem; }

@media (prefers-reduced-motion: reduce) {
  .past-event-card:hover .past-event-media img { transform: none; }
}

/* Aliados */
.allies-row {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 780px;
  margin-inline: auto;
}
@media (min-width: 640px) { .allies-row { grid-template-columns: 1fr 1fr; } }

.ally-card {
  position: relative;
  background:
    radial-gradient(120% 140% at 15% -10%, rgba(234,170,0,.12), transparent 55%),
    linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 55%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 3.2rem 2rem 2.4rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.8rem;
  min-height: 260px;
  transform-style: preserve-3d;
  box-shadow: 0 20px 40px -28px rgba(0,0,0,.65);
  transition: transform .5s var(--ease-out), border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
  opacity: 0; transform: translateY(24px);
  overflow: hidden;
}
.ally-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
  opacity: .85;
}
.ally-card.is-visible { opacity: 1; transform: translateY(0); }
.ally-card:hover {
  transform: translateY(-8px);
  border-color: rgba(234,170,0,.4);
  box-shadow: 0 36px 64px -24px rgba(234,170,0,.24), 0 20px 40px -28px rgba(0,0,0,.7);
}
.ally-badge {
  position: absolute; bottom: 4px; right: 4px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 82px; height: 82px;
  clip-path: polygon(50.0% 0.0%, 57.4% 12.7%, 69.1% 3.8%, 71.1% 18.4%, 85.4% 14.6%, 81.6% 28.9%, 96.2% 30.9%, 87.3% 42.6%, 100.0% 50.0%, 87.3% 57.4%, 96.2% 69.1%, 81.6% 71.1%, 85.4% 85.4%, 71.1% 81.6%, 69.1% 96.2%, 57.4% 87.3%, 50.0% 100.0%, 42.6% 87.3%, 30.9% 96.2%, 28.9% 81.6%, 14.6% 85.4%, 18.4% 71.1%, 3.8% 69.1%, 12.7% 57.4%, 0.0% 50.0%, 12.7% 42.6%, 3.8% 30.9%, 18.4% 28.9%, 14.6% 14.6%, 28.9% 18.4%, 30.9% 3.8%, 42.6% 12.7%);
  background: radial-gradient(circle at 35% 30%, var(--gold-soft), var(--gold) 68%);
  color: #1a1508;
  font-family: var(--mono); letter-spacing: .02em;
  filter: drop-shadow(0 10px 16px rgba(234,170,0,.65));
  transform: rotate(-6deg);
  animation: allyBadgePulse 2.2s ease-in-out infinite;
}
.ally-badge-num { font-size: 1.25rem; font-weight: 800; line-height: 1; }
.ally-badge-txt { font-size: .6rem; font-weight: 700; letter-spacing: .08em; margin-top: .05rem; }
@keyframes allyBadgePulse {
  0%, 100% { transform: rotate(-6deg) scale(1); filter: drop-shadow(0 10px 16px rgba(234,170,0,.65)); }
  50%      { transform: rotate(-6deg) scale(1.08); filter: drop-shadow(0 14px 22px rgba(234,170,0,.85)); }
}
@media (prefers-reduced-motion: reduce) {
  .ally-badge { animation: none; }
}
.ally-card-logo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 128px; width: 100%;
}
.ally-card-logo::before {
  content: "";
  position: absolute; inset: -10% -6%;
  background: radial-gradient(60% 70% at 50% 50%, rgba(242,237,224,.14), transparent 72%);
  filter: blur(4px);
  border-radius: 50%;
}
.ally-card img {
  position: relative;
  max-height: 132px; width: auto; max-width: 100%;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.45));
}
.ally-card-name {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
  color: var(--cream-mute); text-align: center; line-height: 1.5;
}
.ally-card-name span { display: block; color: var(--gold); font-weight: 700; letter-spacing: .12em; margin-top: .2rem; }

/* FAQ */
.faq-list {
  max-width: 760px; margin-inline: auto;
  display: flex; flex-direction: column; gap: 1rem;
}
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.3rem 1.6rem;
  transition: border-color .3s var(--ease-out);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: rgba(234,170,0,.35); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--cream);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--mono); font-size: 1.3rem; color: var(--gold);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--cream-mute); font-size: .95rem; margin-top: .9rem; }

/* =============================================================
   9. Form
   ============================================================= */
.section-form { background: var(--bg-2); }
.section-marquee {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.section-marquee-track {
  display: flex; align-items: center; gap: 3rem;
  width: max-content;
  animation: sectionMarqueeScroll 16s linear infinite;
}
.section-marquee-track span {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(4rem, 11vw, 8.5rem);
  line-height: 1;
  white-space: nowrap;
  color: rgba(234,170,0,.09);
}
@supports (-webkit-text-stroke: 1px black) or (text-stroke: 1px black) {
  .section-marquee-track span {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(234,170,0,.3);
    text-stroke: 1.5px rgba(234,170,0,.3);
  }
}
@keyframes sectionMarqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .section-marquee-track { animation-duration: 45s; }
}
.form-wrap {
  display: grid; gap: 3rem; position: relative;
}
@media (min-width: 960px) { .form-wrap { grid-template-columns: 1fr 1.1fr; align-items: start; } }

.form-copy p { color: var(--cream-2); margin-top: 1rem; max-width: 46ch; }
.form-areas { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .55rem; }
.form-areas li {
  font-size: .88rem; color: var(--cream-mute); padding-left: 1.3rem; position: relative;
}
.form-areas li::before { content: "—"; position: absolute; left: 0; color: var(--gold); }

.join-form {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.15rem;
}
.join-form-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(234,170,0,.14), transparent 55%),
    linear-gradient(165deg, var(--bg-4) 0%, var(--bg-3) 55%, var(--bg-2) 100%);
  padding: 2.6rem 2.2rem;
  gap: .9rem;
  box-shadow: 0 24px 48px -28px rgba(0,0,0,.6);
}
.join-form-cta::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
  opacity: .85;
}
.join-form-cta-eyebrow {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
.join-form-cta h3 { font-size: 1.7rem; }
.join-form-cta p { color: var(--cream-2); font-size: .96rem; margin-bottom: .6rem; }

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer {
  background: #071120;
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}
.footer-inner {
  display: grid; gap: 2.2rem;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand p { font-family: var(--serif); font-size: .98rem; color: var(--cream); }
.footer-brand span { display: block; font-family: var(--sans); font-size: .78rem; color: var(--cream-mute); font-style: normal; margin-top: .15rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { font-size: .9rem; color: var(--cream-mute); }
.footer-links a:hover { color: var(--gold); }
.footer-meta p { font-size: .82rem; color: var(--cream-mute); margin-bottom: .4rem; }
.footer-map-link {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--gold);
  margin-bottom: 1rem;
}
.footer-map-link:hover { color: var(--gold-soft); }
.footer-copy { margin-top: .2rem; }

/* =============================================================
   11. Custom cursor
   ============================================================= */
body.has-custom-cursor,
body.has-custom-cursor * { cursor: none !important; }

.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9999;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s var(--ease-out), width .3s var(--ease-out), height .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out);
}
.cursor-dot.is-ready, .cursor-ring.is-ready { opacity: 1; }

.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold);
}
.cursor-ring {
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid rgba(234,170,0,.5);
}
.cursor-ring.is-active {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(234,170,0,.08);
  border-color: var(--gold);
}

/* =============================================================
   12. Splash intro
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .9rem;
  background: var(--bg);
  /* CSS-only safety net: hides the splash even if the JS counter never runs */
  animation: splashSafety .01s 2.4s forwards;
}
.splash.is-out {
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .4s var(--ease-out);
}
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.splash-inner { display: flex; align-items: center; gap: .9rem; }

.splash-icon {
  width: 56px; height: auto;
  opacity: 0;
  transform: translateX(130px);
  animation: splashIconIn .7s var(--ease-out) forwards;
}
@keyframes splashIconIn {
  0%   { opacity: 0; transform: translateX(130px); }
  22%  { opacity: 1; }
  100% { opacity: 1; transform: translateX(0); }
}

.splash-word {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  color: var(--cream); white-space: nowrap;
}
.splash-word em { font-style: italic; color: var(--gold); }
.splash-word .l {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  animation: splashLetterIn .4s var(--ease-out) forwards;
}
@keyframes splashLetterIn { to { opacity: 1; transform: none; } }

.splash-counter {
  font-family: var(--mono); font-size: .82rem; letter-spacing: .1em;
  color: var(--cream-mute);
  opacity: 0;
  animation: splashLetterIn .4s var(--ease-out) .55s forwards;
}
.splash-counter-sign { color: var(--gold); margin-left: .15em; }

@media (prefers-reduced-motion: reduce) {
  .splash { animation-delay: .2s; }
  .splash-icon, .splash-word .l, .splash-counter { animation-duration: .01s; }
}

/* =============================================================
   13. Responsive tweaks
   ============================================================= */
@media (min-width: 540px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   14. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .hero-bg img, .hero::after { animation: none; }
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
