/* whoscrizzz® — styles.css
 * Mantiene el lenguaje visual del sitio actual:
 *  · paleta azul-gris fría sobre #090d14
 *  · wordmark Outfit + shimmer
 *  · iconos de plataforma con animación idle/hover
 *  · globo D3 + smoke canvas
 * Mejoras: fluid type, mejor contraste, focus states, safe-area, tap targets ≥44px,
 *          motion-reduce respetado, jerarquía limpia.
 */

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

:root {
  color-scheme: dark;
  /* Tipografía: cambiar una fuente aquí la actualiza en todo el sitio */
  --font-heading: 'Outfit', system-ui, sans-serif;        /* títulos / wordmark */
  --font-label: 'Space Grotesk', system-ui, sans-serif;   /* etiquetas, taglines, UI */
  --font-body: 'Albert Sans', system-ui, sans-serif;      /* texto corrido */
  --bg: #05070b;
  --bg-soft: rgba(10, 16, 26, 0.60);
  --bg-soft-h: rgba(16, 26, 42, 0.55);
  --line: #182130;
  --fg: #b8d0e0;
  --fg-soft: #96b2c6;
  --fg-dim: #567a92;
  --fg-faint: #4a6a80;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes logo-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position:   0% center; }
}
@keyframes ig-idle { 0%,100% { filter: drop-shadow(0 0 3px rgba(225,48,108,.10)); } 50% { filter: drop-shadow(0 0 9px rgba(225,48,108,.38)); } }
@keyframes x-idle  { 0%,100% { filter: drop-shadow(0 0 3px rgba(180,190,200,.10)); } 50% { filter: drop-shadow(0 0 9px rgba(180,190,200,.35)); } }
@keyframes sp-idle { 0%,100% { filter: drop-shadow(0 0 3px rgba(26,158,74,.10)); } 50% { filter: drop-shadow(0 0 9px rgba(26,158,74,.38)); } }
@keyframes pi-idle { 0%,100% { filter: drop-shadow(0 0 3px rgba(190,40,40,.10)); } 50% { filter: drop-shadow(0 0 9px rgba(190,40,40,.35)); } }
@keyframes em-idle { 0%,100% { filter: drop-shadow(0 0 3px rgba(58,106,144,.10)); } 50% { filter: drop-shadow(0 0 9px rgba(58,106,144,.35)); } }
@keyframes x-zap {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  20% { transform: translate(-2px,0) rotate(-5deg); }
  40% { transform: translate(2px,0) rotate(5deg); }
  60% { transform: translate(-1px,0) rotate(-2deg); }
  80% { transform: translate(1px,0) rotate(2deg); }
}
@keyframes vinyl-spin { to { transform: rotate(360deg); } }
@keyframes pin-drop {
  0%   { transform: translateY(-10px); opacity: 0.5; }
  65%  { transform: translateY(2px); opacity: 1; }
  100% { transform: translateY(0); }
}
@keyframes mail-ring {
  0%,100% { transform: rotate(0deg); }
  20% { transform: rotate(-18deg); }
  45% { transform: rotate(18deg); }
  65% { transform: rotate(-9deg); }
  82% { transform: rotate(9deg); }
}
@keyframes ig-glow-svg {
  0% { filter: drop-shadow(0 0 6px rgba(225,48,108,.7)); }
  33% { filter: drop-shadow(0 0 6px rgba(247,119,55,.7)); }
  66% { filter: drop-shadow(0 0 6px rgba(131,58,180,.7)); }
  100% { filter: drop-shadow(0 0 6px rgba(225,48,108,.7)); }
}
@keyframes arrow-flow {
  0%   { opacity: 0; transform: rotate(45deg) translate(-4px,-4px); }
  35%  { opacity: 1; }
  75%  { opacity: 0; transform: rotate(45deg) translate(4px,4px); }
  100% { opacity: 0; transform: rotate(45deg) translate(4px,4px); }
}

@keyframes greet-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* ───────── BODY ───────── */
html, body {
  min-height: 100vh;
  min-height: 100svh;
}
body {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-label);
  padding:
    clamp(0.5rem, 4vw, 2.5rem) max(clamp(0.5rem, 4vw, 1.5rem), var(--safe-r))
    clamp(0.5rem, 4vw, 2.5rem) max(clamp(0.5rem, 4vw, 1.5rem), var(--safe-l));
  padding-top: max(clamp(0.5rem, 4vw, 2.5rem), var(--safe-t));
  padding-bottom: max(clamp(0.5rem, 4vw, 2.5rem), var(--safe-b));
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body[data-page="home"] {
  align-items: flex-start;
  padding-top: max(0.35rem, var(--safe-t));
  padding-bottom: max(0.5rem, var(--safe-b));
}

@media (min-width: 900px) {
  body[data-page="home"] {
    padding-top: max(0.5rem, var(--safe-t));
    padding-bottom: max(0.65rem, var(--safe-b));
  }
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 100% 70% at 15% 10%, rgba(96,120,145,0.28) 0%, transparent 60%),
    radial-gradient(ellipse 80% 90% at 85% 90%, rgba(59,82,110,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 50%, rgba(70,100,130,0.12) 0%, transparent 65%),
    linear-gradient(175deg, #0a0d12 0%, #0e1419 30%, #05070b 100%);
}

a { -webkit-tap-highlight-color: transparent; color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid #84acc2;
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 9999;
  padding: 10px 12px;
  background: #0f1b2d;
  border: 1px solid #3e5e78;
  border-radius: 8px;
  color: #d5e6f2;
  font-size: 0.9rem;
  transition: top 0.18s ease;
}
.skip-link:focus-visible {
  top: 12px;
}

/* ───────── CARD ───────── */
.card {
  width: 100%;
  max-width: clamp(320px, 92vw, 480px);
  text-align: center;
  position: relative;
  z-index: 1;
  isolation: isolate;
}
@media (min-width: 600px) { .card { max-width: 600px; } }
@media (min-width: 900px) { .card { max-width: 920px; } }
@media (min-width: 1100px) { .card { max-width: 1000px; } }

@media (min-width: 768px) {
  body[data-page="home"] .card,
  body[data-page="home"].density-airy .card,
  body[data-page="home"].density-compact .card,
  body[data-page="home"].density-default .card {
    max-width: min(100%, 1200px);
    padding-inline: clamp(12px, 2vw, 24px);
  }
}

.trademark-badge {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  font-family: var(--font-body);
  font-size: clamp(8.5px, 2vw, 9.8px);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5a7e9a;
  border: 0.5px solid rgba(154, 188, 208, 0.18);
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.4);
}
.trademark-badge svg { color: #5a7e9a; }



/* ───────── LINKS ───────── */
.links {
  display: flex; flex-direction: column;
  gap: clamp(6px, 1.5vw, 8px);
  margin-bottom: 0;
  animation: fadeSlideUp .7s cubic-bezier(.25,.46,.45,.94) .24s both;
}
.link {
  display: flex; align-items: center;
  gap: clamp(10px, 2.5vw, 13px);
  padding: clamp(11px, 2.4vw, 13px) clamp(13px, 2.9vw, 16px);
  border: 0.5px solid var(--line); border-radius: 18px;
  font-size: clamp(13px, 3.2vw, 14px);
  font-weight: 400;
  background: var(--bg-soft);
  min-height: 46px;
  transition: border-color .28s ease, background .28s ease, color .28s ease, transform .38s cubic-bezier(.23,1.0,.32,1), box-shadow .35s ease;
}
.link:hover {
  background: var(--bg-soft-h);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px -6px rgba(0,0,0,0.35), 0 0 0 1px rgba(132,172,194,0.12);
}

/* Email destacado como acción principal */
.link-primary {
  border: 1px solid rgba(100, 190, 255, 0.5);
  background: linear-gradient(135deg, rgba(60, 140, 220, 0.14), rgba(18, 58, 98, 0.1));
  box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.08);
}
.link-primary .label { color: #aadcf8; font-weight: 600; }
.link-primary:hover, .link-primary:focus-visible {
  border-color: rgba(140, 210, 255, 0.72);
  background: linear-gradient(135deg, rgba(60, 140, 220, 0.2), rgba(18, 58, 98, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(196, 230, 255, 0.12),
    0 0 0 3px rgba(110, 180, 235, 0.12);
}

/* Portafolio — CTA destacado */
.pf-cta {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(8px, 2vw, 11px);
  width: 100%;
  margin: clamp(14px, 3.5vw, 18px) 0;
  padding: clamp(14px, 3.1vw, 17px) clamp(16px, 3.6vw, 22px);
  border: 1px solid rgba(154, 188, 208, 0.5);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #dceaf4;
  background: linear-gradient(135deg, rgba(90,126,154,0.26), rgba(58,82,110,0.20));
  box-shadow:
    0 0 20px rgba(120,160,200,0.12),
    inset 0 1px 0 rgba(225, 240, 250, 0.08),
    inset 0 0 12px rgba(154,188,208,0.05);
  transition: border-color .3s ease, box-shadow .4s ease, transform .38s cubic-bezier(.23,1.0,.32,1), background .3s ease;
}
.pf-cta:hover, .pf-cta:focus-visible {
  border-color: rgba(208, 232, 244, 0.82);
  box-shadow:
    0 18px 42px -10px rgba(0,0,0,0.45),
    0 0 0 1px rgba(154,188,208,0.25),
    0 0 38px rgba(120,160,200,0.32);
  transform: translateY(-4px) scale(1.005);
  background: linear-gradient(135deg, rgba(100,138,168,0.32), rgba(64,90,122,0.26));
}
.pf-cta-arrow { width: 13px; height: 13px; flex-shrink: 0; }
.visual-feature {
  position: relative;
  overflow: hidden;
  margin: -2px 0 14px;
  padding: clamp(16px, 4vw, 22px);
  border: 1px solid rgba(145, 188, 216, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(130% 110% at 92% -8%, rgba(143, 190, 226, 0.2), transparent 52%),
    linear-gradient(145deg, rgba(20, 36, 56, 0.64), rgba(8, 14, 24, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(226, 239, 250, 0.1),
    0 16px 34px rgba(2, 7, 14, 0.42),
    0 0 34px rgba(106, 148, 184, 0.14);
  text-align: left;
  transition: transform .38s cubic-bezier(.23,1.0,.32,1), box-shadow .4s ease, border-color .3s ease;
}
.visual-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(145, 188, 216, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(226, 239, 250, 0.12),
    0 22px 48px -10px rgba(0,0,0,0.48),
    0 0 42px rgba(106, 148, 184, 0.18);
}
.visual-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(194, 224, 244, 0.16) 46%, transparent 82%);
  transform: translateX(-115%);
  transition: transform .65s ease;
  pointer-events: none;
}
.visual-feature:hover::before,
.visual-feature:focus-within::before { transform: translateX(115%); }
.visual-feature-kicker {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: clamp(10px, 2.4vw, 11px);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(146, 188, 214, 0.84);
}
.visual-feature-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.2;
  letter-spacing: .01em;
  color: #d7e9f5;
}
.visual-feature-copy {
  margin: 8px 0 12px;
  font-family: var(--font-body);
  font-size: clamp(12px, 3vw, 13.5px);
  line-height: 1.55;
  color: rgba(170, 202, 224, 0.82);
}
.visual-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(143, 190, 226, 0.42);
  background: rgba(15, 28, 43, 0.62);
  color: #d0e8f4;
  font-family: var(--font-label);
  font-size: clamp(11px, 2.8vw, 12px);
  font-weight: 500;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.visual-feature-link svg {
  width: 13px;
  height: 13px;
}
.visual-feature-link:hover,
.visual-feature-link:focus-visible {
  border-color: rgba(206, 232, 248, 0.8);
  background: rgba(28, 46, 66, 0.82);
  box-shadow: 0 0 0 3px rgba(143, 190, 226, 0.14);
  transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .pf-cta:hover, .pf-cta:focus-visible { transform: none; }
  .visual-feature::before { transition: none; }
  .visual-feature-link:hover,
  .visual-feature-link:focus-visible { transform: none; }
}
.icon {
  width: clamp(34px, 8.5vw, 40px);
  height: clamp(34px, 8.5vw, 40px);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1);
}
.link:hover .icon { transform: scale(1.12); }
.icon svg { width: clamp(19px, 4.8vw, 22px); height: clamp(19px, 4.8vw, 22px); }
.label { flex: 1; text-align: left; font-family: var(--font-label); font-weight: 400; letter-spacing: 0.01em; }
.arrow { font-size: clamp(14px, 3.5vw, 16px); transition: color .22s ease, transform .32s cubic-bezier(.34,1.56,.64,1); }
.link:hover .arrow { transform: translateX(4px); }

/* Per-platform colors — orden HTML: Email, Instagram, X, Spotify, Pinterest */
.link:nth-child(1) { border-color: rgba(100,190,255,.18); box-shadow: 0 2px 10px rgba(100,190,255,.09), 0 1px 3px rgba(0,0,0,.16); }
.link:nth-child(1) .label { color: #7ab8d8; }
.link:nth-child(1) .arrow { color: rgba(100,190,255,.35); }
.link:nth-child(1):hover, .link:nth-child(1):focus-visible { border-color: rgba(100,190,255,.42); box-shadow: 0 6px 22px rgba(100,190,255,.18), 0 2px 5px rgba(0,0,0,.16); }
.link:nth-child(1):hover .label, .link:nth-child(1):focus-visible .label { color: #aadcf8; }
.link:nth-child(1):hover .arrow, .link:nth-child(1):focus-visible .arrow { color: rgba(100,190,255,.75); }

.link:nth-child(2) { border-color: rgba(225,48,108,.18); box-shadow: 0 2px 10px rgba(225,48,108,.09), 0 1px 3px rgba(0,0,0,.16); }
.link:nth-child(2) .label { color: #bf7090; }
.link:nth-child(2) .arrow { color: rgba(225,48,108,.35); }
.link:nth-child(2):hover, .link:nth-child(2):focus-visible { border-color: rgba(225,48,108,.42); box-shadow: 0 6px 22px rgba(225,48,108,.18), 0 2px 5px rgba(0,0,0,.16); }
.link:nth-child(2):hover .label, .link:nth-child(2):focus-visible .label { color: #df8faa; }
.link:nth-child(2):hover .arrow, .link:nth-child(2):focus-visible .arrow { color: rgba(225,48,108,.75); }

.link:nth-child(3) { border-color: rgba(180,190,200,.16); box-shadow: 0 2px 10px rgba(180,190,200,.07), 0 1px 3px rgba(0,0,0,.16); }
.link:nth-child(3) .label { color: #8a9aaa; }
.link:nth-child(3) .arrow { color: rgba(180,190,200,.35); }
.link:nth-child(3):hover, .link:nth-child(3):focus-visible { border-color: rgba(200,210,220,.40); box-shadow: 0 6px 22px rgba(180,190,200,.15), 0 2px 5px rgba(0,0,0,.16); }
.link:nth-child(3):hover .label, .link:nth-child(3):focus-visible .label { color: #b8c8d8; }
.link:nth-child(3):hover .arrow, .link:nth-child(3):focus-visible .arrow { color: rgba(180,190,200,.75); }

.link:nth-child(4) { border-color: rgba(26,158,74,.18); box-shadow: 0 2px 10px rgba(26,158,74,.09), 0 1px 3px rgba(0,0,0,.16); }
.link:nth-child(4) .label { color: #4a9268; }
.link:nth-child(4) .arrow { color: rgba(26,158,74,.35); }
.link:nth-child(4):hover, .link:nth-child(4):focus-visible { border-color: rgba(26,158,74,.42); box-shadow: 0 6px 22px rgba(26,158,74,.18), 0 2px 5px rgba(0,0,0,.16); }
.link:nth-child(4):hover .label, .link:nth-child(4):focus-visible .label { color: #62ae80; }
.link:nth-child(4):hover .arrow, .link:nth-child(4):focus-visible .arrow { color: rgba(26,158,74,.80); }

.link:nth-child(5) { border-color: rgba(190,40,40,.18); box-shadow: 0 2px 10px rgba(190,40,40,.09), 0 1px 3px rgba(0,0,0,.16); }
.link:nth-child(5) .label { color: #a06060; }
.link:nth-child(5) .arrow { color: rgba(190,40,40,.35); }
.link:nth-child(5):hover, .link:nth-child(5):focus-visible { border-color: rgba(190,40,40,.42); box-shadow: 0 6px 22px rgba(190,40,40,.18), 0 2px 5px rgba(0,0,0,.16); }
.link:nth-child(5):hover .label, .link:nth-child(5):focus-visible .label { color: #c07878; }
.link:nth-child(5):hover .arrow, .link:nth-child(5):focus-visible .arrow { color: rgba(190,40,40,.80); }

/* Icon idle — orden HTML: Email, Instagram, X, Spotify, Pinterest */
.link:nth-child(1) .icon svg { animation: em-idle 3.6s ease-in-out infinite; }
.link:nth-child(2) .icon svg { animation: ig-idle 3.0s ease-in-out .5s infinite; }
.link:nth-child(3) .icon svg { animation: x-idle  3.4s ease-in-out 1.0s infinite; }
.link:nth-child(4) .icon svg { animation: sp-idle 2.8s ease-in-out 1.5s infinite; }
.link:nth-child(5) .icon svg { animation: pi-idle 3.2s ease-in-out 2.0s infinite; }
.link:nth-child(1):hover .icon { filter: drop-shadow(0 0 14px rgba(100,190,255,.55)); }
.link:nth-child(1):hover .icon svg { animation: mail-ring .65s ease 1; }
.link:nth-child(2):hover .icon { filter: drop-shadow(0 0 14px rgba(225,48,108,.55)); }
.link:nth-child(2):hover .icon svg { animation: ig-glow-svg 1.8s linear infinite; }
.link:nth-child(3):hover .icon { filter: drop-shadow(0 0 14px rgba(180,190,200,.45)); }
.link:nth-child(3):hover .icon svg { animation: x-zap .45s ease 1; }
.link:nth-child(4):hover .icon { filter: drop-shadow(0 0 14px rgba(26,158,74,.55)); }
.link:nth-child(4):hover .icon svg { animation: vinyl-spin 2s linear infinite; transform-origin: center; }
.link:nth-child(5):hover .icon { filter: drop-shadow(0 0 14px rgba(190,40,40,.55)); }
.link:nth-child(5):hover .icon svg { animation: pin-drop .5s cubic-bezier(.34,1.56,.64,1) 1; }

/* ───────── PORTFOLIO ───────── */
.portfolio { margin-bottom: clamp(1rem, 3.5vw, 1.6rem); animation: fadeSlideUp .7s cubic-bezier(.25,.46,.45,.94) .40s both; }
.portfolio summary {
  list-style: none;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
  padding: clamp(10px, 2.4vw, 13px) 0;
  color: var(--fg-dim);
  font-size: clamp(10.5px, 2.6vw, 12px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  transition: color .25s ease;
}
.portfolio summary::-webkit-details-marker { display: none; }
.portfolio summary::marker { display: none; }
.portfolio summary .p-line { flex: 1; height: 0.5px; background: linear-gradient(90deg, transparent, #2e5270); transition: background .3s ease; }
.portfolio summary .p-line:last-child { background: linear-gradient(90deg, #2e5270, transparent); }
.portfolio summary .p-arrow { font-size: clamp(15px, 3.8vw, 17px); transition: transform .35s cubic-bezier(.34,1.56,.64,1); color: #2e5270; }
.portfolio[open] summary .p-arrow { transform: rotate(90deg); }
.portfolio[open] summary { color: var(--fg-soft); }
.portfolio[open] summary .p-line { background: linear-gradient(90deg, transparent, #3d6a8a); }
.portfolio[open] summary .p-line:last-child { background: linear-gradient(90deg, #3d6a8a, transparent); }
.portfolio-links {
  display: flex; flex-direction: column;
  gap: clamp(10px, 2.5vw, 14px);
  margin-top: clamp(10px, 2.5vw, 14px);
  animation: fadeSlideUp .35s cubic-bezier(.25,.46,.45,.94) both;
}
.cv-bio {
  font-size: clamp(13px, 3.2vw, 14.5px);
  font-weight: 300;
  color: #7aa0b8;
  line-height: 1.78;
  text-align: left;
  padding: clamp(13px, 3.2vw, 17px) clamp(14px, 3.5vw, 20px);
  border: 0.5px solid #131f2e;
  border-radius: 13px;
  background: rgba(8, 13, 22, 0.4);
}
.cv-skills { display: flex; flex-wrap: wrap; gap: clamp(7px, 1.8vw, 9px); padding: 2px 0; }
.skill {
  font-size: clamp(11.5px, 2.8vw, 13px);
  font-weight: 300;
  color: #7aa0b8;
  letter-spacing: 0.07em;
  border: 0.5px solid var(--line);
  border-radius: 20px;
  padding: clamp(6px, 1.4vw, 8px) clamp(11px, 2.7vw, 14px) clamp(6px, 1.4vw, 8px) 5px;
  background: rgba(8, 13, 22, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.skill-icon {
  width: clamp(21px, 5.2vw, 25px);
  height: clamp(21px, 5.2vw, 25px);
  border-radius: 50%;
  border: 0.5px solid #1e3348;
  background: rgba(6, 10, 18, 0.7);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.skill-icon svg { width: clamp(10px, 2.5vw, 12px); height: clamp(10px, 2.5vw, 12px); }

.cv-timeline { padding: clamp(12px, 2.2vw, 14px) 18px 0; position: relative; margin-bottom: clamp(22px, 5vw, 30px); }
.cv-timeline::before { content: ''; position: absolute; left: 22px; top: 16px; bottom: 10px; width: 0.5px; background: linear-gradient(180deg, #1e3347 60%, transparent); }
.tl-item { display: flex; gap: 14px; padding-left: 28px; position: relative; margin-bottom: clamp(16px, 3.8vw, 22px); text-align: left; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position: absolute; left: -4px; top: 6px; width: 9px; height: 9px; border-radius: 50%; border: 0.5px solid #2a4a62; background: rgba(6, 10, 18, 0.9); }
.tl-now { border-color: #3a7a90; box-shadow: 0 0 6px rgba(58, 122, 144, 0.35); }
.tl-date { font-size: clamp(10.5px, 2.5vw, 12px); font-weight: 300; color: var(--fg-dim); letter-spacing: 0.08em; margin-bottom: 3px; }
.tl-role { font-size: clamp(14px, 3.5vw, 15.5px); font-weight: 400; color: var(--fg-soft); line-height: 1.35; }
.tl-co { font-size: clamp(11.5px, 2.8vw, 13px); font-weight: 300; color: var(--fg-dim); letter-spacing: 0.02em; margin-top: 2px; }
.tl-badge {
  display: inline-block;
  font-size: clamp(9.5px, 2.2vw, 11px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #2a7a4a;
  background: rgba(42, 122, 74, 0.12);
  border: 0.5px solid rgba(42, 122, 74, 0.25);
  border-radius: 10px;
  padding: 3px 9px;
  margin-top: 4px;
}

/* CV cards */
.cv-card {
  display: flex; align-items: center;
  gap: clamp(14px, 2.8vw, 18px);
  padding: clamp(16px, 3vw, 20px) clamp(18px, 3.5vw, 22px);
  border: 0.5px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  min-height: 60px;
  transition: border-color .28s ease, background .28s ease, transform .32s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease;
  box-shadow: 0 6px 20px -4px rgba(0, 0, 0, 0.22);
}
.cv-card:hover { background: var(--bg-soft-h); transform: translateY(-2px); }
.cv-card-badge {
  width: clamp(38px, 9.5vw, 44px);
  height: clamp(38px, 9.5vw, 44px);
  border-radius: 12px;
  background: rgba(6, 10, 18, 0.8);
  border: 0.5px solid #1e3348;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), border-color .25s ease;
}
.cv-card-badge svg { width: clamp(17px, 4.2vw, 21px); height: clamp(17px, 4.2vw, 21px); }
.cv-card:hover .cv-card-badge { transform: scale(1.10); }
.cv-card-body { flex: 1; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.cv-card-title { font-size: clamp(13px, 3.2vw, 14px); font-weight: 400; font-family: var(--font-label); letter-spacing: 0.01em; }
.cv-card-desc { font-size: clamp(10.5px, 2.5vw, 12px); font-weight: 300; color: var(--fg-faint); letter-spacing: 0.02em; }

.portfolio-links a:nth-of-type(1) { border-color: rgba(60,120,200,.18); }
.portfolio-links a:nth-of-type(1) .cv-card-title { color: #6898c8; }
.portfolio-links a:nth-of-type(1) .cv-card-badge { border-color: rgba(60,120,200,.22); }
.portfolio-links a:nth-of-type(1) .cv-card-badge svg { stroke: #5888b8; }
.portfolio-links a:nth-of-type(1) .arrow { color: rgba(60,120,200,.35); }
.portfolio-links a:nth-of-type(1):hover { border-color: rgba(60,120,200,.42); }
.portfolio-links a:nth-of-type(1):hover .cv-card-title { color: #88b4e0; }
.portfolio-links a:nth-of-type(1):hover .arrow { color: rgba(60,120,200,.80); }

.portfolio-links a:nth-of-type(2) { border-color: rgba(42,140,110,.18); }
.portfolio-links a:nth-of-type(2) .cv-card-title { color: #4a9880; }
.portfolio-links a:nth-of-type(2) .cv-card-badge { border-color: rgba(42,140,110,.22); }
.portfolio-links a:nth-of-type(2) .cv-card-badge svg { stroke: #428870; }
.portfolio-links a:nth-of-type(2) .arrow { color: rgba(42,140,110,.35); }
.portfolio-links a:nth-of-type(2):hover { border-color: rgba(42,140,110,.42); }
.portfolio-links a:nth-of-type(2):hover .cv-card-title { color: #62b898; }
.portfolio-links a:nth-of-type(2):hover .arrow { color: rgba(42,140,110,.80); }

.portfolio-links a:nth-of-type(3) { border-color: rgba(180,130,50,.18); }
.portfolio-links a:nth-of-type(3) .cv-card-title { color: #a88848; }
.portfolio-links a:nth-of-type(3) .cv-card-badge { border-color: rgba(180,130,50,.22); }
.portfolio-links a:nth-of-type(3) .cv-card-badge svg { stroke: #9a7840; }
.portfolio-links a:nth-of-type(3) .arrow { color: rgba(180,130,50,.35); }
.portfolio-links a:nth-of-type(3):hover { border-color: rgba(180,130,50,.42); }
.portfolio-links a:nth-of-type(3):hover .cv-card-title { color: #c8a860; }
.portfolio-links a:nth-of-type(3):hover .arrow { color: rgba(180,130,50,.80); }

/* ───────── FOOTER ───────── */
footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(9.5px, 2.3vw, 11.5px);
  color: var(--fg-dim, #64748b);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  margin-top: clamp(10px, 2.5vw, 14px);
  animation: fadeSlideUp .7s cubic-bezier(.25,.46,.45,.94) .52s both;
}
.foot-mark {
  color: #94a3b8;
  opacity: 0.92;
}
.foot-mark sup { font-size: 0.6em; vertical-align: top; margin-left: 1px; opacity: 0.85; }
.foot-sep {
  opacity: 0.45;
  color: #64748b;
  margin: 0 6px;
}
.foot-email {
  color: #94a3b8;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}
.foot-email:hover,
.foot-email:focus-visible {
  color: #e2e8f0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ───────── SMOKE + AURORA (detrás del contenido; toast encima) ───────── */
#smoke { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#lightning-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .84;
  filter: saturate(.94) contrast(.98);
}
body.perf-performance #lightning-canvas {
  opacity: .52;
  filter: none;
}
body.perf-performance #smoke {
  opacity: .42;
}


/* ───────── BREAKPOINTS ───────── */
@media (max-width: 380px) {
  .links { gap: 6px; }
}
@media (min-width: 600px) {
  .links { gap: 10px; }
}

/* ───────── REVEAL ON SCROLL ───────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s cubic-bezier(.25,.46,.45,.94), transform .7s cubic-bezier(.25,.46,.45,.94); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────── AVAILABILITY ───────── */
.availability {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 2.7vw, 15px) clamp(14px, 3.1vw, 18px);
  border: 0.5px solid rgba(42, 122, 74, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(42, 122, 74, 0.06), rgba(8, 13, 22, 0.4));
  backdrop-filter: blur(6px);
}
.av-status { display: flex; align-items: center; gap: 11px; min-width: 0; }
.av-pulse { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #3aaa66; box-shadow: 0 0 8px rgba(58, 170, 102, 0.6); flex-shrink: 0; }
.av-pulse::after { content: ''; position: absolute; inset: -3px; border: 1px solid rgba(58, 170, 102, 0.5); border-radius: 50%; animation: av-pulse 2s ease-out infinite; }
@keyframes av-pulse { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.av-text { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.av-title { font-size: clamp(12.5px, 3vw, 13.5px); font-weight: 400; color: #6ec898; letter-spacing: 0.02em; }
.av-sub { font-size: clamp(10.5px, 2.5vw, 11.5px); font-weight: 300; color: var(--fg-dim); margin-top: 2px; letter-spacing: 0.04em; }
.av-cv {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  font-size: clamp(11px, 2.6vw, 12px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #84acc2;
  border: 0.5px solid rgba(132, 172, 194, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(22, 36, 56, 0.64), rgba(8, 13, 22, 0.62));
  flex-shrink: 0;
  transition: border-color .25s ease, color .25s ease, background .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.av-cv svg { width: 13px; height: 13px; }
.av-cv:hover, .av-cv:focus-visible {
  border-color: rgba(132, 172, 194, 0.55);
  color: #d0e8f4;
  background: rgba(20, 32, 48, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.3), 0 0 0 3px rgba(132, 172, 194, 0.14);
}

/* ───────── METRICS ───────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 2vw, 12px);
  align-items: stretch;
}
.metric {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(14px, 3.3vw, 19px) 9px;
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 13, 22, 0.4);
  backdrop-filter: blur(4px);
  transition: border-color .3s ease, transform .38s cubic-bezier(.23,1.0,.32,1), box-shadow .35s ease;
  min-height: clamp(118px, 22vw, 146px);
}
.metric:hover {
  border-color: rgba(132, 172, 194, 0.38);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px -8px rgba(0,0,0,0.38), 0 0 0 1px rgba(132,172,194,0.1);
}
.m-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(38px, 7vw, 46px);
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(24px, 6.5vw, 32px);
  line-height: 1;
  background: linear-gradient(120deg, #84acc2 0%, #d0e8f4 50%, #84acc2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.m-num-text {
  width: 100%;
  text-align: center;
  line-height: 1.12;
  font-size: clamp(13px, 3.4vw, 16px);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: normal;
}
.m-label {
  width: 100%;
  max-width: 18ch;
  min-height: 2.8em;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  font-family: var(--font-body);
  font-size: clamp(9.5px, 2.3vw, 10.5px);
  font-weight: 300;
  color: var(--fg-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
}

/* ───────── NOW CARD ───────── */
.now-card {
  padding: clamp(14px, 3.1vw, 17px) clamp(15px, 3.6vw, 19px);
  border: 0.5px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 13, 22, 0.42);
  backdrop-filter: blur(4px);
  text-align: left;
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.2);
  transition: transform .35s cubic-bezier(.23,1.0,.32,1), box-shadow .35s ease, border-color .3s ease;
}
.now-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132,172,194,0.28);
  box-shadow: 0 10px 26px -6px rgba(0,0,0,0.32);
}
.now-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.now-tag { font-family: var(--font-body); font-size: clamp(9.5px, 2.3vw, 10.5px); font-weight: 400; letter-spacing: 0.22em; color: #84acc2; }
.now-week { font-family: var(--font-body); font-size: clamp(9.5px, 2.2vw, 10.5px); font-weight: 300; letter-spacing: 0.08em; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.now-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.now-list li { font-size: clamp(12.5px, 3vw, 13.5px); font-weight: 300; color: #7aa0b8; line-height: 1.55; display: flex; gap: 9px; align-items: flex-start; }
.now-bullet { color: #4a6a82; font-size: 0.7em; margin-top: 0.55em; flex-shrink: 0; }

/* ───────── CV CARDS EXPANDIBLES ───────── */
.cv-cards { display: flex; flex-direction: column; gap: clamp(8px, 2vw, 10px); }
.cv-card-x { border-radius: 22px; }
.cv-card-x summary.cv-card { list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.cv-card-x summary.cv-card::-webkit-details-marker { display: none; }
.cv-card-x summary.cv-card::marker { display: none; }
.cv-toggle {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0.5px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 300;
  color: var(--fg-dim);
  background: rgba(6, 10, 18, 0.5);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), color .25s ease, border-color .25s ease;
  flex-shrink: 0;
}
.cv-card-x[open] .cv-toggle { transform: rotate(45deg); color: #84acc2; border-color: rgba(132, 172, 194, 0.4); }
.cv-detail {
  margin-top: 8px;
  padding: 15px 17px 17px;
  border: 0.5px solid var(--line);
  border-top: none;
  border-radius: 0 0 18px 18px;
  background: rgba(6, 10, 18, 0.58);
  backdrop-filter: blur(3px);
  display: flex; flex-direction: column; gap: 12px;
  text-align: left;
  animation: cv-detail-in .35s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes cv-detail-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.cv-d-win {
  font-size: clamp(12.5px, 3vw, 13.5px);
  font-weight: 300;
  color: #7aa0b8;
  line-height: 1.6;
  padding: 9px 12px;
  border-left: 2px solid rgba(132, 172, 194, 0.4);
  background: rgba(132, 172, 194, 0.05);
  border-radius: 0 8px 8px 0;
}
.cv-d-win strong { color: #d0e8f4; font-weight: 500; }
.cv-d-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-d-stack span {
  font-size: clamp(10.5px, 2.4vw, 11.5px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #8aacc2;
  padding: 4px 10px;
  border: 0.5px solid rgba(132, 172, 194, 0.18);
  border-radius: 6px;
  background: rgba(20, 32, 48, 0.5);
}
.cv-d-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.cv-tag {
  font-size: clamp(9.5px, 2.2vw, 10.5px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-soft);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(20, 32, 48, 0.48);
  border: 0.5px solid rgba(132,172,194,0.18);
}
.cv-d-link {
  font-size: clamp(11.5px, 2.7vw, 12.5px);
  font-weight: 400;
  color: #84acc2;
  letter-spacing: 0.04em;
  margin-top: 2px;
  align-self: flex-start;
  transition: color .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.cv-d-link:hover { color: #d0e8f4; transform: translateX(3px); }

/* ───────── STACK STRIPE ───────── */
.stack-stripe {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(12px, 2.8vw, 14px) clamp(14px, 3.3vw, 16px);
  border: 0.5px solid var(--line);
  border-radius: 13px;
  background: rgba(8, 13, 22, 0.4);
}
.stack-label {
  font-family: var(--font-body);
  font-size: clamp(9.5px, 2.3vw, 10.5px);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--fg-dim);
  text-align: left;
}
.stack-items { display: flex; flex-wrap: wrap; gap: 6px; }
.stk {
  font-size: clamp(11px, 2.6vw, 12px);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #6a8aa2;
  padding: 5px 10px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  background: rgba(20, 32, 48, 0.4);
  filter: grayscale(1);
  transition: color .3s ease, border-color .3s ease, filter .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), background .3s ease;
}
.stk:hover { filter: grayscale(0); transform: translateY(-2px); }
.stk[data-tool="microsoft"]:hover { color: #8ab0d0; background: rgba(110,160,210,0.15); border-color: rgba(110,160,210,0.4); }
.stk[data-tool="apple"]:hover { color: #c4dce8; background: rgba(196,220,232,0.15); border-color: rgba(196,220,232,0.4); }
.stk[data-tool="whatsapp"]:hover { color: #62ae80; background: rgba(26,158,74,0.15); border-color: rgba(26,158,74,0.4); }
.stk[data-tool="pos"]:hover { color: #78a4c2; background: rgba(58,106,144,0.15); border-color: rgba(58,106,144,0.4); }
.stk[data-tool="canva"]:hover { color: #70b8b8; background: rgba(42,140,140,0.15); border-color: rgba(42,140,140,0.4); }
.stk[data-tool="adobe"]:hover { color: #c07878; background: rgba(190,40,40,0.15); border-color: rgba(190,40,40,0.4); }


/* ───────── TOAST ───────── */
.toast {
  position: fixed;
  bottom: 16px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  border: 0.5px solid rgba(58, 170, 102, 0.3);
  border-radius: 999px;
  background: rgba(10, 16, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6ec898;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 110;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast .t-icon { color: #3aaa66; font-weight: 600; }

/* ─── TOUCH: sin hover pegado en iOS Safari / dispositivos táctiles ─── */
@media (hover: none) {
  .link:hover { background: var(--bg-soft); transform: none; box-shadow: inherit; }
  .link:hover .icon { transform: none; filter: none; }
  .link:hover .arrow { transform: none; }
  .link:nth-child(1):hover, .link:nth-child(2):hover,
  .link:nth-child(3):hover, .link:nth-child(4):hover,
  .link:nth-child(5):hover { border-color: inherit; box-shadow: inherit; }
  .link:nth-child(1):hover .label { color: #7ab8d8; }
  .link:nth-child(2):hover .label { color: #bf7090; }
  .link:nth-child(3):hover .label { color: #8a9aaa; }
  .link:nth-child(4):hover .label { color: #4a9268; }
  .link:nth-child(5):hover .label { color: #a06060; }
  .link:nth-child(1):hover .arrow { color: rgba(100,190,255,.35); }
  .link:nth-child(2):hover .arrow { color: rgba(225,48,108,.35); }
  .link:nth-child(3):hover .arrow { color: rgba(180,190,200,.35); }
  .link:nth-child(4):hover .arrow { color: rgba(26,158,74,.35); }
  .link:nth-child(5):hover .arrow { color: rgba(190,40,40,.35); }
  .link:nth-child(1):hover .icon svg { animation: em-idle 3.6s ease-in-out infinite; }
  .link:nth-child(2):hover .icon svg { animation: ig-idle 3.0s ease-in-out .5s infinite; }
  .link:nth-child(3):hover .icon svg { animation: x-idle  3.4s ease-in-out 1.0s infinite; }
  .link:nth-child(4):hover .icon svg { animation: sp-idle 2.8s ease-in-out 1.5s infinite; }
  .link:nth-child(5):hover .icon svg { animation: pi-idle 3.2s ease-in-out 2.0s infinite; }
  .cv-card:hover { background: var(--bg-soft); transform: none; box-shadow: none; }
  .cv-card:hover .cv-card-badge { transform: none; }
  .metric:hover { transform: none; border-color: var(--line); }
  .stk:hover { filter: grayscale(1); transform: none; color: #6a8aa2; background: rgba(20,32,48,0.4); border-color: var(--line); }
  .cv-d-link:hover { color: inherit; transform: none; }
  .hero-wordmark:hover { filter: none; }
}

/* ───────── PRINT ───────── */
@media print {
  body { background: #fff !important; color: #1a1a1a !important; padding: 24px !important; }
  body::before, #smoke, #lightning-canvas, .toast, .links { display: none !important; }
  .card { max-width: 100% !important; }
  .hero-wordmark, .hero-line, .hero-tagline { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; }
  .trademark-badge { color: #555 !important; border-color: #aaa !important; background: #fff !important; }
  .portfolio { box-shadow: none !important; }
  .portfolio summary { color: #1a1a1a !important; }
  .portfolio:not([open]) > div { display: block !important; }
  .portfolio summary .p-arrow { display: none !important; }
  .cv-card-x { break-inside: avoid; }
  .cv-card-x:not([open]) .cv-detail { display: block !important; }
  .cv-toggle { display: none !important; }
  .cv-bio, .now-list li, .av-title, .tl-role, .cv-card-title, .cv-d-win, .cv-d-win strong { color: #1a1a1a !important; }
  .av-sub, .tl-date, .tl-co, .cv-card-desc, .cv-d-stack span, .cv-tag, .stack-label, .now-tag, .now-week, .skill, .m-label { color: #555 !important; }
  .skill-icon, .cv-card-badge, .availability, .metric, .now-card, .stack-stripe, .cv-d-stack span, .skill, .cv-tag {
    background: #f6f6f6 !important; border-color: #ccc !important;
  }
  .m-num { color: #1a1a1a !important; -webkit-text-fill-color: #1a1a1a !important; background: none !important; }
  .av-pulse { background: #3aaa66 !important; box-shadow: none !important; }
  .av-pulse::after { display: none !important; }
  .stk { filter: none !important; color: #1a1a1a !important; background: #f0f0f0 !important; border-color: #ccc !important; }
  footer { color: #777 !important; }
  a { color: #1a1a1a !important; text-decoration: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #888; }
  a[href^="mailto:"]::after, a[href^="/"]::after { content: ""; }
}

/* ───────── PORTFOLIO FULL LINK ───────── */
.pf-full-link {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(154,188,208,.55);
  text-decoration: none;
  margin-top: 4px;
  transition: color .2s;
}
.pf-full-link:hover { color: rgba(154,188,208,.9); }

/* ───────── REDUCED MOTION ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-wordmark { animation: none !important; }
}

/* ==========================================================================
   RESPONSIVIDAD MÓVIL / TABLET VERTICAL (≤768px)
   Selectores reales del sitio (home + portafolio). Mobile-first refinements.
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Contenedores globales */
  body[data-page='home'],
  body[data-page='portafolio'] {
    padding:
      max(12px, var(--safe-t))
      max(10px, var(--safe-r))
      max(12px, var(--safe-b))
      max(10px, var(--safe-l));
  }

  body[data-page='home'] .card,
  body[data-page='portafolio'] .pf-main {
    width: 100%;
    max-width: 100%;
  }

  /* 2. Home — hero apilado: texto → avatar */
  body[data-page='home'] .hero-unified-body--slim {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: auto;
    padding-top: clamp(8px, 2.5vw, 14px);
  }

  body[data-page='home'] .hero-logo-column {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
  }

  body[data-page='home'] .hero-logo.hero-logo--stage {
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
  }

  body[data-page='home'] .hero-unified-panel .hero-wordmark {
    font-size: clamp(2rem, 8.2vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
  }

  body[data-page='home'] .hero-unified-panel .hero-line {
    margin-inline: auto;
  }

  body[data-page='home'] .hero-unified-panel .hero-tagline {
    font-size: clamp(0.82rem, 3.4vw, 1rem);
    letter-spacing: 0.1em;
    text-align: center;
    max-width: 34ch;
    margin-inline: auto;
  }

  body[data-page='home'] .hero-byline {
    align-items: center;
    text-align: center;
    max-width: 36ch;
    margin-inline: auto;
  }

  body[data-page='home'] .hero-byline-services {
    font-size: clamp(0.88rem, 3.6vw, 0.95rem);
    line-height: 1.5;
    max-width: 100%;
  }

  body[data-page='home'] .home-hero-actions {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
    margin-top: clamp(12px, 3vw, 16px);
  }

  body[data-page='home'] .home-hero-btn {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    padding: 14px 20px;
    justify-content: center;
  }

  body[data-page='home'] .hero-unified-panel .hero-visual {
    order: 2;
    width: min(100%, 300px);
    max-width: 300px;
    margin-inline: auto;
    margin-top: clamp(1.25rem, 4vw, 2.5rem);
  }

  body[data-page='home'] .hero-unified-panel .hero-visual__frame img {
    max-width: 300px;
    max-height: min(42dvh, 42vh);
    margin-inline: auto;
  }

  /* 3. Portafolio — hero solo texto */
  body[data-page='portafolio'] .pf-hero--solo .pf-hero-pair {
    margin-inline: auto;
  }

  body[data-page='portafolio'] .pf-hero--solo .pf-hero-copy {
    align-items: center;
    text-align: center;
    max-width: 100%;
    padding: 0 15px;
  }

  body[data-page='portafolio'] .pf-hero .hero-logo,
  body[data-page='portafolio'] .pf-hero .pf-hero-identity {
    align-items: center;
    align-self: center;
    text-align: center;
    width: 100%;
  }

  body[data-page='portafolio'] .pf-hero .hero-wordmark {
    font-size: clamp(1.85rem, 8vw, 3rem);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
  }

  body[data-page='portafolio'] .pf-hero .hero-line {
    margin-inline: auto;
  }

  body[data-page='portafolio'] .pf-hero .hero-subtitle {
    font-size: clamp(0.82rem, 3.2vw, 1rem);
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 0.5rem;
    max-width: 34ch;
    margin-inline: auto;
  }

  body[data-page='portafolio'] .pf-tagline,
  body[data-page='portafolio'] .pf-hero-meta {
    text-align: center;
    margin-inline: auto;
  }

  body[data-page='portafolio'] .pf-hero-copy .av-cv {
    width: 100%;
    max-width: 280px;
    min-height: 48px;
    padding: 14px 20px;
    justify-content: center;
    margin-inline: auto;
  }

  /* 4. Grids — una columna */
  body[data-page='home'] .social-grid,
  body[data-page='portafolio'] .pf-design-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-inline: 10px;
  }

  body[data-page='portafolio'] .metrics {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* 5. Espaciado entre secciones */
  body[data-page='home'] .home-featured {
    margin-top: clamp(40px, 10vw, 60px);
    padding-bottom: clamp(32px, 8vw, 48px);
  }

  body[data-page='home'] .hero-unified-panel .home-featured {
    margin-top: clamp(28px, 7vw, 44px);
    padding-bottom: clamp(24px, 6vw, 40px);
  }

  body[data-page='home'] .social-section,
  body[data-page='home'] .contact-section--closing {
    margin-top: clamp(40px, 10vw, 60px);
    padding-inline: 10px;
  }

  body[data-page='home'] .hero-unified-panel .social-section,
  body[data-page='home'] .hero-unified-panel .contact-section--closing {
    margin-top: clamp(28px, 7vw, 44px);
    padding-inline: 0;
  }

  body[data-page='portafolio'] .pf-section + .pf-section {
    margin-top: 0;
  }

  body[data-page='portafolio'] .pf-main {
    gap: clamp(2rem, 6vw, 3rem);
    padding-inline: max(10px, var(--safe-l)) max(10px, var(--safe-r));
  }
}
