/* ===== Portada (inicio) · marca personal Gael: azul, negro y blanco ===== */

/* ---------- Hero con horizonte de luz azul ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; padding-top: clamp(120px, 15vh, 170px);
  display: flex; flex-direction: column; align-items: center; overflow: hidden; isolation: isolate;
}
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow::before { /* halo superior */
  content: ""; position: absolute; left: 50%; top: -30%; width: 120vw; height: 80vh; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(39,127,255,.22), transparent 70%);
}
.hero-glow::after { /* horizonte: planeta oscuro con borde de luz */
  content: ""; position: absolute; left: 50%; top: 66%; width: max(1900px, 170vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, #050710 96%, #0a1630 99%, transparent 100%);
  box-shadow:
    0 -1px 0 rgba(190, 215, 255, .7),
    0 -14px 40px rgba(110, 165, 255, .45),
    0 -60px 140px rgba(39, 127, 255, .45),
    0 -180px 260px rgba(39, 127, 255, .22);
}
.hero-copy { display: grid; justify-items: center; text-align: center; gap: 22px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(40px, 6.2vw, 84px); max-width: 1060px; font-weight: 450; }
.hero h1 .serif { color: var(--accent-2); }
.hero-copy > p { max-width: 590px; color: var(--muted); font-size: clamp(15.5px, 1.5vw, 18px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* Arco de tarjetas flotantes */
.arc {
  --w: clamp(92px, 11vw, 168px);
  position: relative; z-index: 1; margin-top: clamp(40px, 6vh, 70px); width: 100%;
  display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.2vw, 18px);
  perspective: 1400px; padding-bottom: clamp(40px, 8vh, 90px);
}
.arc-c {
  flex: none; width: var(--w); border-radius: clamp(12px, 1.4vw, 20px);
  transform: rotateY(calc(var(--i) * -9deg)) translateY(calc(var(--a, 0) * 1px)) translateZ(calc(var(--z, 0) * 1px));
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08) inset;
  transition: transform .8s var(--ease);
}
.arc-c[style*="--i:-3"], .arc-c[style*="--i:3"] { --a: 46; --z: -80; opacity: .55; }
.arc-c[style*="--i:-2"], .arc-c[style*="--i:2"] { --a: 18; --z: -30; opacity: .8; }
.arc-c[style*="--i:-1"], .arc-c[style*="--i:1"] { --a: 0; }
.arc-c.main { width: calc(var(--w) * 2.7); transform: none; box-shadow: 0 40px 100px -24px rgba(39,127,255,.55), 0 0 0 1px rgba(255,255,255,.12) inset; }
.arc-c:not(.main):hover { transform: rotateY(calc(var(--i) * -9deg)) translateY(calc(var(--a, 0) * 1px - 10px)); opacity: 1; }
@media (max-width: 760px) {
  .arc { --w: 26vw; }
  .arc-c[style*="--i:-3"], .arc-c[style*="--i:3"], .arc-c[style*="--i:-2"], .arc-c[style*="--i:2"] { display: none; }
  .arc-c.main { width: 64vw; }
  .arc-c:not(.main) { width: 22vw; }
  .arc-c .v-play span { display: none; }
}

/* ---------- Marcas ---------- */
.brands { display: grid; justify-items: center; gap: 26px; padding: 30px 0 10px; }
.marquee { width: 100%; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-size: clamp(22px, 2.6vw, 32px); font-weight: 500; letter-spacing: -.03em; color: rgba(255,255,255,.42); white-space: nowrap; }
.marquee-track i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: .7; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Proyectos ---------- */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 22px); }
.proj {
  --pc: var(--accent);
  position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden; isolation: isolate;
  min-height: clamp(460px, 52vw, 640px); background: #0a0c14; border: 1px solid var(--line);
  transition: transform .7s var(--ease), border-color .5s;
}
.proj:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--pc) 55%, transparent); }
.proj-media { position: absolute !important; inset: 0; aspect-ratio: auto !important; border-radius: 0 !important; z-index: -1; box-shadow: none !important; }
.proj-media::after { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.35) 50%, var(--pfade, rgba(4,5,9,.94)) 88%) !important; }
.proj-info { margin-top: auto; padding: clamp(22px, 3vw, 34px); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.proj-kicker { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--pc); margin-bottom: 12px; }
.proj h3 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }
.proj p { color: rgba(255,255,255,.72); font-size: 15px; max-width: 420px; }
.proj-go {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 99px;
  background: var(--pc); color: var(--pink, #fff); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform .4s var(--ease);
}
.proj-go svg { width: 14px; height: 14px; }
.proj:hover .proj-go { transform: translateX(-2px) translateY(-2px); }

/* Cada tarjeta con el color de su marca */
.p-altoki { --pc: #42E842; --pink: #04140a; }
.p-altoki h3 { font-family: 'Fredoka', var(--font); }
.p-drones { --pc: #e0301e; --pink: #fff; }
.p-dlitro { --pc: #ffcf1f; --pink: #1a1200; }
.p-artistas { --pc: #277fff; --pink: #fff; }
@media (max-width: 820px) {
  .projects { grid-template-columns: 1fr; }
  .proj { min-height: 520px; }
  .proj-info { flex-direction: column; align-items: flex-start; }
}

/* ---------- Servicios (lista editorial, sin grilla de íconos) ---------- */
.services-sec { background: linear-gradient(180deg, transparent, rgba(39,127,255,.04) 40%, transparent); }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc {
  display: grid; grid-template-columns: 70px 1.2fr 1fr; gap: 24px; align-items: start;
  padding: clamp(26px, 3.4vw, 40px) 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .5s var(--ease);
}
.svc::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.svc:hover::before { transform: scaleX(1); }
.svc-n { font-family: var(--font-mono); font-size: 13px; color: var(--accent-2); padding-top: 12px; }
.svc h3 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 10px; }
.svc-main p { color: var(--muted); max-width: 470px; }
.svc-tags { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.svc-tags li { font-size: 13px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); color: rgba(255,255,255,.75); }
@media (max-width: 820px) {
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .svc-n { padding: 0; }
  .svc-tags { justify-content: flex-start; }
}

/* ---------- Eventos (cinta horizontal) ---------- */
.events {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px;
  scrollbar-width: none; max-width: 100vw;
}
.events::-webkit-scrollbar { display: none; }
.ev { flex: none; width: clamp(180px, 19vw, 250px); scroll-snap-align: center; }

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.015); }
.step { padding: clamp(24px, 2.6vw, 34px); border-right: 1px solid var(--line); min-height: 240px; display: flex; flex-direction: column; }
.step:last-child { border-right: 0; }
.step-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; border: 1px solid rgba(127,178,255,.35); color: var(--accent-2); margin-bottom: auto; }
.step h3 { font-size: 21px; letter-spacing: -.02em; margin: 40px 0 10px; }
.step p { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .step:last-child { border-bottom: 0; }
  .step h3 { margin-top: 22px; }
}

/* ---------- Sobre mí ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-photo { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: 4 / 5; background: #0a0c14; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.92); }
.about-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4,5,9,.75)), linear-gradient(135deg, rgba(39,127,255,.28), transparent 50%); mix-blend-mode: normal; }
.about-badge { position: absolute; z-index: 2; left: 22px; bottom: 22px; width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; }
.about-badge .g { width: 34px; color: var(--accent); }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 { font-size: clamp(36px, 5vw, 60px); }
.about-copy > p { color: var(--muted); font-size: 16.5px; max-width: 560px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.about-stats div { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.02); }
.about-stats b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -.04em; color: #fff; }
.about-stats span { font-size: 13px; color: var(--muted); line-height: 1.4; display: block; margin-top: 4px; }
.tools { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tools li { font-family: var(--font-mono); font-size: 12px; padding: 6px 12px; border-radius: 8px; background: rgba(39,127,255,.1); color: var(--accent-2); }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
}
@media (max-width: 480px) { .about-stats { grid-template-columns: 1fr; } }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; padding-top: clamp(100px, 14vw, 170px); isolation: isolate; }
.contact-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.contact-glow::before {
  content: ""; position: absolute; left: 50%; top: -60%; width: max(1700px, 160vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: #040509;
  box-shadow: 0 1px 0 rgba(190,215,255,.6), 0 30px 80px rgba(39,127,255,.4), 0 110px 220px rgba(39,127,255,.25);
}
.contact-in { display: grid; justify-items: center; text-align: center; gap: 22px; padding-bottom: clamp(90px, 12vw, 150px); }
.contact-g { width: 54px; color: var(--accent); margin-bottom: 8px; }
.contact h2 { font-size: clamp(40px, 6.8vw, 88px); max-width: 14ch; }
.contact p { color: var(--muted); max-width: 460px; }
.contact-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.contact-cta .btn svg { width: 18px; height: 18px; }
.contact-data { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-size: 14px; color: var(--muted); margin-top: 6px; }
.contact-data i { width: 4px; height: 4px; border-radius: 50%; background: var(--line); background: rgba(255,255,255,.25); }
.giant {
  font-weight: 600; letter-spacing: -.07em; line-height: .75; text-align: center; user-select: none;
  font-size: clamp(120px, 31vw, 470px); margin-bottom: -.06em;
  background: linear-gradient(180deg, rgba(39,127,255,.22), rgba(39,127,255,0) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 900px) { .hero { min-height: 0; } }
