/* =========================================================
   PORTFOLIO · Agus Bonilla
   ========================================================= */

/* ---------- Colores: NOCHE (por defecto) ---------- */
:root {
  --text: #f4f6fb;
  --title: #ffffff;
  --muted: #9aa3b8;
  --soft: #c9cfdc;
  --dim: #b6bdcc;
  --nav-text: #d6dbe7;
  --glass: rgba(14, 19, 32, .55);
  --glass-active: rgba(255, 255, 255, .1);
  --line: rgba(255, 255, 255, .12);
  --hint: #5f687c;
  --label: #7c8599;
  --icon: #aab3c6;
  --grad-a: #7cb6ff; --grad-b: #3b82f6; --grad-c: #2563eb;
  --outline-text: #cfe0ff;
  --loader-bg: #000; --loader-fg: #fff;
  --photo-glow: rgba(37, 99, 235, .28);

  --blue: #3b82f6;
  --blue-2: #60a5fa;
  --blue-deep: #1d4ed8;
  --paper: #eee7d8;
  --ink: #161b26;
  --card-w: 250px;
  --card-h: 360px;
  --body-size: 160px;      /* tamaño de la luna / sol */
}

/* ---------- Colores: DÍA ---------- */
html.theme-day {
  --text: #0b1530;
  --title: #0b1530;
  --muted: #34425e;
  --soft: #23314c;
  --dim: #4a5a78;
  --nav-text: #1e293b;
  --glass: rgba(255, 255, 255, .5);
  --glass-active: rgba(255, 255, 255, .85);
  --line: rgba(15, 23, 42, .12);
  --hint: #3d4d6b;
  --label: #3d4d6b;
  --icon: #22314f;
  --grad-a: #3b82f6; --grad-b: #1d4ed8; --grad-c: #1e3a8a;
  --outline-text: #1e3a8a;
  --loader-bg: #eaf4ff; --loader-fg: #0b1530;
  --photo-glow: rgba(255, 244, 214, .7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #02040a; }
html.theme-day { background: #9fd0f7; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after { transition: none !important; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: color .9s ease;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.grad {
  background: linear-gradient(180deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ================= LOADER ================= */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--loader-bg); color: var(--loader-fg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .8s ease, visibility .8s;
}
#loader.done { opacity: 0; visibility: hidden; transition-duration: .45s; }
.loader-num { font-size: clamp(64px, 10vw, 110px); font-weight: 800; letter-spacing: -4px; line-height: 1; }
.loader-sign { color: var(--blue); font-size: .5em; margin-left: 4px; letter-spacing: 0; }
.loader-bar { width: 200px; height: 2px; background: var(--line); margin: 22px 0 14px; border-radius: 2px; overflow: hidden; }
#loader-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue-deep), var(--blue-2)); box-shadow: 0 0 12px var(--blue); }
.loader-text { font-size: 12px; opacity: .8; letter-spacing: .5px; }

/* =========================================================
   CIELO
   ========================================================= */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.sky > * { position: absolute; inset: 0; }

.sky-night {
  background:
    radial-gradient(ellipse 55% 60% at 8% 95%, rgba(29, 78, 216, .28), transparent 70%),
    radial-gradient(ellipse 45% 45% at 92% 8%, rgba(96, 130, 220, .14), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 50%, #060b1a 0%, #02040a 100%);
}
.sky-day {
  opacity: 0;
  background:
    radial-gradient(circle at 88% 19%, rgba(255, 248, 220, .95) 0%, rgba(255, 236, 180, .45) 10%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #2b7de0 0%, #4f9bec 28%, #86bff4 58%, #bfe0fa 82%, #eaf6ff 100%);
  transition: opacity 2s ease;
}
html.theme-day .sky-day { opacity: 1; }

.sky-sunrise {
  opacity: 0;
  background:
    radial-gradient(ellipse 90% 60% at 80% 100%, rgba(255, 150, 70, .85), transparent 70%),
    linear-gradient(180deg, rgba(90, 60, 160, .35) 0%, rgba(255, 120, 90, .35) 55%, rgba(255, 190, 110, .6) 100%);
}
html.anim-sunrise .sky-sunrise { animation: horizon 2.2s ease-in-out; }
html.anim-sunset  .sky-sunrise { animation: horizon 2.2s ease-in-out; }
@keyframes horizon { 0% { opacity: 0; } 45% { opacity: 1; } 100% { opacity: 0; } }

#stars { width: 100%; height: 100%; transition: opacity 1.4s ease; }
html.theme-day #stars { opacity: 0; }

#clouds { width: 100%; height: 100%; opacity: 0; transition: opacity 1.8s ease .4s; }
html.theme-day #clouds { opacity: 1; }
html.theme-night #clouds { transition-delay: 0s; transition-duration: 1s; }

/* ---------- Luna y sol ---------- */
.celestial {
  inset: auto;
  top: 96px; right: 7vw;
  width: var(--body-size); height: var(--body-size);
  transform: translateY(calc(var(--sp, 0) * -150px)) scale(calc(1 - var(--sp, 0) * .25));
  opacity: calc(1 - var(--sp, 0) * .65);
}
.moon-wrap, .sun-wrap { position: absolute; inset: 0; will-change: transform, opacity; }

.moon-wrap { transition: transform 1.7s cubic-bezier(.6, 0, .3, 1) .35s, opacity 1.3s ease .35s; }
html.theme-day .moon-wrap { transform: translateY(70vh) rotate(18deg); opacity: 0; transition-delay: 0s; }
#moon { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(214, 226, 255, .3)); }
.moon-glow { /* halo atmosférico en capas */
  position: absolute; inset: -120%; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(232, 238, 255, .34) 0%, rgba(214, 224, 255, .2) 15%, rgba(180, 198, 255, .1) 26%,
    rgba(150, 175, 255, .045) 40%, transparent 62%);
  animation: pulse 9s ease-in-out infinite;
}

.sun-wrap { transform: translateY(70vh); opacity: 0; transition: transform 1.9s cubic-bezier(.2, .7, .2, 1), opacity 1.3s ease; }
html.theme-day .sun-wrap { transform: none; opacity: 1; transition-delay: .3s; }
/* disco del sol: centro blanco que se funde en dorado, sin borde duro */
.sun {
  position: absolute; inset: -12%; border-radius: 50%;
  background: radial-gradient(circle,
    #ffffff 0%, #ffffff 30%, #fffcef 38%, rgba(255, 244, 205, .95) 45%,
    rgba(255, 226, 150, .6) 54%, rgba(255, 210, 120, .22) 63%, rgba(255, 210, 120, 0) 72%);
  animation: shimmer 4s ease-in-out infinite;
}
.sun-halo {
  position: absolute; inset: -190%; border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 250, 228, .75) 0%, rgba(255, 240, 190, .38) 9%, rgba(255, 228, 160, .16) 22%,
    rgba(255, 220, 150, .05) 40%, transparent 58%);
  animation: pulse 7s ease-in-out infinite;
}
.sun-rays {
  position: absolute; left: -420%; top: -420%; width: 940%; height: 940%;
  animation: spin 160s linear infinite;
  opacity: .9;
}
.sun-rays-b { animation-duration: 240s; animation-direction: reverse; opacity: .55; }
.sun-streak { /* destello horizontal de lente */
  position: absolute; left: -520%; right: -520%; top: 50%; height: 3px; transform: translateY(-50%);
  background: linear-gradient(90deg, transparent 0%, rgba(255, 246, 225, .0) 25%, rgba(255, 246, 225, .55) 50%, rgba(255, 246, 225, 0) 75%, transparent 100%);
  filter: blur(1.2px);
}
@keyframes shimmer { 50% { transform: scale(1.03); filter: brightness(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .85; } }

/* destellos de lente (solo de día) */
.flares { opacity: 0; transition: opacity 1.5s ease .9s; mix-blend-mode: screen; }
html.theme-day .flares { opacity: 1; }
html.theme-night .flares { transition-delay: 0s; transition-duration: .6s; }
.flare { position: absolute; border-radius: 50%; }
.f1 { width: 60px; height: 60px; right: 22vw; top: 27vh; background: radial-gradient(circle, rgba(200,235,255,.22), rgba(200,235,255,0) 70%); }
.f2 { width: 24px; height: 24px; right: 30vw; top: 35vh; background: radial-gradient(circle, rgba(255,240,200,.35), rgba(255,240,200,0) 70%); }
.f3 { width: 110px; height: 110px; right: 38vw; top: 44vh; background: radial-gradient(circle, rgba(170,255,220,.12), rgba(170,255,220,0) 70%); }
.f4 { display: none; }

main, .footer { position: relative; z-index: 1; }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 22px; left: 50%; z-index: 50;
  transform: translate(-50%, -30px); opacity: 0;
  display: flex; align-items: center; gap: 4px;
  padding: 6px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .9s, background .9s, border-color .9s;
}
body.ready .nav { transform: translate(-50%, 0); opacity: 1; }
.nav-link {
  font-size: 14px; font-weight: 600; color: var(--nav-text); white-space: nowrap;
  padding: 9px 18px; border-radius: 999px;
  transition: background .3s, color .6s;
}
.nav-link:hover { color: var(--title); }
.nav-link.active { background: var(--glass-active); color: var(--title); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.nav-divider { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.nav-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--nav-text);
  display: grid; place-items: center; cursor: pointer;
  transition: background .3s, color .6s, transform .3s;
}
.nav-icon + .nav-icon { margin-left: 2px; }
.nav-icon:hover { background: var(--glass-active); color: var(--title); }
.nav-icon:active { transform: scale(.92); }
.nav-icon svg { width: 16px; height: 16px; }

#theme-btn svg { transition: transform .7s cubic-bezier(.3,1.4,.5,1), opacity .4s; position: absolute; }
#theme-btn { position: relative; }
html.theme-night #theme-btn .ico-moon,
html.theme-day #theme-btn .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
html.theme-day #theme-btn .ico-moon { color: #1e3a8a; }
html.theme-night #theme-btn .ico-sun { color: #ffd76a; }


/* ================= BOTONES ================= */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px; border-radius: 12px;
  transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .6s;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #4f8ff9, #2563eb);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(37, 99, 235, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--title); }
.btn-ghost:hover { background: var(--glass-active); }
.btn-outline { border: 1px solid rgba(96,165,250,.45); color: var(--outline-text); background: rgba(37,99,235,.1); }
.btn-outline:hover { border-color: var(--blue-2); background: rgba(37,99,235,.18); }
.btn-sm { font-size: 14px; padding: 11px 18px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 120px 6vw 80px;
}
.hero-text { position: relative; z-index: 2; max-width: 600px; }
.hero-title {
  font-size: clamp(48px, 6.4vw, 92px);
  font-weight: 800; line-height: 1.02; letter-spacing: -2.5px;
  color: var(--title); transition: color .9s;
}
.hero-role { margin-top: 20px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; color: var(--soft); min-height: 1.5em; transition: color .9s; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--blue-2); margin-left: 3px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { margin-top: 22px; max-width: 470px; color: var(--muted); line-height: 1.75; font-size: 15px; transition: color .9s; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.find-me { display: flex; align-items: center; gap: 16px; margin-top: 34px; }
.find-me span { font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--label); transition: color .9s; }
.find-me a { color: var(--icon); transition: color .25s, transform .25s; }
.find-me a:hover { color: var(--title); transform: translateY(-2px); }
.find-me svg { width: 18px; height: 18px; }

[data-intro] { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity 1s, transform 1s cubic-bezier(.2,.8,.2,1), filter 1s, color .9s; }
body.ready [data-intro] { opacity: 1; transform: none; filter: none; }
body.ready [data-intro]:nth-child(2) { transition-delay: .12s, .12s, .12s, 0s; }
body.ready [data-intro]:nth-child(3) { transition-delay: .24s, .24s, .24s, 0s; }
body.ready [data-intro]:nth-child(4) { transition-delay: .36s, .36s, .36s, 0s; }
body.ready [data-intro]:nth-child(5) { transition-delay: .48s, .48s, .48s, 0s; }

/* ================= CREDENCIAL COLGANTE ================= */
.lanyard-stage { position: absolute; top: 0; right: 0; width: 50%; height: 100%; z-index: 1; touch-action: pan-y; }
.strap { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.strap-text { font: 700 8.5px "Inter", sans-serif; letter-spacing: 1.5px; fill: #c9d2e3; dominant-baseline: middle; }

.card {
  position: absolute; left: 0; top: 0;
  width: var(--card-w); height: var(--card-h);
  margin-left: calc(var(--card-w) / -2);
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  cursor: grab; user-select: none; -webkit-user-select: none;
  touch-action: none; visibility: hidden; outline: none;
}
.card.live { visibility: visible; }
.card.dragging { cursor: grabbing; }
.card-clip {
  position: absolute; left: 50%; top: -16px; transform: translateX(-50%);
  width: 34px; height: 26px; z-index: 3;
  background: linear-gradient(180deg, #e9edf3, #9aa3b2 60%, #6b7380);
  border-radius: 6px 6px 4px 4px; box-shadow: 0 2px 4px rgba(0,0,0,.5);
}
.card-clip span { position: absolute; left: 50%; top: 7px; width: 16px; height: 5px; transform: translateX(-50%); background: #2a2f38; border-radius: 3px; }

.face {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.08);
  padding: 22px 16px 12px; display: flex; flex-direction: column;
}
.face::before { content: ""; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); width: 38px; height: 7px; border-radius: 4px; background: #0b0d12; opacity: .85; }
.back { transform: rotateY(180deg); }
.front-top, .back-top { display: flex; justify-content: space-between; align-items: center; }
.tag { background: var(--ink); color: var(--paper); font: 800 10px "Inter"; letter-spacing: 2px; padding: 3px 8px; border-radius: 3px; }
.logo-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, #3b82f6, #1d4ed8); color: #fff; font: 900 11px "Inter"; letter-spacing: .5px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--ink); }
.headline { font-family: "Anton", sans-serif; font-size: 46px; line-height: .95; letter-spacing: 1px; margin-top: 6px; }
.photo-box {
  position: relative; flex: 1; margin-top: 6px; border-radius: 6px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, rgba(147, 197, 253, .55), transparent 60%),
    linear-gradient(160deg, #2c5aa0, #0f1d36);
  border: 2px solid var(--ink);
}
.badge-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; pointer-events: none; }
.side-text {
  position: absolute; right: 3px; top: 6px; bottom: 30px; writing-mode: vertical-rl;
  font-family: "Anton"; font-size: 11px; letter-spacing: 1.5px; white-space: nowrap; text-align: center;
  color: var(--paper); text-shadow: 0 1px 3px rgba(0,0,0,.7);
}
.name-plate { position: absolute; left: 8px; bottom: 8px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font: 900 11px "Inter"; letter-spacing: 1.2px; padding: 4px 8px; }
.front-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 6px; }
.portfolio-word { font-family: "Anton"; font-size: 26px; letter-spacing: 1px; transform: rotate(-4deg); transform-origin: left bottom; }
.front-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font: 600 8px "Inter"; letter-spacing: .5px; color: #555c69; }
.barcode { width: 64px; height: 14px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 3px, var(--ink) 3px 4px, transparent 4px 7px, var(--ink) 7px 10px, transparent 10px 11px); }
.scan { font-family: "Anton"; font-size: 18px; letter-spacing: 1px; }
.qr-box { margin: 10px 26px 0 0; flex: 1; background: var(--ink); color: var(--paper); border-radius: 8px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; }
.qr-title { font-family: "Anton"; font-size: 20px; letter-spacing: 2px; }
.qr-sub { font: 700 9px "Inter"; letter-spacing: 3px; opacity: .7; margin-bottom: 10px; }
.qr { width: 150px; height: 150px; background: var(--paper); padding: 8px; border-radius: 4px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.qr-fallback { font: 700 10px "Inter"; color: var(--ink); text-align: center; }
.back-side { position: absolute; right: 12px; top: 64px; bottom: 74px; writing-mode: vertical-rl; font-family: "Anton"; font-size: 14px; letter-spacing: 2px; text-align: center; }
.back-plate { margin-top: 10px; background: var(--ink); color: var(--paper); text-align: center; padding: 6px; border-radius: 4px; display: flex; flex-direction: column; }
.back-plate strong { font: 900 12px "Inter"; letter-spacing: 1.5px; }
.back-plate span { font: 500 9px "Inter"; opacity: .7; }
.lanyard-hint { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--hint); white-space: nowrap; opacity: 0; transition: opacity 1s 1.5s, color .9s; }
body.ready .lanyard-hint { opacity: 1; }

/* ================= SOBRE MÍ ================= */
.about { position: relative; padding: 40px 6vw 140px; }
.scroll-title-wrap { height: 50vh; display: flex; align-items: center; justify-content: center; }
.scroll-title { font-size: clamp(54px, 8vw, 120px); font-weight: 900; letter-spacing: -3px; color: var(--title); will-change: transform, opacity, filter; transition: color .9s; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 3vw; align-items: center; max-width: 1280px; margin: 0 auto; }
.about-hello h3 { font-size: clamp(44px, 4.8vw, 72px); font-weight: 800; line-height: 1.02; letter-spacing: -2px; margin-bottom: 28px; color: var(--title); transition: color .9s; }
.dim { color: var(--dim); transition: color .9s; }

.about-photo {
  position: relative; margin: 0 auto;
  width: min(100%, 410px, calc(72vh * 0.6966));
  aspect-ratio: 900 / 1292;
  cursor: crosshair; touch-action: pan-y;
}
.about-photo::before {
  content: ""; position: absolute; left: -15%; right: -15%; top: 5%; bottom: 10%; pointer-events: none;
  background: radial-gradient(ellipse 38% 34% at 50% 40%, var(--photo-glow), transparent 100%);
  filter: blur(24px); transition: background .9s;
}
.about-photo img, .about-photo canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 98%);
}
.photo-hint {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: .5px; color: var(--soft); white-space: nowrap;
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  transition: opacity .5s, color .9s, background .9s; pointer-events: none; z-index: 2;
}
.about-photo.touched .photo-hint { opacity: 0; }

.about-text p { color: var(--soft); line-height: 1.8; font-size: 15.5px; margin-bottom: 18px; transition: color .9s; }
.about-text strong { color: var(--title); }
.about-text .btn { margin-top: 8px; }

[data-reveal] { opacity: 0; transform: translateY(40px); filter: blur(10px); transition: opacity 1s, transform 1s cubic-bezier(.2,.8,.2,1), filter 1s; }
[data-reveal].in { opacity: 1; transform: none; filter: none; }
.about-grid [data-reveal]:nth-child(2) { transition-delay: .15s; }
.about-grid [data-reveal]:nth-child(3) { transition-delay: .3s; }

/* ================= ENCABEZADO DE SECCIÓN ================= */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--blue-2); padding: 6px 14px; border-radius: 999px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.3);
}
html.theme-day .eyebrow { color: #1d4ed8; background: rgba(255,255,255,.6); border-color: rgba(29,78,216,.25); }
.section-title { font-size: clamp(44px, 6vw, 84px); font-weight: 900; letter-spacing: -2.5px; line-height: 1.02; margin: 16px 0 14px; color: var(--title); transition: color .9s; }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.7; transition: color .9s; }

/* tarjetas de vidrio (comparten noche y día) */
.glass-card, .project, .plan, .project-cta {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background .9s, border-color .9s, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .4s, opacity 1s, filter 1s;
}
:root { --card-bg: rgba(12, 18, 34, .55); --card-border: rgba(255,255,255,.1); --card-shadow: 0 30px 60px rgba(0,0,0,.35); }
html.theme-day { --card-bg: rgba(255, 255, 255, .62); --card-border: rgba(255,255,255,.75); --card-shadow: 0 30px 60px rgba(30,64,120,.18); }

/* ================= PROYECTOS ================= */
.projects { position: relative; padding: 110px 6vw 60px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1240px; margin: 0 auto; }
.project { border-radius: 24px; padding: 18px; display: flex; flex-direction: column; }
.project:hover { box-shadow: var(--card-shadow); transform: translateY(-4px); }

.project-media {
  position: relative; display: block; border-radius: 16px; padding: 0 0 26px;
  perspective: 1000px; --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
}
.browser {
  position: relative; border-radius: 14px; overflow: hidden;
  background: #0d1220; border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
  transform-style: preserve-3d;
}
.project-media.tilting .browser, .project-media.tilting .phone { transition: transform .08s linear; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #151b2b; border-bottom: 1px solid rgba(255,255,255,.06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.browser-bar i:nth-child(2) { background: #febc2e; }
.browser-bar i:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1; margin-left: 10px; text-align: center; font-size: 11px; color: #8a94a8;
  background: #0c111d; border-radius: 6px; padding: 4px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.project-media:hover .browser img { transform: scale(1.04); }

.phone {
  position: absolute; right: 4%; bottom: 0; width: 22%;
  border-radius: 18px; padding: 5px; background: #0b0e16;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 0 0 2px #1d2333;
  transform: translateZ(40px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(0);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.phone img { width: 100%; height: auto; border-radius: 13px; display: block; }
.project-media:hover .phone { transform: translateZ(60px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-10px); }

.glare {
  position: absolute; inset: 0 0 26px; border-radius: 14px; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.18), transparent 45%);
  transition: opacity .4s;
}
.project-media:hover .glare { opacity: 1; }

.project-info { padding: 22px 8px 6px; display: flex; flex-direction: column; flex: 1; }
.project-tag { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue-2); }
html.theme-day .project-tag { color: #1d4ed8; }
.project-info h3 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin: 8px 0 10px; color: var(--title); transition: color .9s; }
.project-info p { color: var(--soft); line-height: 1.7; font-size: 15px; transition: color .9s; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.chips li {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  color: var(--soft); background: rgba(255,255,255,.06); border: 1px solid var(--line);
  transition: color .9s, background .9s, border-color .9s;
}
html.theme-day .chips li { background: rgba(255,255,255,.7); }
.project-info .btn { align-self: flex-start; margin-top: auto; }

.project-cta {
  max-width: 1240px; margin: 32px auto 0; border-radius: 24px; padding: 30px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-style: dashed; border-color: rgba(96,165,250,.45);
}
.project-cta h3 { font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--title); transition: color .9s; }
.project-cta p { color: var(--muted); margin-top: 4px; transition: color .9s; }

/* carrusel de proyectos (solo celular / tablet) */
.proj-nav { display: none; }
@media (max-width: 980px) {
  .projects-grid {
    position: relative; display: flex; gap: 14px; max-width: none;
    margin: 0 -6vw;                       /* el carrusel ocupa todo el ancho */
    padding: 4px 6vw 10px; scroll-padding-inline: 6vw;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .projects-grid .project { flex: 0 0 84%; max-width: 520px; scroll-snap-align: start; } /* asoma el siguiente → se nota que hay que deslizar */
  .projects-grid .project:hover { transform: none; }
  .proj-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px auto 0; }
  .proj-arrow {
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
    color: var(--title); background: var(--card-bg); border: 1px solid var(--card-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 22px rgba(0,0,0,.2); transition: transform .2s, opacity .3s, background .9s;
  }
  .proj-arrow:active { transform: scale(.9); }
  .proj-arrow:disabled { opacity: .35; cursor: default; }
  .proj-arrow svg { width: 20px; height: 20px; }
  .proj-dots { display: flex; gap: 8px; }
  .proj-dots button {
    width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
    background: var(--line); transition: width .35s, background .35s;
  }
  .proj-dots button.on { width: 26px; background: var(--blue); }
}

/* ================= SERVICIOS ================= */
.services { position: relative; padding: 110px 6vw 60px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1180px; margin: 0 auto; align-items: stretch; }
.plan { position: relative; border-radius: 24px; padding: 34px 28px 28px; display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--card-shadow); }
.plan-featured {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    linear-gradient(160deg, #60a5fa, #2563eb 45%, rgba(37,99,235,.15)) border-box;
  box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 30px 70px rgba(37,99,235,.25);
}
@media (min-width: 981px) { .plan-featured.in { transform: translateY(-14px); } .plan-featured.in:hover { transform: translateY(-20px); } }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff; white-space: nowrap;
  padding: 6px 14px; border-radius: 999px; background: linear-gradient(180deg, #4f8ff9, #2563eb);
  box-shadow: 0 8px 20px rgba(37,99,235,.45);
}
.plan-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  color: #93c5fd; background: rgba(59,130,246,.14); border: 1px solid rgba(96,165,250,.3);
}
html.theme-day .plan-icon { color: #1d4ed8; background: rgba(255,255,255,.7); }
.plan-icon svg { width: 24px; height: 24px; }
.plan h3 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; margin: 20px 0 6px; color: var(--title); transition: color .9s; }
.plan-desc { color: var(--muted); font-size: 14.5px; line-height: 1.6; min-height: 46px; transition: color .9s; }
.price { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price .from { font-size: 13px; color: var(--muted); }
.price .amount { font-size: 38px; font-weight: 900; letter-spacing: -1.5px; color: var(--title); transition: color .9s; }
.price .per { font-size: 14px; color: var(--muted); }
.plan-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.plan-list li { position: relative; padding-left: 28px; color: var(--soft); font-size: 14.5px; line-height: 1.5; transition: color .9s; }
.plan-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(59,130,246,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan-btn { margin-top: auto; justify-content: center; }
.plans-note { text-align: center; margin: 44px auto 0; color: var(--muted); font-size: 15px; transition: color .9s; }
.plans-note a { color: var(--blue-2); font-weight: 600; }
html.theme-day .plans-note a { color: #1d4ed8; }
.plans-note a:hover { text-decoration: underline; }

/* ================= WHATSAPP FLOTANTE ================= */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, #34e07a, #1ebe5d);
  box-shadow: 0 12px 30px rgba(30,190,93,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transform: scale(0); transition: transform .5s cubic-bezier(.3,1.5,.5,1) .8s, box-shadow .3s;
}
body.ready .wa-float { transform: scale(1); }
.wa-float:hover { box-shadow: 0 16px 40px rgba(30,190,93,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before, .wa-float::after { /* ondas */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.55); animation: wave 2.8s ease-out infinite;
}
.wa-float::after { animation-delay: 1.4s; }
@keyframes wave { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-tip {
  position: absolute; right: 74px; top: 50%; transform: translate(10px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap; font-size: 14px; font-weight: 600; color: #0b1530;
  background: #fff; padding: 9px 14px; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: opacity .35s, transform .35s;
}
.wa-tip::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: #fff; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.wa-float:hover .wa-tip, .wa-float.show-tip .wa-tip { opacity: 1; transform: translate(0, -50%); }

/* ================= SORPRESAS DEL CIELO ================= */
body.sky-hover, body.sky-hover * { cursor: pointer !important; }
.sky-tip {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: #0b1530; background: rgba(255,255,255,.92);
  padding: 7px 12px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s;
}
.sky-tip.show { opacity: 1; }

/* ================= TEXTO QUE SE ARMA AL SCROLLEAR ================= */
.split-word { display: inline-block; white-space: nowrap; }
.split-ch { display: inline-block; will-change: transform, opacity, filter; }
.split-w { transition: opacity .25s linear; }
html.no-split .split-ch, html.no-split .split-w { opacity: 1 !important; transform: none !important; filter: none !important; }

/* ================= TECNOLOGÍAS ================= */
.tech { position: relative; padding: 110px 6vw 40px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4vw; align-items: center; max-width: 1240px; margin: 0 auto; }
.tech-text .section-title { margin-top: 18px; }
.tech-hint { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 13px; color: var(--hint); transition: color .9s; }
.tech-hint svg { width: 18px; height: 18px; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px) rotate(8deg); } }

.tech-sphere {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.tech-sphere.dragging { cursor: grabbing; }
.sphere-glow {
  position: absolute; inset: 12%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 40% 35%, rgba(96,165,250,.22), rgba(37,99,235,.08) 45%, transparent 70%);
  box-shadow: inset 0 0 80px rgba(96,165,250,.12);
}
html.theme-day .sphere-glow { background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.55), rgba(255,255,255,.18) 45%, transparent 70%); box-shadow: inset 0 0 80px rgba(255,255,255,.35); }
.sphere-ring {
  position: absolute; inset: 14%; border-radius: 50%; pointer-events: none;
  border: 1px solid rgba(147,197,253,.18);
}
.sphere-ring.r1 { transform: rotateX(72deg); animation: ringspin 18s linear infinite; }
.sphere-ring.r2 { transform: rotateY(72deg); animation: ringspin2 24s linear infinite; }
html.theme-day .sphere-ring { border-color: rgba(255,255,255,.6); }
@keyframes ringspin { to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes ringspin2 { to { transform: rotateY(72deg) rotateZ(-360deg); } }

.tech-item {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  will-change: transform, opacity;
}
.tech-badge {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .9s, border-color .9s;
}
.tech-ico {
  width: 32px; height: 32px; fill: var(--c);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 55%, transparent));
}
.tech-name { font-size: 12px; font-weight: 700; color: var(--soft); white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.25); transition: color .9s; }
html.theme-day .tech-name { text-shadow: 0 1px 6px rgba(255,255,255,.6); }

/* ================= LLAMADO FINAL ================= */
.cta-final {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 6vw 160px;
}
.cta-title {
  font-size: clamp(56px, 10.5vw, 160px); font-weight: 900; line-height: .95; letter-spacing: -.045em;
  margin: 22px 0 26px; color: var(--title); transition: color .9s;
}
.cta-title .split-ch.grad { padding-bottom: .08em; } /* que no se corte la "g" */
.cta-sub { max-width: 620px; font-size: clamp(16px, 1.6vw, 20px); line-height: 1.7; color: var(--soft); transition: color .9s; }
.btn-xl { margin-top: 38px; font-size: 18px; padding: 18px 34px; border-radius: 16px; }
.btn-xl svg { width: 22px; height: 22px; }
.cta-meta { margin-top: 22px; font-size: 13px; letter-spacing: .5px; color: var(--hint); transition: color .9s; }
/* borde de un planeta que asoma abajo */
.cta-horizon {
  position: absolute; left: 50%; bottom: -90vw; width: 150vw; height: 100vw; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,.22), rgba(2,4,10,0) 40%);
  box-shadow: 0 -2px 0 rgba(147,197,253,.55), 0 -20px 60px rgba(59,130,246,.45), 0 -80px 160px rgba(37,99,235,.25);
}
html.theme-day .cta-horizon {
  background: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 40%);
  box-shadow: 0 -2px 0 rgba(255,255,255,.45), 0 -20px 60px rgba(255,236,180,.45), 0 -80px 160px rgba(255,255,255,.35);
}

/* ================= PIE DE PÁGINA ================= */
.footer { border-top: 1px solid var(--line); padding: 44px 6vw 26px; color: var(--hint); transition: color .9s, border-color .9s; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 12px; }
.f-brand .logo-mark { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
.f-brand strong { display: block; color: var(--title); font-size: 15px; transition: color .9s; }
.f-brand span { font-size: 13px; }
.f-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.f-links a { font-size: 14px; color: var(--nav-text); transition: color .3s; }
.f-links a:hover { color: var(--blue-2); }
.f-social { display: flex; gap: 10px; }
.f-social a {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  color: var(--icon); border: 1px solid var(--line); background: var(--card-bg);
  transition: color .3s, transform .3s, border-color .3s;
}
.f-social a:hover { color: var(--title); transform: translateY(-3px); border-color: rgba(96,165,250,.5); }
.f-social svg { width: 18px; height: 18px; }
.f-bottom { max-width: 1240px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; text-align: center; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  :root { --body-size: 110px; }
  .celestial { top: 88px; right: 5vw; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; padding-bottom: 0; }
  .hero-text { padding-top: 70px; }
  .lanyard-stage { position: relative; width: 100%; height: 600px; overflow: hidden; margin-top: 30px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .about-hello h3 { margin-bottom: 20px; }
  .about-photo { width: min(100%, 340px); }
  .about-text { max-width: 560px; margin: 0 auto; }
  .flares { display: none; }
  .projects-grid { grid-template-columns: 1fr; }
  /* planes: Esencial y Profesional lado a lado, Mantenimiento abajo a lo ancho */
  .plans { grid-template-columns: 1fr 1fr; max-width: 640px; gap: 14px; }
  .plans .plan:nth-child(3) { grid-column: 1 / -1; }
  .project-cta { max-width: 640px; text-align: center; justify-content: center; }
  .tech-grid { grid-template-columns: 1fr; text-align: center; }
  .tech-text { max-width: 600px; margin: 0 auto; }
  .tech-sphere { max-width: 460px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .f-links { justify-content: center; }
}
@media (max-width: 600px) {
  :root { --card-w: 215px; --card-h: 310px; --body-size: 84px; }
  .celestial { top: 78px; right: 30px; }
  .nav { top: 12px; gap: 0; padding: 4px; }
  .nav-link { padding: 8px 8px; font-size: 12px; }
  .nav-divider { margin: 0 3px; }
  .nav-icon { width: 30px; height: 30px; }
  .nav-icon svg { width: 14px; height: 14px; }
  .headline { font-size: 39px; }
  .qr { width: 125px; height: 125px; }
  .lanyard-stage { height: 540px; }
  .lanyard-hint { bottom: 4px; }
  .projects, .services { padding-top: 80px; }
  .section-head { margin-bottom: 40px; }
  .project { padding: 12px; }
  .project-info h3 { font-size: 24px; }
  /* planes compactos en celular */
  .plan { padding: 22px 14px 16px; border-radius: 18px; }
  .plan-icon { width: 36px; height: 36px; border-radius: 11px; }
  .plan-icon svg { width: 18px; height: 18px; }
  .plan h3 { font-size: 17px; margin: 12px 0 4px; letter-spacing: -.3px; }
  .plan-desc { font-size: 12px; line-height: 1.45; min-height: 0; }
  .price { margin: 12px 0 12px; padding-bottom: 12px; gap: 5px; flex-wrap: wrap; }
  .price .from { font-size: 11px; width: 100%; margin-bottom: -4px; }
  .price .amount { font-size: 26px; letter-spacing: -1px; }
  .price .per { font-size: 12px; }
  .plan-list { gap: 8px; margin-bottom: 16px; }
  .plan-list li { font-size: 12px; padding-left: 21px; line-height: 1.35; }
  .plan-list li::before { width: 15px; height: 15px; top: 0; background-size: 9px; }
  .plan-btn { font-size: 13px; padding: 10px 8px; border-radius: 10px; }
  .plan-badge { font-size: 10px; padding: 4px 10px; top: -11px; }
  /* Mantenimiento: a lo ancho, con la lista en 2 columnas */
  .plans .plan:nth-child(3) .plan-list { grid-template-columns: 1fr 1fr; }
  .plans .plan:nth-child(3) .price .from { width: auto; margin: 0; }
  .tech { padding-top: 80px; }
  .tech-badge { width: 50px; height: 50px; border-radius: 14px; }
  .tech-ico { width: 25px; height: 25px; }
  .tech-name { font-size: 10.5px; }
  .cta-final { min-height: 80vh; padding: 90px 6vw 130px; }
  .btn-xl { font-size: 16px; padding: 16px 26px; }
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .wa-float svg { width: 27px; height: 27px; }
}
@media (max-width: 380px) {
  .nav-link { padding: 7px 6px; font-size: 11.5px; }
}

/* En pantallas táctiles: deslizar hacia arriba/abajo siempre hace scroll */
@media (hover: none) {
  .card { touch-action: pan-y; }
  .about-photo { cursor: pointer; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
