/* ============ Tokens ============ */
:root {
  --navy: #030d24;
  --navy-2: #071a44;
  --blue: #0a54ff;
  --blue-2: #2a7bff;
  --sky: #4cc9ff;
  --ice: #eaf5ff;
  --ink: #0a1b3d;
  --muted: #5b6b8c;
  --white: #ffffff;
  --radius: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; position: relative; z-index: 2; }
section { position: relative; }

/* ============ Progress + cursor glow ============ */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--sky), var(--blue-2), var(--white));
  transform-origin: 0 50%; transform: scaleX(0);
}
.glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, rgba(76, 201, 255, .22), rgba(10, 84, 255, .08) 45%, transparent 70%);
  mix-blend-mode: screen; transition: opacity .4s;
  will-change: transform;
}
.glow.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .glow { display: none; } }

/* ============ Nav ============ */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(960px, 100% - 24px); z-index: 90;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px 10px 12px; border-radius: 999px;
  background: rgba(7, 26, 68, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  transition: background .3s, box-shadow .3s, top .3s;
}
.nav.scrolled { background: rgba(7, 26, 68, .78); box-shadow: 0 10px 40px rgba(3, 13, 36, .35); }
.logo { display: grid; place-items: center; height: 40px; padding: 0 10px; border-radius: 999px; transition: background .25s, transform .3s var(--ease); }
.logo img { height: 26px; width: auto; filter: drop-shadow(0 0 12px rgba(76, 201, 255, .45)); }
.logo:hover { background: rgba(255, 255, 255, .1); transform: scale(1.05); }
.links { display: flex; align-items: center; gap: 4px; }
.links a {
  padding: 8px 14px; border-radius: 999px; font-size: .92rem; color: rgba(255, 255, 255, .78);
  transition: color .2s, background .2s;
}
.links a:hover, .links a.active { color: #fff; background: rgba(255, 255, 255, .1); }
.links a.pill { background: #fff; color: var(--blue); font-weight: 600; margin-left: 4px; }
.links a.pill:hover, .links a.pill.active { background: var(--sky); color: var(--navy); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger i:first-child { top: 16px; } .burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

@media (max-width: 720px) {
  .burger { display: block; }
  .links {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 10px; border-radius: 24px; background: rgba(7, 26, 68, .95);
    border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s;
  }
  .links.open { opacity: 1; pointer-events: auto; transform: none; }
  .links a { padding: 14px 16px; text-align: center; }
  .links a.pill { margin: 6px 0 0; }
}

/* ============ Hero ============ */
.hero {
  min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden;
  padding: 120px 16px 90px; color: #fff; isolation: isolate;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(42, 123, 255, .55), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(76, 201, 255, .28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #05175a 60%, #0a3bb0 100%);
}
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: -1; will-change: transform; }
.hero .o1 { width: 420px; height: 420px; left: -120px; top: 10%; background: rgba(10, 84, 255, .55); }
.hero .o2 { width: 360px; height: 360px; right: -100px; top: 30%; background: rgba(76, 201, 255, .35); }
.hero .o3 { width: 220px; height: 220px; left: 45%; bottom: -60px; background: rgba(255, 255, 255, .18); }

.hero-inner { will-change: transform, opacity; max-width: 1000px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px;
  font-size: .85rem; letter-spacing: .04em; color: rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); animation: fadeUp .9s var(--ease) both;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3dffa6; box-shadow: 0 0 0 0 rgba(61, 255, 166, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(61, 255, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 255, 166, 0); } }

.name {
  font-family: var(--display); font-weight: 700; line-height: .95; letter-spacing: -.04em;
  font-size: clamp(3.2rem, 13vw, 9.5rem); margin: 22px 0 14px;
}
.name .line { display: block; overflow: hidden; padding-bottom: .08em; }
.name .ch { display: inline-block; transform: translateY(110%) rotate(6deg); animation: rise 1s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .15s); }
.name .grad .ch {
  background: linear-gradient(120deg, #fff 10%, var(--sky) 45%, #fff 80%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s var(--ease) forwards, shimmer 5s linear infinite;
  animation-delay: calc(var(--i) * 45ms + .15s), 0s;
}
@keyframes rise { to { transform: none; } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.typed-wrap { font-family: var(--display); font-size: clamp(1.15rem, 3.2vw, 1.9rem); color: var(--sky); min-height: 1.5em; animation: fadeUp 1s .5s var(--ease) both; }
.caret { display: inline-block; width: 3px; height: 1.1em; margin-left: 4px; vertical-align: -.15em; background: var(--sky); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.lead { max-width: 640px; margin: 18px auto 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 2vw, 1.15rem); animation: fadeUp 1s .7s var(--ease) both; }
.lead strong { color: #fff; font-weight: 600; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; animation: fadeUp 1s .9s var(--ease) both; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; transition: transform .25s var(--ease), box-shadow .3s, background .3s, color .3s;
  will-change: transform;
}
.btn.primary { background: #fff; color: var(--blue); box-shadow: 0 10px 40px rgba(76, 201, 255, .35); }
.btn.primary:hover { background: var(--sky); color: var(--navy); box-shadow: 0 14px 50px rgba(76, 201, 255, .6); }
.btn.ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .05); }
.btn.ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase;
  color: rgba(255, 255, 255, .6); animation: fadeUp 1s 1.3s var(--ease) both;
}
.mouse { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .5); border-radius: 14px; position: relative; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--sky); animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(14px); } }

/* ============ Shared section bits ============ */
.kicker { font: 500 .9rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.kicker.light { color: var(--sky); }
.h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 16ch; }
.h2 em, .mega em { font-style: normal; background: linear-gradient(120deg, var(--blue), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h2.light { color: #fff; }
.h2.light em { background: linear-gradient(120deg, var(--sky), #fff); -webkit-background-clip: text; background-clip: text; }

[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ About ============ */
.about { padding: clamp(110px, 16vw, 200px) 0 clamp(70px, 10vw, 130px); background: var(--white); }
.manifesto { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.18; font-size: clamp(1.7rem, 4.8vw, 3.5rem); max-width: 26ch; }
.manifesto .w { color: #c9d6ee; transition: color .35s; }
.manifesto .w.on { color: var(--ink); }
.manifesto .w.on.hl { color: var(--blue); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chips span { padding: 10px 18px; border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--blue); background: var(--ice); border: 1px solid #d3e8ff; }

/* ============ What I do ============ */
.what { padding: clamp(70px, 10vw, 130px) 0; background: linear-gradient(180deg, var(--white), var(--ice) 40%, var(--white)); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; perspective: 1200px; }
.card {
  position: relative; padding: 34px 30px 40px; border-radius: var(--radius); background: #fff; overflow: hidden;
  border: 1px solid #dbeaff; box-shadow: 0 20px 60px rgba(10, 84, 255, .08);
  transition: box-shadow .3s, border-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(76, 201, 255, .22), transparent 55%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--sky); box-shadow: 0 30px 80px rgba(10, 84, 255, .2); }
.card:hover::before { opacity: 1; }
.card .ico { width: 60px; height: 60px; padding: 14px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); box-shadow: 0 10px 30px rgba(10, 84, 255, .35); position: relative; }
.card h3 { font: 700 1.5rem var(--display); letter-spacing: -.02em; margin: 26px 0 10px; position: relative; }
.card p { color: var(--muted); position: relative; }
.card .num { position: absolute; right: 22px; top: 12px; font: 700 4.5rem var(--display); color: var(--ice); letter-spacing: -.05em; line-height: 1; }
.tilt { transform-style: preserve-3d; transition: transform .25s var(--ease), box-shadow .3s, border-color .3s, opacity .9s var(--ease); }

@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ============ Projects ============ */
.projects { padding: clamp(80px, 11vw, 150px) 0; color: #fff; overflow: hidden; background:
  radial-gradient(800px 500px at 100% 0%, rgba(42, 123, 255, .4), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(76, 201, 255, .18), transparent 60%),
  linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); }
.proj-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.slider-ctrl { display: flex; gap: 10px; }
.slider-ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06); display: grid; place-items: center; transition: background .25s, transform .25s var(--ease), border-color .25s; }
.slider-ctrl button svg { width: 22px; height: 22px; }
.slider-ctrl button:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); transform: scale(1.08); }

.track {
  display: flex; gap: 24px; margin-top: 52px; padding: 20px max(16px, calc((100% - 1160px) / 2)) 30px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1160px) / 2));
  cursor: grab; scrollbar-width: none; -webkit-overflow-scrolling: touch; perspective: 1400px;
}
.track::-webkit-scrollbar { display: none; }
.track.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.track.drag * { pointer-events: none; }

.proj {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start; border-radius: 28px; overflow: hidden;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(10px); display: flex; flex-direction: column;
}
.proj:hover { border-color: rgba(76, 201, 255, .6); box-shadow: 0 30px 80px rgba(10, 84, 255, .35); }
/* Tarjeta completa clicable: el enlace se estira sobre todo el recuadro */
.proj { position: relative; }
.proj:has(.link) { cursor: pointer; }
.proj .link { -webkit-user-drag: none; user-select: none; }
.proj .link::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.proj:hover .link { letter-spacing: .03em; }
.proj .link:focus-visible { outline: none; }
.proj .link:focus-visible::after { outline: 3px solid var(--sky); outline-offset: -3px; border-radius: 28px; }
.proj-vis { height: 230px; position: relative; display: grid; place-items: center; overflow: hidden; }
.v1 { background: linear-gradient(135deg, #0a54ff, #4cc9ff); }
.v2 { background: linear-gradient(135deg, #0b3fbf, #2a7bff); }
.v3 { background: linear-gradient(135deg, #1b6bff, #8fdcff); }
.v4 { background: linear-gradient(135deg, #04256e, #0a54ff); }
.proj-vis::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255, 255, 255, .35), transparent 50%); }
.proj-vis.shot { background: var(--navy-2); }
.proj-vis.shot::after { background: linear-gradient(180deg, transparent 55%, rgba(3, 13, 36, .55)); }
.proj-vis.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .8s var(--ease); }
.proj:hover .proj-vis.shot img { transform: scale(1.07); }
.v5 { background: linear-gradient(135deg, #0b3fbf, #4cc9ff); }
.route { z-index: 1; display: flex; align-items: center; gap: 10px; font: 700 1rem var(--display); color: #fff; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.route span { padding: 12px 18px; border-radius: 14px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(6px); }
.route i { position: relative; width: 56px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 14px); background-size: 28px 3px; animation: dash 1s linear infinite; }
.route i::after { content: ""; position: absolute; right: -3px; top: -5px; border-left: 10px solid #fff; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; }
@keyframes dash { to { background-position: 14px 0; } }
.plus { font: 300 5.5rem/1 var(--display); color: rgba(255, 255, 255, .85); z-index: 1; transition: transform .5s var(--ease); }
.proj:hover .plus { transform: rotate(90deg) scale(1.15); }
.soon { border-style: dashed; }

.browser { width: 78%; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 24px 60px rgba(3, 13, 36, .4); overflow: hidden; z-index: 1; transform: rotate(-3deg) translateY(14px); transition: transform .6s var(--ease); }
.proj:hover .browser { transform: rotate(0) translateY(6px) scale(1.04); }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef4ff; }
.browser .bar i { width: 8px; height: 8px; border-radius: 50%; background: #b8caee; }
.browser .bar span { margin-left: 8px; font-size: .62rem; color: var(--muted); background: #fff; padding: 2px 10px; border-radius: 99px; }
.browser .body { padding: 16px 16px 22px; display: grid; gap: 9px; }
.browser .l { height: 8px; border-radius: 6px; background: #d6e4ff; }
.browser .l.big { height: 16px; background: linear-gradient(90deg, var(--blue), var(--sky)); background-size: 200% 100%; animation: slide 3s linear infinite; }
.w40 { width: 40%; } .w60 { width: 60%; } .w90 { width: 90%; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.blocks div { height: 38px; border-radius: 8px; background: var(--ice); }
@keyframes slide { to { background-position: -200% 0; } }

.proj-body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.proj-body h3 { font: 700 1.55rem var(--display); letter-spacing: -.02em; }
.proj-body p { color: rgba(255, 255, 255, .72); font-size: .98rem; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: var(--sky); }
.tag.live { background: rgba(61, 255, 166, .14); color: #3dffa6; }
.stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; padding-top: 6px; }
.stack li { font-size: .8rem; padding: 4px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .85); }
.link { margin-top: auto; font-weight: 600; color: var(--sky); transition: letter-spacing .25s; }
.link:hover { letter-spacing: .03em; }
.stack + .link { margin-top: 6px; }
.track-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); margin-top: 8px; overflow: hidden; }
.track-progress span { display: block; height: 100%; width: 25%; border-radius: 4px; background: linear-gradient(90deg, var(--sky), #fff); transition: width .15s linear, margin-left .15s linear; }

@media (max-width: 640px) { .proj-head { flex-direction: column; align-items: flex-start; } }

/* ============ Timeline ============ */
.path { padding: clamp(80px, 11vw, 150px) 0; background: var(--white); }
.timeline { list-style: none; padding: 0; margin: 64px 0 0; position: relative; --fill: 0; }
.line-bg, .line-fill { position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; }
.line-bg { background: #dbeaff; }
.line-fill { background: linear-gradient(180deg, var(--blue), var(--sky)); transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 16px rgba(76, 201, 255, .7); }
.timeline li { position: relative; padding: 0 0 46px 66px; }
.timeline li:last-child { padding-bottom: 0; }
.pt { position: absolute; left: 6px; top: 6px; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 3px solid #bcd6ff; transition: border-color .4s, box-shadow .4s, background .4s; }
.timeline li.in .pt { border-color: var(--blue); background: var(--sky); box-shadow: 0 0 0 8px rgba(76, 201, 255, .22); }
.box { padding: 24px 28px; border-radius: 20px; background: var(--ice); border: 1px solid #d3e8ff; transition: transform .3s var(--ease), box-shadow .3s; max-width: 640px; }
.box:hover { transform: translateX(8px); box-shadow: 0 16px 50px rgba(10, 84, 255, .15); }
.box small { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-size: .75rem; }
.box h3 { font: 700 1.45rem var(--display); letter-spacing: -.02em; margin: 6px 0; }
.box p { color: var(--muted); }

/* ============ Community ============ */
.community { padding: clamp(80px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--white), var(--ice)); }
.comm-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.comm-text .h2 { max-width: 12ch; }
.comm-text p:not(.kicker) { color: var(--muted); font-size: 1.15rem; max-width: 52ch; margin-top: 22px; }
.comm-text strong { color: var(--ink); }
.comm-photo { position: relative; margin: 0; width: min(100%, 470px); justify-self: center; aspect-ratio: 3 / 4; border-radius: 28px; overflow: hidden; background: var(--navy-2); box-shadow: 0 30px 80px rgba(10, 84, 255, .28); }
.comm-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.comm-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(3, 13, 36, .85)); pointer-events: none; }
.comm-photo .badge { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; display: grid; gap: 2px; padding: 16px 20px; border-radius: 20px; color: #fff; background: rgba(7, 26, 68, .55); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.comm-photo .year { font: 700 2.4rem/1 var(--display); letter-spacing: -.04em; background: linear-gradient(120deg, #fff, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.comm-photo strong { font: 700 1.2rem var(--display); letter-spacing: -.02em; }
.comm-photo .badge span:last-child { color: rgba(255, 255, 255, .8); font-size: .92rem; }

@media (max-width: 860px) { .comm-grid { grid-template-columns: 1fr; } }

/* ============ Contact (home CTA) ============ */
.contact { padding: clamp(90px, 12vw, 170px) 0 clamp(80px, 10vw, 130px); color: #fff; overflow: hidden; isolation: isolate; background:
  radial-gradient(900px 600px at 50% 0%, rgba(76, 201, 255, .35), transparent 60%),
  linear-gradient(160deg, #0a3bb0 0%, var(--blue) 50%, #2a7bff 100%); }
.contact .c1 { width: 380px; height: 380px; left: -120px; top: 10%; background: rgba(255, 255, 255, .2); }
.contact .c2 { width: 340px; height: 340px; right: -100px; bottom: 0; background: rgba(3, 13, 36, .45); }
.mega { font-family: var(--display); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-size: clamp(4rem, 17vw, 13rem); }
.sub { max-width: 520px; margin-top: 22px; font-size: 1.15rem; color: rgba(255, 255, 255, .85); }
.btn.big { margin-top: 44px; padding: 22px 48px; font-size: 1.2rem; }

/* ============ Footer ============ */
.foot { position: relative; z-index: 2; background: var(--navy); color: rgba(255, 255, 255, .68); padding: clamp(48px, 7vw, 80px) 0 28px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot h4 { margin: 0 0 16px; color: #fff; font: 600 .78rem var(--display); letter-spacing: .16em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { transition: color .2s; }
.foot a:hover { color: var(--sky); }
.foot-logo img { height: 40px; width: auto; filter: drop-shadow(0 0 14px rgba(76, 201, 255, .4)); }
.foot-brand p { max-width: 34ch; margin: 16px 0 20px; }
.foot .social { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; color: #fff; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .05); font-weight: 500; transition: background .25s, border-color .25s, transform .25s var(--ease), color .25s; }
.foot .social svg { width: 20px; height: 20px; }
.foot .social:hover { color: var(--navy); background: var(--sky); border-color: var(--sky); transform: translateY(-2px); }
.foot .avail { display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .85); }
.foot-bottom { margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .88rem; }
.foot .top { color: var(--sky); font-weight: 600; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .name .ch { transform: none; }
}

/* ============ Contact page ============ */
.cpage { position: relative; min-height: 100svh; overflow: hidden; isolation: isolate; color: #fff; padding: 130px 0 clamp(70px, 10vw, 120px);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(42, 123, 255, .55), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(76, 201, 255, .28), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #05175a 60%, #0a3bb0 100%); }
.cpage .o1 { width: 420px; height: 420px; left: -140px; top: 12%; background: rgba(10, 84, 255, .5); }
.cpage .o2 { width: 340px; height: 340px; right: -110px; bottom: 6%; background: rgba(76, 201, 255, .32); }
.cwrap { max-width: 780px; }
.home-link { display: inline-block; margin-bottom: 26px; color: rgba(255, 255, 255, .75); font-weight: 500; transition: color .2s, transform .25s var(--ease); }
.home-link:hover { color: var(--sky); transform: translateX(-4px); }
.title { font-family: var(--display); font-weight: 700; letter-spacing: -.05em; line-height: .92; font-size: clamp(3.4rem, 12vw, 7.5rem); }
.cpage .lead { margin: 20px 0 38px; max-width: 54ch; color: rgba(255, 255, 255, .8); animation: none; }

.form-card { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: 28px; padding: clamp(24px, 4.5vw, 44px); box-shadow: 0 40px 100px rgba(3, 13, 36, .5); }
.step { animation: fadeUp .5s var(--ease) both; }
.step[hidden] { display: none; }
.step h2 { font: 700 clamp(1.45rem, 3.4vw, 2rem) var(--display); letter-spacing: -.02em; line-height: 1.15; }
.step .hint { margin: 8px 0 26px; color: var(--muted); }
.back { margin: 0 0 18px; padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; transition: transform .25s var(--ease); }
.back:hover { transform: translateX(-4px); }

.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px; border-radius: 20px; text-align: left; border: 1.5px solid #d3e8ff; background: var(--ice); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s; }
.choice:hover, .choice:focus-visible { transform: translateY(-4px); border-color: var(--blue-2); background: #fff; box-shadow: 0 20px 50px rgba(10, 84, 255, .18); }
.choice .ico2 { display: grid; place-items: center; width: 52px; height: 52px; padding: 13px; margin-bottom: 8px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--blue), var(--sky)); box-shadow: 0 10px 28px rgba(10, 84, 255, .3); }
.choice strong { font: 700 1.3rem var(--display); letter-spacing: -.02em; }
.choice .d { color: var(--muted); font-size: .95rem; }

.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid #cfe0f7; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 4px rgba(76, 201, 255, .28); }
.field input::placeholder, .field textarea::placeholder { color: #93a4c4; }

.preview { margin: 4px 0 24px; padding: 16px 18px; border-radius: 16px; background: var(--ice); border: 1.5px dashed #b9d6ff; font-size: .95rem; line-height: 1.55; }
.preview small { display: block; margin-bottom: 6px; color: var(--blue); font-weight: 600; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.preview span { white-space: pre-wrap; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn.solid { background: linear-gradient(135deg, var(--blue), var(--blue-2)); color: #fff; border: 0; box-shadow: 0 10px 30px rgba(10, 84, 255, .35); }
.btn.solid:hover { background: linear-gradient(135deg, #083fcc, var(--blue)); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(10, 84, 255, .5); }
.btn.outline { color: var(--blue); background: #fff; border: 1.5px solid #bcd6ff; }
.btn.outline:hover { background: var(--ice); border-color: var(--blue-2); transform: translateY(-2px); }

.status { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: #e8fbf1; color: #0b6b3c; font-weight: 500; }
.status[hidden] { display: none; }
.status.err { background: #fff0f0; color: #a12020; }
.status a { text-decoration: underline; font-weight: 600; }

@media (max-width: 640px) {
  .choices { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
}

/* Envío directo de correo */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field .note { color: var(--muted); font-size: .85rem; }
.btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.fallback { margin-top: 18px; padding: 18px; border-radius: 16px; background: var(--ice); border: 1.5px dashed #b9d6ff; }
.fallback[hidden], .done[hidden], #mailForm[hidden] { display: none; }
.fallback p { margin: 0 0 12px; font-weight: 500; }
.done { display: grid; justify-items: start; gap: 10px; padding: 8px 0; animation: fadeUp .5s var(--ease) both; }
.done:focus { outline: none; }
.done h3 { margin: 6px 0 0; font: 700 clamp(1.6rem, 4vw, 2.2rem) var(--display); letter-spacing: -.02em; }
.done p { margin: 0 0 14px; color: var(--muted); font-size: 1.1rem; max-width: 46ch; overflow-wrap: anywhere; }
.done-ico { display: grid; place-items: center; width: 64px; height: 64px; padding: 16px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0aa86a, #3dffa6); box-shadow: 0 12px 34px rgba(10, 168, 106, .4); }
