/* ── TOKENS ── */
:root {
  --purple:     #806491;
  --navy:       #02315E;
  --teal:       #305079;
  --base1:      #E8E1E1;
  --base2:      #F0ECEC;
  --white:      #FFFFFF;
  --text-dark:  #1a1a2e;
  --text-mid:   #305079;
  --text-light: #E8E1E1;
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--base2);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─────────────────────────────────────
   NAV
───────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background-image: url('mapa-header');
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2,49,94,0.82) 0%, rgba(48,80,121,0.75) 100%);
  z-index: 0;
}
nav > * { position: relative; z-index: 1; }

.nav-logo {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.lang-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  user-select: none;
}
.lang-select select {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.lang-flag { font-size: 1rem; }

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

/* ─────────────────────────────────────
   HERO (Corregido)
───────────────────────────────────── */
#hero {
  min-height: 100vh;
  padding-top: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Fondo con overlay y background fijado directamente aquí */
  background-image: 
    linear-gradient(rgba(240,236,236,0.55), rgba(240,236,236,0.55)), 
    url('https://static.wixstatic.com/media/11062b_77378fc0da68439ebd8fd24a2f51e50cf000.jpg/v1/fill/w_1920,h_1080,al_c,q_80/11062b_77378fc0da68439ebd8fd24a2f51e50cf000.jpg');
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(6px);
  padding: 3rem 4rem;
  max-width: 680px;
  width: 90%;
  border-radius: 2px;
}
.hero-line1 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  margin-bottom: 0.15rem;
}
.hero-line1 span { color: var(--purple); font-weight: 700; }
.hero-tagline {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.1;
  margin-bottom: 1.8rem;
}
.btn-hero {
  display: inline-block;
  padding: 0.75rem 2.2rem;
  background: var(--purple);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, transform 0.15s;
}
.btn-hero:hover { background: var(--navy); transform: translateY(-1px); }

/* ─────────────────────────────────────
   SHARED SECTION
───────────────────────────────────── */
section { padding: 5.5rem 5vw; }
.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--purple);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.section-body {
  font-size: 0.97rem;
  color: var(--text-dark);
  line-height: 1.8;
}

/* ─────────────────────────────────────
   SOBRE MÍ
───────────────────────────────────── */
#sobre-mi {
  background: var(--base1);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 1.2rem;
}
.about-left p {
  font-size: 0.97rem;
  color: var(--text-dark);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.about-cta-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.btn-outline {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--purple); color: var(--white); }
.about-social-icons {
  display: flex;
  gap: 1rem;
}
.about-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  transition: background 0.2s, border-color 0.2s;
}
.about-social-icons a:hover { background: var(--teal); }
.about-social-icons img { width: 16px; height: 16px; }

.about-right {
  position: relative;
}
.about-photo-main {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: 3px;
  display: block;
}
.about-photo-accent {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  width: 42%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 2px;
  border: 4px solid var(--base1);
}

/* ─────────────────────────────────────
   STATS
───────────────────────────────────── */
#stats {
  background: var(--base2);
  padding: 4rem 5vw;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.stat-card {
  background: var(--purple);
  padding: 2.2rem 1.5rem 1.8rem;
  border-radius: 2px;
  text-align: left;
}
.stat-num {
  font-family: var(--sans);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.8rem;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.4;
}

/* ─────────────────────────────────────
   LO QUE HAGO
───────────────────────────────────── */
#lo-que-hago {
  background: var(--base2);
}
.services-intro {
  max-width: 820px;
  margin-bottom: 3.5rem;
}
.services-intro .section-body { max-width: 700px; }

.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
}
.triptych-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
}
.triptych-card:hover {
  box-shadow: 0 8px 32px rgba(128,100,145,0.15);
  transform: translateY(-3px);
}
.triptych-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.triptych-body {
  padding: 1.5rem 1.4rem 1.8rem;
}
.triptych-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 0.6rem;
}
.triptych-text {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.triptych-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.tag {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border: 1px solid rgba(128,100,145,0.3);
  color: var(--purple);
  border-radius: 1px;
}

/* ─────────────────────────────────────
   COLABORACIONES
───────────────────────────────────── */
#colaboraciones {
  background: var(--base1);
  text-align: center;
  overflow: hidden;
  padding-bottom: 4rem;
}
#colaboraciones .section-title {
  color: var(--purple);
  margin-bottom: 2.5rem;
}

.marquee-track {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 1rem 0;
}
.marquee-track::before,
.marquee-track::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--base1) 0%, transparent 100%);
}
.marquee-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--base1) 0%, transparent 100%);
}
.marquee-inner {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 22s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.collab-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 4px;
  width: 200px;
  height: 110px;
  padding: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.collab-logo {
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(30%);
  transition: filter 0.2s;
}
.collab-logo-wrap:hover .collab-logo { filter: none; }

.collab-placeholder {
  width: 200px; height: 110px;
  background: var(--white);
  border: 2px dashed rgba(128,100,145,0.25);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--purple);
  flex-shrink: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────
   FOOTER
───────────────────────────────────── */
footer {
  background-image: url('mapa-header');
  background-size: cover;
  background-position: center bottom;
  background-color: var(--navy);
  position: relative;
  padding: 4rem 5vw 2.5rem;
  color: var(--white);
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,49,94,0.88) 0%, rgba(48,80,121,0.82) 100%);
  z-index: 0;
}
.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}
.footer-logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}
.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
}
.footer-contact-row a { color: rgba(255,255,255,0.8); transition: color 0.2s; }
.footer-contact-row a:hover { color: var(--white); }
.footer-icon {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  flex-shrink: 0;
}
.footer-icon svg { width: 11px; height: 11px; stroke: var(--white); fill: none; stroke-width: 2; }

.footer-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* ─────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 199;
  }
  nav.menu-open .nav-links a { font-size: 1.1rem; color: var(--white); }
  .hero-card { padding: 2rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-right { order: -1; }
  .about-photo-accent { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .triptych { grid-template-columns: 1fr; max-width: 480px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-right { align-items: flex-start; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-tagline { font-size: 1.9rem; }
}