/* ═══════════════════════════════════════
   TOKENS · TIPOGRAFÍA · RESET
   ═══════════════════════════════════════ */
: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; }

/* ═══════════════════════════════════════
   UTILIDADES · CONTENEDOR
   ═══════════════════════════════════════ */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}
.texto-centrado { text-align: center; }

/* ═══════════════════════════════════════
   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: 80px;
  background-image: url('images/Bannerweb.png');
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  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); }

/* Language switcher */
.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%;
}

/* Hamburger */
.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 — HOME (Spectral style)
   ═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  padding-top: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
  background-image:
    linear-gradient(rgba(138, 145, 159, 0.75), rgba(162, 144, 157, 0.75)),
    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: scroll;
}

.hero-card {
  position: relative;
  z-index: 2;
  background: transparent;
  backdrop-filter: none;
  padding: 2rem;
  max-width: 800px;
  width: 90%;
}

.hero-line1 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-line1 span {
  color: var(--white);
  font-weight: 600;
}

.hero-tagline {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 2.5rem;
  letter-spacing: -0.02em;
}

.btn-hero {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.btn-hero:hover {
  background: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   ANIMACIÓN DE ENTRADA "SPECTRAL"
   ═══════════════════════════════════════ */
body.is-preload .hero-tagline,
body.is-preload .hero-line1,
body.is-preload .btn-hero {
  opacity: 0;
  transform: translateY(20px);
}

.hero-tagline,
.hero-line1,
.btn-hero {
  transition: opacity 1s ease, transform 1s ease;
}
.hero-tagline  { transition-delay: 0.2s; }
.hero-line1   { transition-delay: 0.8s; }
.btn-hero     { transition-delay: 1.2s; }

/* ═══════════════════════════════════════
   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Í — HOME
   ═══════════════════════════════════════ */
#sobre-mi { background: var(--base1); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1300px;
  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;
}

/* Botón outline (usado en About y páginas interiores) */
.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); }

/* Social icons (About home + página Sobre mí) */
.about-social-icons,
.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.about-social-icons a,
.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,
.social-icons a:hover {
  background: var(--teal);
}
.about-social-icons a:hover svg,
.social-icons a:hover svg {
  stroke: #fff;
}
.about-social-icons img,
.social-icons img {
  width: 16px; height: 16px;
}

/* Foto de perfil */
.about-right { position: relative; }
.about-photo-main {
  width: 100%;
  max-width: 480px;
  /* max-height: 550px; */
  aspect-ratio: 3.3/4;
  object-fit: cover;
  border-radius: 16px;
  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 0rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1100px;
  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;
}

/* ═══════════════════════════════════════
   TE AYUDO (Servicios)
   ═══════════════════════════════════════ */
#te-ayudo { background: var(--base2); }

.services-intro {
  max-width: 1300px;
  margin: 0 auto 3.5rem;
}
.services-intro .section-body {
  max-width: 800px;
  margin: 0 auto;
}

/* Triptych de servicios */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.triptych-card {
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.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;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
}
.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;
  margin-top: auto;
  justify-content: center;
}

/* Tags (usados en triptych) */
.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 — cinta dinámica
   ═══════════════════════════════════════ */
#colaboraciones {
  background: var(--base1);
  text-align: center;
  overflow: hidden;
  padding-bottom: 4rem;
}
#colaboraciones .section-title {
  color: var(--purple);
  margin-bottom: 2.5rem;
}
.collab-intro {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 0.97rem;
  color: var(--text-dark);
  line-height: 1.8;
}

.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(--base1);
  border-radius: 4px;
  width: 200px;
  height: 110px;
  padding: 1rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.00);
}
.collab-logo {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  filter: grayscale(30%) contrast(1.1);
  transition: filter 0.2s;
  mix-blend-mode: darken;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
footer {
  background-image: url('images/Bannerweb.png');
  background-size: cover;
  background-position: center bottom;
  position: relative;
  padding: 5rem 5vw 1rem;
  color: var(--white);
  z-index: 1;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto auto;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 0 0 auto;
  padding-right: 5vw;
}
.footer-logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
  grid-column: 1 / -1;
}
.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-start;
}
.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);
}

/* ═══════════════════════════════════════
   PÁGINAS INTERIORES — CLASES GENÉRICAS
   ═══════════════════════════════════════ */

/* Fondos de sección */
.section-base  { background: var(--base1); }
.section-light { background: var(--base2); }

/* ── Botones ── */
.btn-primary {
  display: inline-block;
  background: var(--purple);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.2s;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { opacity: 0.85; }

.btn-outline-dark {
  display: inline-block;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  letter-spacing: 0.03em;
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: #fff;
}

/* ── Grids de 2 columnas ── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.two-col-grid-top {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 60px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Hero de página interior ── */
.page-hero {
  padding: 200px 0 60px;
}
.page-hero-photo {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/4;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--purple);
  margin: 0 0 20px;
  line-height: 1.1;
}
.page-hero-text {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.75;
  color: #3a3a3a;
  margin-bottom: 32px;
}
.page-hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ── Sección de contenido ── */
.content-section {
  padding: 80px 0;
}
.content-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--purple);
  margin: 0 0 28px;
}
.content-text {
  font-family: var(--sans);
  font-size: 0.97rem;
  line-height: 1.8;
  color: #3a3a3a;
  margin-bottom: 20px;
}
.content-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  
  gap: 10px;
  margin-top: 56px
}
.content-photos img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}




.content-photos .obj-top    { object-position: center top; }
.content-photos .obj-bottom { object-position: center bottom; }
.content-photos .obj-20p    { object-position: center 20%; }
.content-photos .obj-80p    { object-position: center 80%; }

/* ── CTA Section ── */
.cta-section {
  padding: 80px 40px;
  text-align: center;
}
.cta-inner {
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin: 0 0 14px;
}
.cta-text {
  font-family: var(--sans);
  font-size: 1rem;
  color: #4a4a4a;
  margin-bottom: 36px;
  line-height: 1.7;
}
.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   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; }

  /* Páginas interiores */
  .two-col-grid,
  .two-col-grid-top {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }
  .page-hero-photo {
    max-width: 100%;
    aspect-ratio: 3/2;
  }
  .content-photos {
    /* flex-direction: column; */
    grid-template-columns: 1fr;
    margin-top: 0;        /* ← en móvil no hace falta offset */
  }

  .content-photos img {
    aspect-ratio: 4/3;
  }
  .cta-section {
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-tagline { font-size: 1.9rem; }
}

/* ═══════════════════════════════════════
   ACCESIBILIDAD
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-inner {
    animation: none;
  }
  .hero-tagline,
  .hero-line1,
  .btn-hero {
    transition: none;
    transition-delay: 0s;
  }
  body.is-preload .hero-tagline,
  body.is-preload .hero-line1,
  body.is-preload .btn-hero {
    opacity: 1;
    transform: none;
  }
}