

:root{
  --abismo: #071C3C;
  --abismo-2: #0B2A52;
  --teal: #0E7C86;
  --teal-light: #47A9AC;
  --espuma: #CFEDE8;
  --arena: #FBF6EE;
  --arena-2: #F2E9D8;
  --coral: #FF6B4A;
  --coral-dark: #E85436;
  --oro: #FFB648;
  --tinta: #0B1E2B;

  --font-display: "Fraunces", serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "Space Mono", monospace;

  --wrap: 1120px;
  --radius: 18px;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--arena);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- grain texture ---------- */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  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");
}

.wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap--split{ display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.wrap--center{ text-align: center; }

/* ---------- eyebrow / labels ---------- */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oro);
  margin: 0 0 18px;
}
.eyebrow--dark{ color: var(--coral-dark); }

.h2{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}
.h2--light{ color: var(--arena); }
.h2--sunset{ color: var(--abismo); }

.h3{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin: 52px 0 18px;
}
.h3--light{ color: var(--espuma); }

.lead{
  font-size: 17px;
  line-height: 1.75;
  color: #33475a;
  max-width: 54ch;
}
.lead--narrow{ margin-bottom: 40px; }

/* ---------- widgets (home) ---------- */
.widgets{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
.widget-card{
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid rgba(7,28,60,0.08);
  border-radius: var(--radius); padding: 36px 34px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.widget-card:hover{ transform: translateY(-4px); border-color: var(--coral); box-shadow: 0 20px 40px -20px rgba(7,28,60,0.22); }
.widget-card__num{
  font-family: var(--font-mono); font-size: 12px; color: var(--coral-dark);
  border: 1px solid rgba(232,84,54,0.35); border-radius: 100px;
  padding: 4px 11px; display: inline-block; width: fit-content;
}
.widget-card__title{ font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--abismo); margin: 0; }
.widget-card__desc{ color: #33475a; font-size: 15px; line-height: 1.65; margin: 0; flex-grow: 1; }
.widget-card__arrow{ font-family: var(--font-mono); font-size: 13px; color: var(--coral-dark); align-self: flex-start; }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  mix-blend-mode: normal;
}
.nav__brand{
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; color: var(--arena);
}
.nav__brand-mark{
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.02em;
}
.nav__brand-name{ letter-spacing: 0.04em; }

.nav__links{ display: flex; align-items: center; gap: 34px; }
.nav__links a{
  font-family: var(--font-mono); font-size: 12.5px;
  color: rgba(255,255,255,0.82); letter-spacing: 0.04em;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav__links a:hover{ color: var(--oro); border-color: var(--oro); }
.nav__links a.is-active{ color: var(--oro); border-color: var(--oro); }

/* ---------- page-header (para páginas internas sin hero completo) ---------- */
.page-header{
  padding: 168px 0 70px;
  background: linear-gradient(180deg, #030F22 0%, var(--abismo) 45%, var(--abismo-2) 100%);
}
.page-header .eyebrow{ margin-bottom: 14px; }
.page-header__title{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 64px);
  color: var(--arena);
  margin: 0;
  letter-spacing: -0.01em;
}

/* ---------- widgets (portada simple) ---------- */
.widgets{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.widget-card{
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(160deg, var(--abismo-2) 0%, var(--abismo) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 34px 32px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.widget-card:hover{ transform: translateY(-4px); border-color: var(--teal-light); box-shadow: 0 24px 48px -20px rgba(7,28,60,0.5); }
.widget-card__icon{
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(71,169,172,0.18); border: 1px solid rgba(71,169,172,0.4);
  color: var(--teal-light);
}
.widget-card__icon svg{ width: 24px; height: 24px; }
.widget-card__title{ font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--arena); }
.widget-card__text{ font-size: 15px; line-height: 1.65; color: rgba(207,237,232,0.75); margin: 0; }
.widget-card__arrow{ margin-top: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--oro); }

/* ---------- footer simple (páginas sin sección de contacto completa) ---------- */
.site-footer{
  background: var(--abismo);
  padding: 8px 0;
}
.site-footer .footer-bottom{
  border-top-color: rgba(255,255,255,0.12);
  color: rgba(207,237,232,0.6);
}
.nav__cta{
  color: var(--abismo) !important;
  background: var(--oro);
  padding: 9px 18px !important;
  border-radius: 100px;
  border-bottom: none !important;
}
.nav__cta:hover{ background: var(--arena) !important; color: var(--abismo) !important; }

.nav__burger{ display: none; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav__burger span{
  display: block; width: 22px; height: 2px; background: var(--arena);
  margin: 5px 0; transition: transform .25s ease, opacity .25s ease;
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, #030F22 0%, var(--abismo) 45%, var(--abismo-2) 100%);
  isolation: isolate;
}

.hero__ocean{ position: absolute; inset: 0; z-index: -1; }

.hero__sun{
  position: absolute;
  top: 8%; left: 50%; transform: translateX(-50%);
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--oro) 0%, var(--coral) 55%, transparent 72%);
  opacity: 0.5; filter: blur(6px);
  animation: sunPulse 8s ease-in-out infinite;
}
@keyframes sunPulse{
  0%,100%{ opacity: 0.42; transform: translateX(-50%) scale(1); }
  50%{ opacity: 0.58; transform: translateX(-50%) scale(1.06); }
}

.hero__waves{ position: absolute; bottom: 0; left: 0; width: 100%; height: 46%; }
.wave{ opacity: 0.9; }
.wave--1{ fill: #0B2C55; animation: waveShift 13s ease-in-out infinite; }
.wave--2{ fill: #082144; animation: waveShift 17s ease-in-out infinite reverse; }
.wave--3{ fill: #051834; animation: waveShift 21s ease-in-out infinite; }
@keyframes waveShift{
  0%,100%{ transform: translateX(0) translateY(0); }
  50%{ transform: translateX(-2.5%) translateY(6px); }
}

.hero__content{ position: relative; z-index: 2; padding: 0 40px; max-width: 860px; }

.hero__title{
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(58px, 11vw, 148px);
  line-height: 0.94;
  color: var(--arena);
  margin: 0 0 26px;
  letter-spacing: -0.02em;
}
.hero__title span{
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, var(--oro) 0%, var(--coral) 55%, var(--teal-light) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__tagline{
  font-size: 18px; line-height: 1.6; color: rgba(207,237,232,0.85);
  max-width: 46ch; margin: 0 0 40px;
}

.hero__actions{ display: flex; gap: 16px; flex-wrap: wrap; }

.btn{
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.03em;
  padding: 15px 28px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary{ background: var(--coral); color: var(--arena); }
.btn--primary:hover{ background: var(--oro); color: var(--abismo); transform: translateY(-2px); }
.btn--ghost{ border: 1px solid rgba(255,255,255,0.35); color: var(--arena); }
.btn--ghost:hover{ border-color: var(--oro); color: var(--oro); transform: translateY(-2px); }
.btn--ghost-dark{ border: 1px solid rgba(7,28,60,0.3); color: var(--abismo); }
.btn--ghost-dark:hover{ border-color: var(--coral); color: var(--coral-dark); transform: translateY(-2px); }

.hero__scroll{
  position: absolute; bottom: 34px; left: 40px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(207,237,232,0.65);
}
.hero__scroll-dot{ animation: dotDrop 1.8s ease-in-out infinite; }
@keyframes dotDrop{
  0%{ transform: translateY(0); opacity: 1; }
  60%{ transform: translateY(9px); opacity: 0.2; }
  61%{ transform: translateY(-2px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* ============================================================
   DIVIDERS — signature wave-line seams between sections
   ============================================================ */
.divider{ line-height: 0; }
.divider svg{ width: 100%; height: 60px; display: block; }
.divider--foam path{ fill: var(--arena); }
.divider--to-deep{ background: var(--arena); }
.divider--to-deep path{ fill: var(--abismo); }
.divider--to-foam{ background: var(--abismo); }
.divider--to-foam path{ fill: var(--arena); }

/* ============================================================
   SECTIONS — general
   ============================================================ */
.section{ padding: 108px 0; }
.section--foam{ background: var(--arena); }
.section--deep{ background: var(--abismo); }
.section--sunset{
  padding: 120px 0 40px;
  background: linear-gradient(165deg, var(--espuma) 0%, var(--arena-2) 55%, #FFE3C7 100%);
}

/* ---------- sobre mi ---------- */
.photo-card{
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(7,28,60,0.35);
  transform: rotate(-2deg);
}
.photo-card img{ width: 100%; height: 460px; object-fit: cover; }
.photo-card__tag{
  position: absolute; bottom: 16px; left: 16px;
  background: rgba(7,28,60,0.75); backdrop-filter: blur(4px);
  color: var(--arena); font-family: var(--font-mono); font-size: 11px;
  padding: 7px 13px; border-radius: 100px; letter-spacing: 0.04em;
}

.stat-row{ display: flex; gap: 34px; margin-top: 38px; }
.stat{ display: flex; flex-direction: column; }
.stat__num{ font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--teal); line-height: 1; }
.stat__label{ font-family: var(--font-mono); font-size: 11px; color: #5b6c78; margin-top: 8px; line-height: 1.4; }

/* ---------- que hago ---------- */
.cards-2{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }

.feat-card{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 38px 34px;
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.feat-card:hover{ border-color: rgba(255,182,72,0.5); transform: translateY(-4px); }
.feat-card__num{
  font-family: var(--font-mono); font-size: 12px; color: var(--oro);
  border: 1px solid rgba(255,182,72,0.4); border-radius: 100px;
  padding: 4px 11px; display: inline-block; margin-bottom: 20px;
}
.feat-card h3{
  font-family: var(--font-display); font-size: 22px; font-weight: 600;
  color: var(--arena); margin: 0 0 14px; line-height: 1.3;
}
.feat-card p{ color: rgba(207,237,232,0.8); line-height: 1.7; font-size: 15px; margin: 0 0 18px; }
.feat-card__link{
  font-family: var(--font-mono); font-size: 13px; color: var(--teal-light);
  border-bottom: 1px solid rgba(71,169,172,0.4);
}
.feat-card__link:hover{ color: var(--oro); border-color: var(--oro); }

.tag-row{ display: flex; flex-wrap: wrap; gap: 10px; }
.tag-pill{
  font-family: var(--font-mono); font-size: 12px; color: var(--espuma);
  background: rgba(14,124,134,0.25); border: 1px solid rgba(71,169,172,0.35);
  padding: 7px 13px; border-radius: 100px;
}

/* ---------- proyectos ---------- */
.profile-banner{
  display: flex; align-items: center; justify-content: space-between;
  background: var(--abismo); color: var(--arena);
  border-radius: var(--radius); padding: 30px 34px;
  margin: 8px 0 52px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.profile-banner:hover{ transform: translateY(-3px); box-shadow: 0 20px 40px -18px rgba(7,28,60,0.4); }
.profile-banner__eyebrow{
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--oro); margin-bottom: 8px;
}
.profile-banner__title{ font-family: var(--font-display); font-size: 22px; }
.profile-banner__arrow{ font-size: 26px; color: var(--coral); }

.link-card{
  display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid rgba(7,28,60,0.08);
  border-radius: var(--radius); padding: 26px 28px;
  transition: transform .25s ease, border-color .25s ease;
}
.link-card:hover{ transform: translateY(-3px); border-color: var(--coral); }
.link-card__kicker{ font-family: var(--font-mono); font-size: 11px; color: var(--teal); text-transform: uppercase; letter-spacing: 0.08em; }
.link-card__title{ font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.link-card__arrow{ font-size: 18px; color: var(--coral); align-self: flex-end; margin-top: -22px; }

.tide-list{ display: flex; flex-direction: column; border-top: 1px solid rgba(7,28,60,0.1); }
.tide-list li{ border-bottom: 1px solid rgba(7,28,60,0.1); }
.tide-list a{
  display: flex; align-items: center; gap: 16px;
  padding: 18px 6px; font-size: 15px; color: var(--tinta);
  transition: color .2s ease, padding-left .2s ease;
}
.tide-list a:hover{ color: var(--coral-dark); padding-left: 12px; }
.tide-list__tag{
  font-family: var(--font-mono); font-size: 11px; color: var(--teal);
  border: 1px solid rgba(14,124,134,0.35); border-radius: 6px;
  padding: 3px 8px; flex-shrink: 0;
}
.tide-list__arrow{ margin-left: auto; opacity: 0.5; }

/* ---------- talleres ---------- */
.workshops{ display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.workshop-card{
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
}
.workshop-card__head{ display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.workshop-card__year{
  font-family: var(--font-mono); font-size: 11px; color: var(--abismo);
  background: var(--oro); padding: 3px 9px; border-radius: 5px;
}
.workshop-card h3{ font-family: var(--font-display); font-size: 19px; color: var(--arena); margin: 0; font-weight: 600; }
.workshop-card p{ color: rgba(207,237,232,0.75); font-size: 14.5px; line-height: 1.7; margin: 0 0 16px; }
.workshop-card a{ font-family: var(--font-mono); font-size: 12.5px; color: var(--teal-light); border-bottom: 1px solid rgba(71,169,172,0.4); }
.workshop-card a:hover{ color: var(--oro); border-color: var(--oro); }

/* burbujas */
.bubbles{ display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.bubble{
  font-family: var(--font-mono); font-size: 13px; color: var(--abismo);
  padding: 14px 22px; border-radius: 100px;
  animation: floaty 6s ease-in-out infinite;
}
.bubble--1{ background: var(--espuma); }
.bubble--2{ background: var(--oro); animation-delay: -2s; }
.bubble--3{ background: #FFA98C; animation-delay: -4s; }
@keyframes floaty{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-7px); }
}

/* ---------- contacto ---------- */
.contact-links{
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  margin: 46px 0 90px;
}
.contact-link{
  background: #fff; border-radius: var(--radius);
  padding: 26px 40px; min-width: 260px;
  border: 1px solid rgba(7,28,60,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-link:hover{ transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(7,28,60,0.25); }
.contact-link__label{
  display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--coral-dark); margin-bottom: 10px;
}
.contact-link__value{ font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--abismo); }

.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid rgba(7,28,60,0.12);
  padding: 26px 0; font-family: var(--font-mono); font-size: 12px; color: #6b7c86;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px){
  .wrap--split{ grid-template-columns: 1fr; gap: 40px; }
  .cards-2{ grid-template-columns: 1fr; }
  .workshops{ grid-template-columns: 1fr; }
  .widgets{ grid-template-columns: 1fr; }
  .widgets{ grid-template-columns: 1fr; }
  .nav__links{ display: none; }
  .nav__burger{ display: block; }
}

@media (max-width: 900px){
  .nav.is-open .nav__links{
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--abismo); padding: 26px 40px 34px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 600px){
  .wrap{ padding: 0 22px; }
  .nav{ padding: 18px 22px; }
  .hero__content{ padding: 0 22px; }
  .section{ padding: 76px 0; }
  .stat-row{ gap: 22px; }
  .contact-links{ flex-direction: column; align-items: center; }
}
