/* =============================================================
   Joaquín Oliveto — Portafolio
   Lenguaje visual: crema + celeste + arena, radios generosos,
   tipografía geométrica, secciones orgánicas.
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --cream:      #f6f1ea;
  --cream-2:    #fdfaf6;
  --sand:       #f0cf9f;
  --sand-deep:  #e5bb7f;
  --sand-soft:  #fdf1e1;
  --sky:        #9dc8dc;
  --sky-deep:   #6ba7c0;
  --sky-soft:   #e9f3f8;
  --ink:        #3a3a3a;
  --ink-soft:   #5f5d59;
  --muted:      #8a8681;
  --dark:       #3b3b3b;
  --dark-2:     #333333;
  --white:      #ffffff;
  --line:       rgba(58, 58, 58, .12);
  --line-dark:  rgba(246, 241, 234, .16);

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease:      cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, .46, .45, .94);

  --container: 1140px;
  --nav-h: 92px;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--sand); color: var(--ink); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--cream);
  padding: .8rem 1.4rem; border-radius: 0 0 18px 0;
}
.skip-link:focus { left: 0; }

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

.container {
  width: min(100% - 3rem, var(--container));
  margin-inline: auto;
}

/* ---------- 3. Tipografía ---------- */
.h-display {
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  text-transform: uppercase;
  color: var(--ink);
}
.h-sky { color: var(--sky); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.section { padding: clamp(5rem, 11vw, 9rem) 0; }
.section-tight { padding: clamp(2rem, 5vw, 4rem) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head-center { margin-inline: auto; text-align: center; }
.section-lead { margin-top: 1.1rem; color: var(--muted); }

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--sand);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .35s var(--ease), color .35s var(--ease),
              transform .35s var(--ease), border-color .35s var(--ease),
              box-shadow .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-lg { padding: .95rem 2.2rem; font-size: 1rem; }

.btn-sand  { --btn-bg: var(--sand); }
.btn-sand:hover  { --btn-bg: var(--white); box-shadow: 0 12px 30px rgba(58,58,58,.12); }

.btn-sky   { --btn-bg: var(--sky); }
.btn-sky:hover   { --btn-bg: var(--white); box-shadow: 0 12px 30px rgba(58,58,58,.12); }

.btn-white { --btn-bg: var(--white); }
.btn-white:hover { --btn-bg: var(--sand); }

.btn-outline {
  --btn-bg: transparent;
  border-color: var(--line);
}
.btn-outline:hover { --btn-bg: var(--sky); border-color: var(--sky); }

.btn-clear {
  --btn-bg: rgba(255,255,255,.14);
  --btn-fg: #fff;
  border-color: rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.btn-clear:hover { --btn-bg: #fff; --btn-fg: var(--ink); border-color: #fff; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--sky-deep);
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow span { transition: transform .3s var(--ease); }
.link-arrow:hover { gap: .7rem; color: var(--ink); }

.dot-live {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ac07a;
  box-shadow: 0 0 0 0 rgba(74,192,122,.55);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,192,122,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(74,192,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,192,122,0); }
}

/* ---------- 5. Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 1.5rem;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  width: min(100%, var(--container));
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: .65rem .7rem .65rem 1.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  transition: background .4s var(--ease), color .4s var(--ease),
              border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.is-scrolled .nav-pill {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(58,58,58,.08);
  color: var(--ink);
  box-shadow: 0 14px 40px rgba(58, 58, 58, .10);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 600;
  font-size: 1.02rem;
  margin-right: auto;
}
.nav-logo { width: 34px; height: 21px; flex: none; }

.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .93rem;
  font-weight: 400;
  opacity: .92;
  transition: opacity .3s var(--ease);
}
.nav-link::before {
  content: "";
  width: 10px; height: 1.5px;
  background: currentColor;
  opacity: .55;
  transition: width .3s var(--ease), opacity .3s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::before { width: 18px; opacity: 1; }
.nav-link.is-active::before { width: 18px; opacity: 1; }

.nav-cta { flex: none; }

.nav-lang {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: .75;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: opacity .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.nav-lang:hover { opacity: 1; background: rgba(255,255,255,.16); }
.nav.is-scrolled .nav-lang:hover { background: var(--sky-soft); }

.nav-lang-mobile {
  width: auto;
  height: auto;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: .7rem .9rem;
  opacity: 1;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  justify-content: flex-start;
  gap: .5rem;
}
.nav-lang-mobile:hover { background: var(--sky-soft); }

.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.16);
  cursor: pointer;
  padding: 0;
  place-items: center;
  align-content: center;
  gap: 5px;
}
.nav.is-scrolled .nav-burger { background: rgba(58,58,58,.07); }
.nav-burger i {
  display: block;
  width: 18px; height: 1.8px;
  background: currentColor;
  border-radius: 2px;
  margin: 0 auto;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.nav-burger i + i { margin-top: 4px; }
.nav.is-open .nav-burger i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.nav.is-open .nav-burger i:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: var(--nav-h) 1.5rem auto 1.5rem;
  z-index: 99;
  display: grid;
  gap: .3rem;
  padding: 1.4rem;
  border-radius: 34px;
  background: var(--cream-2);
  box-shadow: 0 24px 60px rgba(58,58,58,.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.nav-mobile.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-mobile a {
  padding: .75rem .9rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
}
.nav-mobile a:hover { background: var(--sky-soft); }
.nav-mobile .btn { margin-top: .6rem; justify-content: center; }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 8rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; z-index: -2; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(4,42,54,.30) 0%, rgba(4,42,54,.05) 60%, transparent 100%),
    linear-gradient(180deg, rgba(6,48,60,.34) 0%, transparent 38%);
}

.hero-foam-a { animation: drift-a 42s linear infinite; transform-origin: center; }
.hero-foam-b { animation: drift-b 33s linear infinite; transform-origin: center; }
@keyframes drift-a {
  0%   { transform: translate3d(0,0,0) scale(1.04); }
  50%  { transform: translate3d(-26px, 14px, 0) scale(1.08); }
  100% { transform: translate3d(0,0,0) scale(1.04); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0,0,0) scale(1.06); }
  50%  { transform: translate3d(22px, -12px, 0) scale(1.02); }
  100% { transform: translate3d(0,0,0) scale(1.06); }
}
.hero-shore-a { animation: shore 13s ease-in-out infinite; }
.hero-shore-b { animation: shore 17s ease-in-out infinite reverse; }
@keyframes shore {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(-18px, 10px, 0); }
}

.hero-inner {
  position: relative;
  text-align: center;
  color: #fff;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.86);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #f4f0ea;
  text-shadow: 0 6px 40px rgba(4, 40, 52, .35);
}
.hero-sub {
  margin: 1.5rem auto 0;
  max-width: 32ch;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.92);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
}

[data-hero] {
  opacity: 0;
  transform: translateY(22px);
  animation: heroIn 1s var(--ease) forwards;
}
[data-hero="1"] { animation-delay: .15s; }
[data-hero="2"] { animation-delay: .28s; }
[data-hero="3"] { animation-delay: .42s; }
[data-hero="4"] { animation-delay: .56s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
  position: absolute;
  bottom: 3.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.6px solid rgba(58,58,58,.28);
  border-radius: 999px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 8px;
  border-radius: 999px;
  background: rgba(58,58,58,.45);
  animation: scrollDot 1.9s var(--ease-soft) infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0);    opacity: 0; }
  25%  { opacity: 1; }
  75%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- 7. Sobre mí ---------- */
.section-about {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-media { position: relative; }
.blob {
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(58,58,58,.12);
  animation: blobFloat 9s ease-in-out infinite;
}
.blob svg,
.blob img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes blobFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.about-badge {
  position: absolute;
  right: 2%;
  bottom: 6%;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(58,58,58,.14);
}

.about-body p { margin-top: 1.3rem; max-width: 52ch; }
.about-body .h-display { margin-bottom: .4rem; }
.about-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}
.about-actions .btn-outline svg { width: 18px; height: 18px; }

/* ---------- 8. Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: start;
}

.service-hero {
  border-radius: 48px 48px 48px 48px;
  background: var(--sand-soft);
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.service-hero:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(58,58,58,.10);
}
.service-hero-body { padding: clamp(1.8rem, 3vw, 2.6rem); }
.service-hero h3 {
  font-size: clamp(1.5rem, 2.6vw, 1.95rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}
.service-hero p { margin-top: 1rem; font-size: .95rem; }
.service-hero-actions {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.service-hero-art {
  border-radius: 48px 8px 48px 8px;
  overflow: hidden;
  margin: 0 clamp(1.8rem, 3vw, 2.6rem) clamp(1.8rem, 3vw, 2.6rem);
}
.svc-spark circle { animation: sparkPop 3.6s var(--ease-soft) infinite; }
.svc-spark circle:nth-child(2) { animation-delay: .5s; }
.svc-spark circle:nth-child(3) { animation-delay: 1s; }
@keyframes sparkPop { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
}
.service-item {
  padding: 1.6rem 1.5rem;
  border-radius: 34px;
  background: transparent;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.service-item:hover { background: var(--sand-soft); transform: translateY(-4px); }
.service-item h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--ink);
}
.service-item p { margin: .7rem 0 1.1rem; font-size: .92rem; }

/* ---------- 9. CTA pill ---------- */
.cta-band { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }
.cta-pill {
  border-radius: 999px;
  background: var(--sky);
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 5rem);
  text-align: center;
}
.cta-pill h2 {
  font-size: clamp(1.55rem, 4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.cta-pill .btn { margin-top: 2rem; }

@media (max-width: 720px) {
  .cta-pill { border-radius: 48px; }
}

/* ---------- 10. Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.project-card {
  padding: 1.4rem;
  border-radius: 40px;
  transition: background .45s var(--ease), transform .45s var(--ease);
}
.project-card:hover { background: var(--sand-soft); transform: translateY(-6px); }

.project-shot {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: 34px 34px 34px 34px;
  overflow: hidden;
  padding: .8rem;
  --shot-bg: #123c46;
  --shot-fg: #e9f3f8;
  --shot-accent: #f0cf9f;
  background: var(--shot-bg);
}
.shot-fidetrac { --shot-bg: #12414c; --shot-fg: #dfeef1; --shot-accent: #eab558; }
.shot-skinny   { --shot-bg: #4a1f1c; --shot-fg: #fbeee1; --shot-accent: #f2a03c; }

.shot-chrome { display: flex; gap: 6px; padding: .3rem .4rem .6rem; }
.shot-chrome i {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--shot-fg) 42%, transparent);
}
.shot-body {
  display: block;
  height: calc(100% - 26px);
  border-radius: 18px;
  overflow: hidden;
}
.shot-body img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.shot-go {
  position: absolute;
  right: 1rem; bottom: 1rem;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.project-shot:hover .shot-go { opacity: 1; transform: translateY(0) scale(1); }

.project-kind {
  margin-top: 1.4rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-card h3 {
  margin-top: .4rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.project-desc { margin-top: .7rem; font-size: .95rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.1rem 0; }
.project-tags span {
  padding: .3rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- 11. Cómo trabajo ---------- */
.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.acc-item { border-bottom: 1px solid var(--line); }
.acc-item:first-child { border-top: 1px solid var(--line); }
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem .4rem;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.acc-head:hover { padding-left: .9rem; color: var(--sky-deep); }
.acc-head i {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.acc-head i::before, .acc-head i::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.6px;
  background: var(--sand-deep);
  transition: transform .4s var(--ease), opacity .3s var(--ease);
}
.acc-head i::after { transform: rotate(90deg); }
.acc-item.is-open .acc-head i::after { transform: rotate(0deg); opacity: 0; }
.acc-item.is-open .acc-head { color: var(--sky-deep); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc-panel > p {
  overflow: hidden;
  font-size: .95rem;
  padding-right: 2rem;
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-item.is-open .acc-panel > p { padding-bottom: 1.4rem; }

.work-body .btn { margin-top: 1.6rem; }
.work-art {
  margin-top: 2.5rem;
  border-radius: 130px 12px 130px 12px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(58,58,58,.12);
}

/* ---------- 12. Marquee ---------- */
.marquee {
  border-radius: 999px;
  background: var(--sand);
  padding: 2.5rem 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--white);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 720px) { .marquee { border-radius: 44px; } }

/* ---------- 13. Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-art {
  border-radius: 12px 12px 12px 140px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(58,58,58,.14);
}
.contact-art svg { width: 100%; height: auto; }
.ripple-a { animation: ripple 8s ease-in-out infinite; }
.ripple-b { animation: ripple 8s ease-in-out infinite reverse; }
@keyframes ripple {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(-22px); }
}

.contact-info { margin-top: 2rem; display: grid; gap: .3rem; }
.contact-info a, .ci-static {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .8rem 1rem;
  border-radius: 999px;
  transition: background .35s var(--ease);
}
.contact-info a:hover { background: var(--sky-soft); }
.ci-ico {
  width: 40px; height: 40px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sand-soft);
  color: var(--ink);
}
.ci-ico svg { width: 20px; height: 20px; }
.contact-info span span, .contact-info > li span > strong { display: block; }
.contact-info strong {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-info a > span:last-child,
.ci-static > span:last-child { font-size: .95rem; color: var(--ink); line-height: 1.4; }

.contact-lead { margin-top: 1.2rem; max-width: 46ch; }
.contact-form { margin-top: 2rem; display: grid; gap: .7rem; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.contact-form textarea { border-radius: 30px; resize: vertical; min-height: 130px; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: var(--white);
}
.contact-form .btn { justify-self: start; margin-top: .4rem; }
.form-note { font-size: .85rem; color: var(--muted); }

.spinner {
  display: none;
  width: 16px; height: 16px;
  border: 2px solid rgba(58,58,58,.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-form.is-sending .spinner { display: block; }
.contact-form.is-sending .btn-label { opacity: .55; }
.contact-form.is-sent { display: none; }

.form-success {
  margin-top: 2rem;
  display: none;
  padding: 2rem;
  border-radius: 34px;
  background: var(--sky-soft);
}
.form-success.is-visible { display: block; }
.form-success .check {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--sky);
  color: var(--white);
  margin-bottom: 1rem;
}
.form-success .check svg { width: 24px; height: 24px; }
.form-success h3 { font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.form-success p { margin-top: .4rem; }

/* ---------- 14. Footer ---------- */
.footer { padding: 0 1.5rem; }
.footer-card {
  width: min(100%, calc(var(--container) + 3rem));
  margin-inline: auto;
  background: var(--dark);
  color: var(--cream);
  border-radius: 60px 60px 0 0;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.8rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-bottom: 2.4rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.3rem;
  font-weight: 600;
}
.footer-brand .nav-logo { width: 38px; height: 24px; color: var(--sky); }
.footer-mail {
  padding: .8rem 1.6rem;
  border-radius: 999px;
  background: rgba(246,241,234,.08);
  font-size: .95rem;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.footer-mail:hover { background: var(--sand); color: var(--ink); }

.footer-mid {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 4rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.footer-links { display: grid; gap: .8rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .93rem;
  opacity: .8;
  transition: opacity .3s var(--ease), gap .3s var(--ease);
}
.footer-links a::before {
  content: "";
  width: 10px; height: 1.4px;
  background: currentColor;
  opacity: .6;
  transition: width .3s var(--ease);
}
.footer-links a:hover { opacity: 1; }
.footer-links a:hover::before { width: 18px; }

.footer-social { display: flex; gap: .6rem; margin-left: auto; align-items: flex-start; }
.footer-social a {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(246,241,234,.10);
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease);
}
.footer-social a:hover { background: var(--sand); color: var(--ink); transform: translateY(-3px); }
.footer-social svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .6rem;
  padding-top: 1.8rem;
  font-size: .85rem;
  opacity: .68;
}

/* ---------- 15. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-hero] { opacity: 1 !important; transform: none !important; }
}

/* ---------- 16. Responsive ---------- */
@media (max-width: 980px) {
  .nav-links, .nav-cta, .nav > .nav-pill > .nav-lang { display: none; }
  .nav-burger { display: grid; }
  .nav-pill { padding: .6rem .6rem .6rem 1.3rem; }

  .about-grid,
  .services-grid,
  .work-grid,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }

  .about-media { max-width: 420px; margin-inline: auto; }
  .work-body { order: -1; }
  .work-art { margin-top: 2rem; border-radius: 90px 12px 90px 12px; }
  .contact-art { border-radius: 12px 12px 12px 90px; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .service-list { grid-template-columns: minmax(0, 1fr); }
  .service-hero { border-radius: 36px; }
  .project-card { padding: 1rem; border-radius: 32px; }
  .project-shot { border-radius: 26px; }
  .footer-card { border-radius: 44px 44px 0 0; }
  .footer-social { margin-left: 0; }
  .hero { padding-bottom: 6rem; }
  .hero-scroll { bottom: 2rem; }
}

/* =============================================================
   17. Capa de animación
   ============================================================= */

/* ---- Barra de progreso de scroll ---- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: 3px;
  pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sky), var(--sand));
  will-change: transform;
}

/* ---- Titulares partidos en palabras ---- */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .06em;
}
.split .w > i {
  display: inline-block;
  font-style: inherit;
  transform: translateY(110%) rotate(2.5deg);
  opacity: 0;
  transition:
    transform .95s var(--ease),
    opacity   .7s  var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.split.is-shown .w > i { transform: none; opacity: 1; }

/* ---- Reveal con barrido para piezas gráficas ---- */
[data-wipe] {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
  will-change: clip-path;
}
[data-wipe].is-shown { clip-path: inset(0 0 0 0); }

/* ---- Parallax ---- */
[data-parallax] { will-change: transform; }

/* ---- Botones magnéticos ---- */
.btn {
  transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)));
}
.btn:hover { --lift: -2px; transform: translate(var(--mx, 0px), calc(var(--my, 0px) + var(--lift))); }
.btn:active { --lift: 0px; }

/* ---- Tarjetas de proyecto: tilt + zoom de la captura ---- */
.project-shot {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.project-card:hover .project-shot { box-shadow: 0 26px 55px rgba(58,58,58,.20); }
.project-shot .shot-chrome { transition: transform .6s var(--ease); }
.shot-body img { transition: transform .6s var(--ease), filter .6s var(--ease); }
.project-card:hover .shot-body img { transform: scale(1.05); filter: saturate(1.1) brightness(1.03); }

/* ---- Servicios: flecha y fondo ---- */
.service-item { position: relative; overflow: hidden; }
.service-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--sand-deep);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .55s var(--ease);
}
.service-item:hover::after { transform: scaleX(1); }

/* ---- Nav: subrayado del link activo ---- */
.nav-link { overflow: hidden; }

/* ---- Banner CTA: latido suave ---- */
.cta-pill {
  transition: transform .8s var(--ease), box-shadow .8s var(--ease);
}
.cta-pill.is-revealed { animation: ctaBreathe 9s ease-in-out 1.2s infinite; }
@keyframes ctaBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.012); }
}

/* ---- Iconos de contacto ---- */
.contact-info a:hover .ci-ico { transform: rotate(-8deg) scale(1.06); }
.ci-ico { transition: transform .45s var(--ease-bounce, cubic-bezier(.34,1.56,.64,1)); }

/* ---- Flecha del hero-scroll al hacer hover ---- */
.hero-scroll { transition: transform .4s var(--ease), border-color .4s var(--ease); }
.hero-scroll:hover { transform: translateX(-50%) translateY(4px); border-color: rgba(58,58,58,.5); }

/* ---- Respeto por reduce-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .split .w > i { transform: none !important; opacity: 1 !important; }
  [data-wipe] { clip-path: none !important; }
  [data-parallax] { transform: none !important; }
  .cta-pill.is-revealed { animation: none; }
  .scroll-progress { display: none; }
}

/* =============================================================
   18. Cursor tortuga + splash de agua al click
   ============================================================= */

/* Solo se activa por JS en desktop con mouse (hover:hover + pointer:fine
   + sin prefers-reduced-motion). En touch/mobile queda el cursor nativo. */
.has-custom-cursor,
.has-custom-cursor a,
.has-custom-cursor button,
.has-custom-cursor [role="button"] { cursor: none !important; }

.has-custom-cursor input,
.has-custom-cursor textarea,
.has-custom-cursor select { cursor: text !important; }

.turtle-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.turtle-cursor.is-active { opacity: 1; }
.turtle-cursor.is-text-field { opacity: 0; }

.turtle-cursor-inner {
  position: absolute;
  top: -24px; left: -24px;
  width: 48px; height: 48px;
  rotate: -6deg;
  scale: 1;
  animation: turtleBob 2.6s ease-in-out infinite;
  transition: scale .3s cubic-bezier(.34, 1.56, .64, 1);
}
.turtle-cursor.is-down  .turtle-cursor-inner { scale: .8; animation-play-state: paused; }
.turtle-cursor.is-hovering .turtle-cursor-inner { scale: 1.24; }

.turtle-cursor-inner img {
  width: 100%; height: 100%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(14, 54, 66, .32));
}

@keyframes turtleBob {
  0%, 100% { rotate: -6deg; translate: 0 0; }
  50%      { rotate: 6deg;  translate: 0 -4px; }
}

/* ---------- Splash de agua al hacer click / tocar ---------- */
.water-splash {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 9998;
}

.water-ring {
  position: absolute;
  top: 0; left: 0;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 2px solid var(--sky-deep);
  opacity: .75;
  animation: waterRing .75s var(--ease) forwards;
}
.water-ring.ring-2 { border-color: var(--sky); animation-delay: .09s; }

@keyframes waterRing {
  to {
    width: 88px; height: 88px;
    margin: -44px 0 0 -44px;
    opacity: 0;
    border-width: .5px;
  }
}

.water-drop {
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--sky-deep);
  opacity: .9;
  animation: waterDrop .6s cubic-bezier(.25, .46, .45, .94) forwards;
}
@keyframes waterDrop {
  to { transform: translate(var(--dx), var(--dy)) scale(.25); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .turtle-cursor, .water-splash { display: none !important; }
  .has-custom-cursor,
  .has-custom-cursor a,
  .has-custom-cursor button,
  .has-custom-cursor [role="button"] { cursor: auto !important; }
}
