/* ══════════════════════════════════════════════════════════
   NEVSKY.DEV — Portfolio CSS
   Mobile-first · Azul marino + Eléctrico + Verde neón
   ══════════════════════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --bg: #edf1f7;
  --bg-2: #dce4ef;
  --card: #ffffff;
  --card-2: #f4f7fb;
  --text: #0f1d35;
  --text-2: #3a5068;
  --text-3: #6b86a0;
  --border: rgba(15, 35, 65, 0.11);
  --border-2: rgba(15, 35, 65, 0.05);

  --blue: #2a7fff;
  --blue-glow: rgba(42, 127, 255, 0.30);
  --blue-dim: rgba(42, 127, 255, 0.10);
  --green: #00d96e;
  --green-glow: rgba(0, 217, 110, 0.32);
  --green-dim: rgba(0, 217, 110, 0.09);

  --grad-blue: linear-gradient(135deg, #2a7fff, #1452cc);
  --grad-green: linear-gradient(135deg, #00d96e, #00a64e);
  --grad-mix: linear-gradient(130deg, #2a7fff 0%, #00d96e 100%);
  --grad-mix-r: linear-gradient(130deg, #00d96e 0%, #2a7fff 100%);

  --sh-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --sh-md: 0 6px 28px rgba(0, 0, 0, .10);
  --sh-lg: 0 16px 56px rgba(0, 0, 0, .14);
  --sh-blue: 0 0 28px var(--blue-glow);
  --sh-green: 0 0 28px var(--green-glow);

  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --pill: 999px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.32s var(--ease);
}

[data-theme="dark"] {
  --bg: #1a2744;
  --bg-2: #1f2f4e;
  --card: #253758;
  --card-2: #2a3d60;
  --text: #e4edf7;
  --text-2: #92afc8;
  --text-3: #5a7a96;
  --border: rgba(42, 127, 255, 0.16);
  --border-2: rgba(42, 127, 255, 0.07);
  --sh-sm: 0 2px 10px rgba(0, 0, 0, .30);
  --sh-md: 0 6px 28px rgba(0, 0, 0, .45);
  --sh-lg: 0 16px 56px rgba(0, 0, 0, .60);
}

/* ─── System dark mode preference (fallback antes de que JS cargue) ─── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a2744;
    --bg-2: #1f2f4e;
    --card: #253758;
    --card-2: #2a3d60;
    --text: #e4edf7;
    --text-2: #92afc8;
    --text-3: #5a7a96;
    --border: rgba(42, 127, 255, 0.16);
    --border-2: rgba(42, 127, 255, 0.07);
    --sh-sm: 0 2px 10px rgba(0, 0, 0, .30);
    --sh-md: 0 6px 28px rgba(0, 0, 0, .45);
    --sh-lg: 0 16px 56px rgba(0, 0, 0, .60);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--t), color var(--t);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  body {
    cursor: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

button {
  cursor: none;
  border: none;
  background: none;
}

/* ─── Typography ─── */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.12;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  line-height: 1.75;
  color: var(--text-2);
}

.grad-text {
  background: var(--grad-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.green-text {
  color: var(--green);
}

.accent-dot {
  color: var(--green);
  font-family: 'Space Grotesk', sans-serif;
}

/* ─── Layout ─── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2.5rem;
  }
}

.section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }
}

.section-head {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}

/* ─── Scroll animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--d, 0s);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--pill);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--t);
  cursor: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-blue);
  color: #fff;
  box-shadow: var(--sh-blue);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 42px var(--blue-glow), 0 4px 18px rgba(0, 0, 0, .2);
}

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

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

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ══════════════════════════════════════════════
   CURSOR — Organic blob
══════════════════════════════════════════════ */
* {
  cursor: none !important;
}

@media (hover: none) {
  * {
    cursor: auto !important;
  }
}

.cursor-blob {
  position: fixed;
  top: 0;
  left: 0;
  /* Size is the "resting" diameter */
  width: 20px;
  height: 20px;
  background: #0f1d35;
  /* Always a circle — JS deforms only via scale(), never touches border-radius */
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform-origin: center center;
  /* Only transition opacity for show/hide — all motion is via rAF */
  transition: opacity 0.25s ease;
  will-change: transform, left, top;
}

[data-theme="dark"] .cursor-blob {
  background: #e4edf7;
}

@media (hover: none) {
  .cursor-blob {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  transition: background var(--t), backdrop-filter var(--t), box-shadow var(--t);
}

@media (min-width: 640px) {
  .navbar {
    padding: 0 2rem;
  }
}

.navbar.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  /* Keep old text styles as fallback */
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.logo-accent {
  color: var(--green);
}

/* Nav logo image */
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
  /* Light mode: multiply blends the dark PNG bg with the white navbar bg */
  mix-blend-mode: multiply;
  transition: opacity 0.2s ease;
}

.nav-logo-img:hover {
  opacity: 0.85;
}

/* Dark mode: PNG bg matches perfectly, no blend needed */
[data-theme="dark"] .nav-logo-img {
  mix-blend-mode: normal;
}

.nav-links {
  display: none;
  gap: 2.2rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  position: relative;
  transition: color var(--t);
}

.nav-a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-mix);
  border-radius: 1px;
  transition: width var(--t);
}

.nav-a:hover,
.nav-a.active {
  color: var(--text);
}

.nav-a.active::after,
.nav-a:hover::after {
  width: 100%;
}

.nav-right {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 900px) {
  .nav-right {
    display: flex;
  }
}

/* Theme toggle */
.theme-toggle {
  padding: 2px;
}

.toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 52px;
  height: 27px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  overflow: hidden;
  transition: background var(--t), border-color var(--t);
}

.toggle-thumb {
  position: absolute;
  left: 3px;
  width: 19px;
  height: 19px;
  background: var(--grad-blue);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--blue-glow);
  transition: left 0.3s var(--ease), background 0.3s;
  z-index: 1;
}

[data-theme="dark"] .toggle-thumb {
  left: 28px;
  background: var(--grad-mix);
}

.t-icon {
  position: absolute;
  font-size: 11px;
  line-height: 1;
  z-index: 0;
  transition: opacity var(--t);
}

.t-sun {
  right: 5px;
  opacity: 1;
}

.t-moon {
  left: 5px;
  opacity: 0;
}

[data-theme="dark"] .t-sun {
  opacity: 0;
}

[data-theme="dark"] .t-moon {
  opacity: 1;
}

.nav-cta {
  padding: 0.48rem 1.2rem;
  background: var(--grad-blue);
  color: #fff !important;
  border-radius: var(--pill);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--sh-blue);
  transition: box-shadow var(--t), transform var(--t);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 38px var(--blue-glow);
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  z-index: 10;
}

@media (min-width: 900px) {
  .burger {
    display: none;
  }
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-110%);
  transition: transform 0.36s var(--ease);
  z-index: 899;
  box-shadow: var(--sh-md);
}

.mobile-menu.open {
  transform: none;
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

.mob-a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-2);
  transition: color var(--t);
}

.mob-a.active,
.mob-a:hover {
  color: var(--blue);
}

/* ══════════════════════════════════════════════
   ORBS (shared bg fx)
══════════════════════════════════════════════ */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  animation: orbf 9s ease-in-out infinite;
}

.orb-blue {
  width: min(480px, 70vw);
  height: min(480px, 70vw);
  background: radial-gradient(circle, rgba(42, 127, 255, .18) 0%, transparent 70%);
  top: -60px;
  right: -60px;
}

.orb-green {
  width: min(340px, 55vw);
  height: min(340px, 55vw);
  background: radial-gradient(circle, rgba(0, 217, 110, .13) 0%, transparent 70%);
  bottom: 60px;
  left: 5%;
  animation-delay: -4s;
}

@keyframes orbf {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-24px) scale(1.04);
  }
}

/* ══════════════════════════════════════════════
   HERO (index)
══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* Grid bg */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, black 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 40%, black 10%, transparent 75%);
  pointer-events: none;
}

.hero-wrap {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.25rem 5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 640px) {
  .hero-wrap {
    padding: 3rem 2rem 5rem;
  }
}

@media (min-width: 1024px) {
  .hero-wrap {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 4rem 2.5rem 6rem;
  }

  .hero-left {
    flex: 1;
  }

  .hero-right {
    flex-shrink: 0;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--pill);
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-2);
  width: fit-content;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--green-glow);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--green-glow);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(0, 217, 110, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(0, 217, 110, 0);
  }
}

/* Hero heading */
.hero-h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
}

.hero-h1 .grad-text {
  display: block;
}

/* Typewriter */
.hero-role {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text-2);
  min-height: 2em;
  display: flex;
  align-items: center;
  gap: 0;
}

.tw {
  color: var(--blue);
  font-weight: 600;
}

.tw-cursor {
  color: var(--blue);
  animation: blink .85s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-desc {
  max-width: 520px;
  font-size: 1.02rem;
}

.hero-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  padding: 0.32rem 0.85rem;
  border-radius: var(--pill);
  font-size: 0.77rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text-2);
}

.pill-green {
  border-color: rgba(0, 230, 118, .3);
  color: var(--green);
  background: var(--green-dim);
}

/* Hero right: photo */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pfp-wrap {
  position: relative;
  width: min(260px, 70vw);
  height: min(320px, 86vw);
  flex-shrink: 0;
}

.pfp-wrap--md {
  width: min(240px, 65vw);
  height: min(295px, 80vw);
}

.pfp-glow-ring {
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--r-lg) + 3px);
  background: conic-gradient(var(--blue) 0%, var(--green) 50%, var(--blue) 100%);
  animation: spinRing 5s linear infinite;
  z-index: 0;
  opacity: 0.6;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.pfp-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-lg);
  border: 3px solid var(--card);
  filter: contrast(1.04) saturate(0.92);
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1rem 1.4rem;
  width: 100%;
  max-width: min(320px, 90vw);
}

.h-stat {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
  text-align: center;
}

.h-stat strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
}

.h-stat span {
  font-size: 0.7rem;
  color: var(--text-3);
}

.h-stat-sep {
  width: 1px;
  height: 32px;
  background: var(--border);
  flex-shrink: 0;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.4;
  z-index: 1;
}

.scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.scroll-line-anim {
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrlAnim 1.9s ease-in-out infinite;
}

@keyframes scrlAnim {

  0%,
  100% {
    opacity: .4;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.25);
  }
}

/* ══════════════════════════════════════════════
   PREVIEW STRIP (index)
══════════════════════════════════════════════ */
.preview-strip {
  background: var(--bg-2);
  padding: 4rem 0;
}

.strip-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 900px) {
  .strip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.strip-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
  position: relative;
  overflow: hidden;
}

.strip-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-mix);
  opacity: 0;
  transition: opacity var(--t);
}

.strip-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateY(-4px);
}

.strip-card:hover::before {
  opacity: 1;
}

.strip-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .1em;
}

.strip-card h3 {
  font-size: 0.95rem;
  color: var(--text);
}

.strip-card p {
  font-size: 0.82rem;
  line-height: 1.55;
  flex: 1;
}

.strip-arrow {
  font-size: 1rem;
  color: var(--blue);
  margin-top: 0.3rem;
  transition: transform var(--t);
}

.strip-card:hover .strip-arrow {
  transform: translateX(4px);
}

/* ══════════════════════════════════════════════
   ABOUT TEASER (index)
══════════════════════════════════════════════ */
.about-teaser {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .about-teaser {
    padding: 7rem 0;
  }
}

.teaser-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .teaser-grid {
    flex-direction: row;
    align-items: start;
    gap: 5rem;
  }

  .teaser-left {
    flex: 1.1;
  }

  .teaser-right {
    flex: 1;
  }
}

.teaser-left {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.teaser-left h2 {
  line-height: 1.2;
}

.feat-list {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}

.feat-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feat-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feat-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: .2rem;
}

.feat-item p {
  font-size: 0.88rem;
}

/* ══════════════════════════════════════════════
   CTA BANNER (shared)
══════════════════════════════════════════════ */
.cta-banner {
  padding: 5rem 0;
}

.cta-inner {
  background: linear-gradient(135deg, var(--blue-dim), var(--green-dim));
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .cta-inner {
    padding: 4rem 3rem;
  }
}

.cta-inner h2 {
  color: var(--text);
}

.cta-inner p {
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════════════════ */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem;
  background: var(--bg-2);
}

.ph-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.ph-inner h1 {
  line-height: 1.08;
}

.ph-inner p {
  font-size: 1.05rem;
}

/* ══════════════════════════════════════════════
   ABOUT PAGE
══════════════════════════════════════════════ */
.story-section {
  background: var(--bg);
}

.story-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .story-grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .story-photo {
    flex-shrink: 0;
  }

  .story-text {
    flex: 1;
  }
}

.story-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.lang-badge {
  padding: 0.38rem 0.9rem;
  border-radius: var(--pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--card);
  border: 1.5px solid var(--border);
  color: var(--text-2);
}

.story-text {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.story-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-block p strong {
  color: var(--blue);
}

.story-quote {
  border-left: 3px solid var(--blue);
  padding: 1rem 1.5rem;
  background: var(--blue-dim);
  border-radius: 0 var(--r) var(--r) 0;
}

.story-quote blockquote {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  font-style: italic;
}

.story-quote cite {
  font-size: 0.82rem;
  color: var(--text-3);
  margin-top: 0.4rem;
  display: block;
}

/* Timeline */
.timeline-section {
  background: var(--bg-2);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

@media (min-width: 640px) {
  .timeline {
    padding-left: 2.8rem;
  }
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green), transparent);
  border-radius: 1px;
}

.tl-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.tl-item:last-child {
  padding-bottom: 0;
}

/* ── Timeline reveal animation ── */
.tl-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.55s cubic-bezier(.22,1,.36,1), transform 0.55s cubic-bezier(.22,1,.36,1);
}
.tl-reveal.tl-visible {
  opacity: 1;
  transform: translateY(0);
}

.tl-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--blue);
  background: var(--bg);
  z-index: 1;
  transition: border-color var(--t), box-shadow var(--t);
}

@media (min-width: 640px) {
  .tl-dot {
    left: -2.8rem;
  }
}

.tl-dot--edu {
  border-color: var(--green);
}

.tl-item:hover .tl-dot {
  box-shadow: 0 0 14px var(--blue-glow);
}

.tl-item:hover .tl-dot--edu {
  box-shadow: 0 0 14px var(--green-glow);
}

.tl-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

@media (min-width: 640px) {
  .tl-card {
    padding: 1.8rem 2rem;
  }
}

.tl-item:hover .tl-card {
  border-color: var(--blue);
  box-shadow: var(--sh-md);
  transform: translateX(3px);
}

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.tl-badge {
  padding: .22rem .7rem;
  border-radius: var(--pill);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tl-badge--work {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(0, 132, 255, .25);
}

.tl-badge--edu {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, .25);
}

.tl-date {
  font-size: 0.8rem;
  color: var(--text-3);
  font-family: 'Space Grotesk', monospace;
}

.tl-card h3 {
  font-size: 1rem;
  margin-bottom: .25rem;
}

.tl-company {
  font-size: 0.85rem !important;
  color: var(--blue) !important;
  font-weight: 500;
  margin-bottom: .6rem !important;
}

.tl-card>p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.tl-tags span {
  padding: .2rem .65rem;
  border-radius: var(--pill);
  font-size: 0.73rem;
  font-weight: 500;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}

/* Cert section */
.cert-section {
  background: var(--bg);
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.6rem;
  transition: border-color var(--t), box-shadow var(--t);
  max-width: 520px;
}

.cert-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
}

.cert-icon-big {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.cert-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}

.cert-body strong {
  font-size: .95rem;
  color: var(--text);
}

.cert-body span {
  font-size: .82rem;
  color: var(--text-2);
}

.cert-body small {
  font-size: .75rem;
  color: var(--text-3);
}

.cert-badge {
  padding: .22rem .7rem;
  border-radius: var(--pill);
  font-size: .7rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(0, 230, 118, .3);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════
   SERVICES PAGE
══════════════════════════════════════════════ */
.services-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.svc-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.svc-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-mix);
  opacity: 0;
  transition: opacity var(--t);
}

.svc-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateY(-5px);
}

.svc-card:hover::after {
  opacity: 1;
}

.svc-num {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: .1em;
}

.svc-icon {
  width: 42px;
  height: 42px;
  color: var(--blue);
}

.svc-card h3 {
  font-size: 1.05rem;
}

.svc-card p {
  font-size: 0.88rem;
  line-height: 1.65;
}

.svc-list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}

.svc-list li {
  font-size: 0.83rem;
  color: var(--text-3);
  padding-left: 1.1rem;
  position: relative;
}

.svc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.75rem;
}

.svc-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .3rem;
}

.svc-tools span {
  padding: .2rem .65rem;
  border-radius: var(--pill);
  font-size: .73rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

.svc-card--cta {
  background: linear-gradient(135deg, var(--blue-dim), var(--green-dim));
  border-color: var(--blue);
  justify-content: flex-end;
  gap: 1.2rem;
}

.svc-card--cta h3 {
  font-size: 1.15rem;
}

/* How section */
.how-section {
  background: var(--bg-2);
}

.steps-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .steps-grid {
    flex-wrap: nowrap;
  }
}

.step {
  flex: 1;
  min-width: 140px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.step:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
}

.step-n {
  font-family: 'Space Grotesk', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad-mix);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.step h4 {
  font-size: .95rem;
}

.step p {
  font-size: .84rem;
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--text-3);
  flex-shrink: 0;
  display: none;
}

@media (min-width: 900px) {
  .step-arrow {
    display: block;
  }
}

/* ══════════════════════════════════════════════
   SKILLS PAGE
══════════════════════════════════════════════ */
.skills-layout {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

@media (min-width: 900px) {
  .skills-layout {
    flex-direction: row;
    gap: 5rem;
  }

  .skill-col {
    flex: 1;
  }
}

.skill-col-title {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 1.5rem;
}

.skill-bar-item {
  margin-bottom: 1.3rem;
}

.sb-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: .45rem;
  color: var(--text);
}

.sb-pct {
  color: var(--blue);
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
}

.sb-track {
  height: 5px;
  background: var(--border);
  border-radius: var(--pill);
  overflow: hidden;
}

.sb-fill {
  height: 100%;
  width: 0;
  background: var(--grad-mix);
  border-radius: var(--pill);
  transition: width 1.3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 0 12px var(--blue-glow);
}

.tech-cloud-section {
  background: var(--bg-2);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.85rem;
}

.tech-item {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}

.tech-emoji {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tech-item:hover {
  border-color: var(--green);
  color: var(--text);
  box-shadow: 0 0 14px var(--green-dim);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════════════ */
.contact-section {
  background: var(--bg);
}

.contact-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 900px) {
  .contact-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }

  .contact-info {
    flex: 1;
  }

  .contact-form {
    flex: 1.2;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.contact-info h2 {
  line-height: 1.2;
}

.c-links {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.c-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.c-link:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateX(4px);
}

.c-link-icon {
  width: 22px;
  height: 22px;
  color: var(--blue);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.c-link-icon svg {
  width: 100%;
  height: 100%;
}

.c-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

.c-link-body strong {
  font-size: .9rem;
  color: var(--text);
}

.c-link-body span {
  font-size: .78rem;
  color: var(--text-3);
}

.c-link-arr {
  font-size: 1rem;
  color: var(--text-3);
  transition: transform var(--t);
}

.c-link:hover .c-link-arr {
  color: var(--blue);
  transform: translateX(3px);
}

.c-note {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  font-size: .85rem;
}

.c-note span {
  font-size: 1rem;
  flex-shrink: 0;
}

.c-note p {
  color: var(--text-2);
  font-size: .85rem;
}

.c-note strong {
  color: var(--text);
}

/* Form */
.contact-form {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .contact-form {
    padding: 2.5rem;
  }
}

.form-row-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 480px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.fg {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.fg label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}

.fg input,
.fg textarea,
.fg select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: .72rem 1rem;
  font-size: .9rem;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color var(--t), box-shadow var(--t);
  cursor: none;
  -webkit-appearance: none;
}

.fg input::placeholder,
.fg textarea::placeholder,
.fg select {
  color: var(--text-3);
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-dim);
}

.form-note {
  font-size: .78rem;
  color: var(--text-3);
  text-align: center;
}

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Footer logo icon (symbol only PNG) */
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
  transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
  opacity: 0.8;
}

[data-theme="dark"] .footer-logo-img {
  mix-blend-mode: normal;
}

.footer-copy {
  font-size: .8rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 1.4rem;
}

.footer-links a {
  font-size: .8rem;
  color: var(--text-3);
  transition: color var(--t);
}

.footer-links a:hover {
  color: var(--blue);
}

/* ══════════════════════════════════════════════
   THEME FLASH EFFECT
══════════════════════════════════════════════ */
.theme-flash-el {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(0, 132, 255, .22) 0%, transparent 60%);
  animation: tf .55s ease forwards;
}

@keyframes tf {
  0% {
    opacity: 1;
    transform: scale(.05);
  }

  60% {
    opacity: .2;
    transform: scale(2);
  }

  100% {
    opacity: 0;
    transform: scale(3);
  }
}

/* ══════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--blue);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   SELECTION
══════════════════════════════════════════════ */
::selection {
  background: var(--blue-dim);
  color: var(--text);
}
/* ══════════════════════════════════════════════
   LANG PILL — idéntico al theme-toggle
══════════════════════════════════════════════ */
.lang-pill {
  display: flex;
  align-items: center;
  padding: 2px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.lp-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 52px;
  height: 27px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: background var(--t), border-color var(--t);
}

.lp-thumb {
  position: absolute;
  left: 3px;
  width: 19px;
  height: 19px;
  background: linear-gradient(135deg, #0084ff, #00e676);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,132,255,.5);
  transition: left 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.lp-track[data-lang="en"] .lp-thumb { left: 28px; }

.lp-label {
  position: absolute;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  z-index: 2;
  transition: opacity .2s;
  color: var(--text);
  pointer-events: none;
}

.lp-es { left: 6px; }
.lp-en { right: 5px; }

/* ES activo → thumb izquierda, muestra "EN" a la derecha */
.lp-track[data-lang="es"] .lp-es { opacity: 0; }
.lp-track[data-lang="es"] .lp-en { opacity: 1; }

/* EN activo → thumb derecha, muestra "ES" a la izquierda */
.lp-track[data-lang="en"] .lp-es { opacity: 1; }
.lp-track[data-lang="en"] .lp-en { opacity: 0; }

/* ══════════════════════════════════════════════
   CONTACT FORM — validation states
══════════════════════════════════════════════ */
.fg input.field-error,
.fg textarea.field-error {
  border-color: #f04444;
  box-shadow: 0 0 0 3px rgba(240, 68, 68, .15);
}

.field-err-msg {
  font-size: .75rem;
  color: #f04444;
  margin-top: .15rem;
}

.btn-success {
  background: var(--grad-green) !important;
  box-shadow: var(--sh-green) !important;
}

.btn-error {
  background: linear-gradient(135deg, #e03030, #b02020) !important;
  box-shadow: 0 0 28px rgba(200, 30, 30, .35) !important;
}

/* ══════════════════════════════════════════════
   PROCESO DE TRABAJO
══════════════════════════════════════════════ */
.process-section {
  background: var(--bg-2);
}

.process-section .section-head p {
  max-width: 520px;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pt-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 1.5rem;
}

@media (min-width: 640px) {
  .pt-item {
    grid-template-columns: 72px 1fr;
    gap: 0 2rem;
  }
}

.pt-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.8rem;
}

.pt-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-mix);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: .8rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 18px var(--blue-glow);
}

.pt-line {
  width: 2px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(to bottom, var(--blue-dim), var(--green-dim));
  margin: .5rem 0;
}

.pt-item:last-child .pt-line {
  display: none;
}

.pt-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: border-color var(--t), box-shadow var(--t);
}

@media (min-width: 640px) {
  .pt-card {
    padding: 1.8rem 2rem;
  }
}

.pt-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
}

.pt-week {
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
}

.pt-card h3 {
  font-size: 1.1rem;
  color: var(--text);
}

.pt-card p {
  font-size: .88rem;
  line-height: 1.65;
}

.pt-deliverable {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: .25rem;
  font-size: .82rem;
  color: var(--text-2);
  background: var(--bg);
  border-radius: var(--r);
  padding: .55rem 1rem;
}

.pt-del-label {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   PRICING / PAQUETES
══════════════════════════════════════════════ */
.pricing-section {
  background: var(--bg);
}

.pricing-section--web {
  background: var(--bg-2);
}

.pricing-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  position: relative;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.pricing-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  background: linear-gradient(160deg, var(--card) 60%, var(--blue-dim));
}

@media (min-width: 768px) {
  .pricing-card--featured {
    transform: translateY(-8px) scale(1.02);
  }

  .pricing-card--featured:hover {
    transform: translateY(-12px) scale(1.02);
  }
}

.pricing-badge-pop {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-mix);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .28rem .9rem;
  border-radius: var(--pill);
  white-space: nowrap;
}

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.pricing-tier {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.pricing-price {
  font-size: .95rem;
  color: var(--text-2);
}

.pricing-price strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-ideal {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--text-2);
}

.pricing-time {
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: .06em;
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}

.pricing-list li {
  font-size: .86rem;
  color: var(--text-2);
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.5;
}

.pricing-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .78rem;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

.pricing-examples {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  background: var(--bg);
  border-radius: var(--r);
  padding: .8rem 1rem;
  margin-top: .15rem;
}

.pe-label {
  font-family: 'Space Grotesk', monospace;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--blue);
  margin-bottom: .1rem;
}

.pricing-examples span:not(.pe-label) {
  font-size: .8rem;
  color: var(--text-3);
  padding-left: .9rem;
  position: relative;
}

.pricing-examples span:not(.pe-label)::before {
  content: '↗';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .72rem;
}

.pricing-note {
  text-align: center;
  font-size: .88rem;
  color: var(--text-3);
  margin-top: 2rem;
}

.pricing-note a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ══════════════════════════════════════════════
   PORTFOLIO / CASOS DE ÉXITO
══════════════════════════════════════════════ */
.portfolio-section {
  background: var(--bg-2);
}

.portfolio-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pf-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.pf-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-blue);
  transform: translateY(-4px);
}

.pf-card--placeholder {
  border-style: dashed;
  background: transparent;
}

.pf-card--placeholder:hover {
  border-color: var(--green);
  box-shadow: var(--sh-green);
}

.pf-sector {
  font-family: 'Space Grotesk', monospace;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
}

.pf-title {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.35;
}

.pf-problem {
  font-size: .84rem;
  line-height: 1.6;
}

.pf-problem strong {
  color: var(--text);
}

.pf-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.pf-stack span {
  padding: .2rem .65rem;
  border-radius: var(--pill);
  font-size: .73rem;
  font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.pf-metrics {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  background: var(--bg);
  border-radius: var(--r);
  padding: 1rem 1.2rem;
  margin-top: .25rem;
}

.pf-metric {
  display: flex;
  align-items: baseline;
  gap: .6rem;
}

.pf-metric strong {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--green);
  flex-shrink: 0;
}

.pf-metric span {
  font-size: .8rem;
  color: var(--text-2);
}

/* ══════════════════════════════════════════════
   COMPARATIVA
══════════════════════════════════════════════ */
.compare-section {
  background: var(--bg);
}

.compare-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr 48px 1fr;
    gap: 1.5rem;
  }
}

.compare-col {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.compare-col--before {
  border-color: rgba(240, 68, 68, .25);
  background: linear-gradient(160deg, var(--card) 80%, rgba(240, 68, 68, .04));
}

.compare-col--after {
  border-color: rgba(0, 217, 110, .3);
  background: linear-gradient(160deg, var(--card) 80%, var(--green-dim));
}

.compare-header {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.compare-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(240, 68, 68, .15);
  color: #f04444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
  flex-shrink: 0;
}

.compare-icon--green {
  background: var(--green-dim);
  color: var(--green);
}

.compare-header h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.compare-list li {
  font-size: .88rem;
  color: var(--text-2);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.5;
}

.compare-col--before .compare-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: #f04444;
  font-weight: 700;
}

.compare-col--after .compare-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: .78rem;
}

.compare-vs {
  display: none;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-3);
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

@media (min-width: 768px) {
  .compare-vs {
    display: flex;
  }
}

/* ══════════════════════════════════════════════
   ACCESSIBILITY / SEO
══════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
