/* ==========================================================
   Leticia Rojo — Portfolio & UX/UI Web Design
   Design System & Figma Tokens (DESIGN.md)
   ========================================================== */

:root {
  /* Figma DESIGN.md Tokens */
  --bg-white: #ffffff;
  --text-primary: #000000;
  --text-primary-alt: #050505;
  --text-secondary: #414141;
  
  --accent-blue: #204fb9;       /* Figma token: accent */
  --accent-blue-alt: #6b8dd9;   /* Figma token: accent-alt */
  --accent-gold: #eca832;       /* Figma token: accent-3 */

  /* Legacy & Utility Aliases */
  --blue-dark: #1d4190;
  --blue-primary: #204fb9;
  --blue-soft: #eff6ff;
  
  --gold: #eca832;
  --gold-hover: #c98f2a;

  --ink-primary: #000000;
  --ink-secondary: #414141;

  /* Typography */
  --font-heading: 'Poppins', 'Afacad', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-display: 'Afacad', 'Poppins', sans-serif;
  --font-serif-italic: 'Playfair Display', 'Afacad', serif;

  /* Radios per DESIGN.md */
  --radius-md: 8px;
  --radius-lg-2: 16px;
  --radius-lg: 43px;
  --radius-pill: 43px;

  /* Spacing Scale per DESIGN.md (4, 8, 10, 13, 17, 18, 23, 32, 35, 43, 50, 116, 119) */
  --sp-4: 4px;   --sp-8: 8px;   --sp-10: 10px; --sp-13: 13px;
  --sp-17: 17px; --sp-18: 18px; --sp-23: 23px; --sp-32: 32px;
  --sp-35: 35px; --sp-43: 43px; --sp-50: 50px; --sp-116: 116px;

  /* Transiciones */
  --tr-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--tr-fast);
}

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

ul, ol {
  list-style: none;
}

/* Layout Container (Figma 1205px max-width) */
.wrap {
  max-width: 1205px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-blue));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* Componentes Globales: Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 29px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--tr-fast);
  white-space: nowrap;
  position: relative;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Botón Contacto Navbar */
.btn-nav-contacto {
  background: var(--accent-blue);
  color: #ffffff;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
}

.btn-nav-contacto:hover {
  background: #173fa0;
  color: #ffffff;
}

/* Botón Dorado (Hero CTA 1) */
.btn-gold {
  background: var(--accent-gold);
  color: #000000;
  font-weight: 700;
  padding: 14px 28px;
}

.btn-gold:hover {
  background: var(--gold-hover);
}

/* Botón Blanco (Hero CTA 2) */
.btn-white {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  padding: 14px 28px;
}

.btn-white:hover {
  background: #f0f0f0;
}

.btn-blue {
  background: var(--accent-blue);
  color: #ffffff;
}

.btn-blue:hover {
  background: #173fa0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-hover);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #ffffff;
  transition: all var(--tr-smooth);
  padding: 24px 0;
}

header.scrolled {
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #1C5295;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo span {
  font-weight: 400;
  color: #1C5295;
}

nav ul {
  display: flex;
  gap: 35px;
  align-items: center;
}

nav a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
}

nav a:not(.btn):hover {
  color: var(--accent-blue);
}

/* Language Switcher */
.header-mobile-actions {
  display: none;
}

.nav-lang-item {
  display: flex;
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 999px;
  padding: 3px 4px;
  gap: 2px;
  user-select: none;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.lang-globe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px 0 5px;
  color: #64748B;
}

nav ul li .lang-switch a.lang-pill,
.lang-switch a.lang-pill {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: #64748B !important;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}

nav ul li .lang-switch a.lang-pill:hover:not(.active),
.lang-switch a.lang-pill:hover:not(.active) {
  color: #1C5295 !important;
  background: rgba(28, 82, 149, 0.08);
}

nav ul li .lang-switch a.lang-pill.active,
.lang-switch a.lang-pill.active {
  background: #1C5295;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(28, 82, 149, 0.25);
  cursor: default;
}

/* Mobile drawer lang switcher */
.drawer-lang-item {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.lang-switch-drawer {
  width: 100%;
  display: flex;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #E2E8F0;
}

.lang-switch-drawer a.lang-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all var(--tr-smooth);
  border-radius: 2px;
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  z-index: 1001;
  padding: 100px 32px 40px;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transition: right var(--tr-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mobile-drawer.is-active {
  right: 0;
}

.mobile-drawer ul {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-drawer a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-fast);
}

.drawer-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  background: var(--accent-blue);
  color: #ffffff;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 35px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-body);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero h1 .italic-title {
  font-family: var(--font-serif-italic);
  font-style: italic;
  font-weight: 400;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin-bottom: 35px;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg); /* 43px per DESIGN.md */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-visual-card img {
  width: 100%;
  border-radius: var(--radius-lg); /* 43px per DESIGN.md */
  object-fit: cover;
  display: block;
}

.hero-badge-float {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  color: #000000;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: float 4s ease-in-out infinite;
  z-index: 10;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-soft);
  color: var(--blue-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.hero-badge-text strong {
  display: block;
  font-size: 14px;
  color: var(--ink-primary);
}

.hero-badge-text span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ===== ANTES DE SEGUIR / SERVICIOS ===== */
.before {
  padding: 110px 0;
  background-color: var(--bg-primary);
}

.before-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  margin-bottom: 48px;
}

.before-card {
  background: var(--bg-secondary);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--tr-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.before-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue-primary));
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.before-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 91, 184, 0.2);
  background: #ffffff;
}

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

.before-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #f4f4f5;
  color: #18181b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--tr-smooth);
}

.before-card:hover .before-card-icon {
  background: #18181b;
  color: #ffffff;
}

.before-card h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.before-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.before-cta-box {
  text-align: center;
  margin-top: 10px;
}

/* ===== PROCESO DE TRABAJO ===== */
.process {
  background: #f3f0e4; /* Figma token: surface */
  padding: 80px 0 100px;
  position: relative;
}

.process-head {
  text-align: center;
  margin-bottom: 60px;
}

.process-eyebrow {
  color: #204fb9; /* Figma token: accent-alt */
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.process-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 8px;
}

.step-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #f3f0e4;
  border: 4px solid #eca832; /* Figma token: accent */
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-arrow {
  flex: 0 0 50px;
  height: 1.5px;
  background-color: #000000;
  margin-top: 34px;
  position: relative;
}

.step-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #000000;
  border-right: 1.5px solid #000000;
  transform: rotate(45deg);
}

.process-step h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 10px;
}

.process-step h4.bold {
  font-weight: 700;
}

.process-step p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #050505;
  line-height: 1.45;
  max-width: 170px;
  margin: 0 auto;
}


/* ===== SERVICIOS TIPOS (grid 2×2 Figma) ===== */
.servicios-tipos {
  background: #f5f5f5; /* Figma token: background */
  padding: 80px 0 100px;
}

.servicios-tipos-head {
  text-align: center;
  margin-bottom: 40px;
}

.servicios-tipos-title {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #000000;
  margin-top: 8px;
  margin-bottom: 13px;
  line-height: 1.2;
}

.servicios-tipos-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #050505;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.servicios-tipos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid #d6d3c8;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 40px;
}

.servicio-tipo-card {
  padding: 40px;
  border: 1px solid #d6d3c8;
  background: #f5f5f5;
  transition: background 0.25s ease;
}

.servicio-tipo-card:hover {
  background: #edeae0;
}

.servicio-num {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: #050505;
  opacity: 0.45;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.servicio-nombre {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin-bottom: 10px;
  line-height: 1.25;
}

.servicio-desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: #050505;
  margin: 0;
  max-width: 380px;
}

/* Responsive servicios-tipos */
@media (max-width: 768px) {
  .servicios-tipos-grid {
    grid-template-columns: 1fr;
  }

  .servicio-tipo-card {
    padding: 28px 20px;
  }

  .servicios-tipos-head {
    text-align: center;
  }

  .servicios-tipos-sub {
    margin: 0 auto;
  }
}

/* ===== TESTIMONIOS ===== */

.testimonials {
  padding: 110px 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.t-slider-wrapper {
  position: relative;
  margin-top: 40px;
  width: 100%;
  overflow: hidden;
}

.t-slider-wrapper::before,
.t-slider-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.t-slider-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary, #fcfcfd), transparent);
}

.t-slider-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary, #fcfcfd), transparent);
}

.t-scroll {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 20px 4px 30px;
  animation: marquee 32s linear infinite;
  will-change: transform;
}

.t-scroll:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

.t-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.t-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(30, 91, 184, 0.2);
}

.t-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.t-card p {
  font-size: 15px;
  color: var(--ink-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.t-info cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-primary);
  display: block;
}

.t-info span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ===== SECCIÓN PROYECTOS & HABILIDADES ===== */
.projects {
  background-color: #ffffff;
  padding: 90px 0 110px;
  position: relative;
}

/* WHAT I DO Header & Pills */
.what-i-do {
  margin-bottom: 54px;
}

.what-i-do-title {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #8e8e93;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 50px;
  border: 1.5px solid #e4e4e7;
  background-color: #ffffff;
  color: #52525b;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  cursor: pointer;
}

.skill-pill:hover {
  border-color: #18181b;
  color: #18181b;
  background-color: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.skill-pill.active {
  background-color: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

/* Recent Projects Header */
.projects-head {
  margin-bottom: 32px;
}

.projects-section-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: #18181b;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* Projects 3-Column Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  border-radius: 24px;
  overflow: hidden;
  background-color: #f4f4f5;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.project-card:hover .project-card-image img {
  transform: scale(1.04);
}


.project-card-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: #18181b;
  line-height: 1.3;
}

.project-badge {
  display: inline-block;
  background-color: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.project-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: #a1a1aa;
}

/* Transiciones de Filtrado */
.project-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.project-card.is-hidden {
  display: none !important;
}

/* Botón Ver Más Proyectos */
.projects-more-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.btn-more-projects {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #18181b;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e4e4e7;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.btn-more-projects:hover {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn-more-projects svg {
  transition: transform 0.25s ease;
}

.btn-more-projects:hover svg {
  transform: translate(2px, -2px);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }
  .projects-section-title {
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .skills-pills {
    gap: 8px 10px;
  }
  .skill-pill {
    padding: 8px 16px;
    font-size: 13.5px;
  }
  .projects-section-title {
    font-size: 24px;
  }
}

/* Modal Lightbox de Proyectos */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr-smooth);
}

.lightbox-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: var(--bg-dark-card);
  border: 1px solid var(--bg-dark-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-height: 500px;
  overflow: hidden;
  background: #000;
}

.lightbox-media img,
.lightbox-media video {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.lightbox-body {
  padding: 24px 32px;
  color: #ffffff;
}

/* ===== SOBRE MÍ ===== */
.about {
  padding: 110px 0;
  background: #f3f0e4; /* mismo fondo que "Como trabajo" */
}

.about .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-img-container {
  position: relative;
}

.about-img-container img {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  width: 100%;
}

.about-img-frame {
  position: absolute;
  inset: -12px;
  border: 2px dashed var(--gold);
  border-radius: calc(var(--radius-xl) + 12px);
  z-index: -1;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--ink-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
}

.stat-box strong {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: var(--blue-primary);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-box span {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ===== QUOTE BANNER ===== */
.quote-banner {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quote-banner p {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 500;
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .quote-banner p {
    font-size: 24px;
    line-height: 1.45;
  }
}

/* ===== ESTIMADOR DE PRESUPUESTO INTERACTIVO ===== */
.calculator-section {
  padding: 100px 0;
  background: var(--bg-secondary);
}

.calculator-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid #e2e8f0;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.calc-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.calc-group-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 12px;
}

.calc-pills {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.calc-pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all var(--tr-fast);
}

.calc-pill.selected,
.calc-pill:hover {
  border-color: var(--blue-primary);
  background: var(--blue-soft);
  color: var(--blue-primary);
  font-weight: 600;
}

.calc-summary-box {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-summary-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.calc-result-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}

.calc-result-time {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 24px;
}

/* ===== PREGUNTAS FRECUENTES (FAQ) ===== */
.faq {
  padding: 110px 0;
  background: var(--bg-primary);
}

.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all var(--tr-fast);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  color: var(--ink-primary);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: transform var(--tr-fast), background var(--tr-fast);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  background: var(--gold);
}

.faq-item .faq-ans {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contact {
  background: #E5E5E5;
  color: #18181b;
  padding: 110px 0;
}

.contact .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  color: #18181b;
}

.contact-info p {
  color: #52525b;
  font-size: 16px;
  margin-bottom: 32px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.c-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: #27272a;
}

.c-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-card {
  background: #ffffff;
  border: 1px solid #d4d4d8;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #27272a;
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #18181b;
  font-size: 15px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a1a1aa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* Botón flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--tr-fast);
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

/* FOOTER */
footer {
  background: #070c18;
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.footer-logo span {
  font-weight: 400;
  color: #ffffff;
}

footer h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-bottom: 16px;
}

footer ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.foot-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.foot-social a {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: all var(--tr-fast);
}

.foot-social a:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
}

.foot-bottom {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Animations Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .proj-panel {
    grid-template-columns: 1fr;
  }
  
  .calculator-card {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  nav ul {
    gap: 20px;
  }
}

@media (max-width: 860px) {
  nav ul {
    display: none;
  }

  .header-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-toggle {
    display: block;
  }

  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .before-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .wrap,
  .contact .wrap {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 34px;
  }

  .before-grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .process-title {
    font-size: 30px;
  }

  .hero-badge-float {
    display: none;
  }

  .faq-item summary {
    padding: 16px 18px;
    font-size: 15px;
    gap: 12px;
  }

  .faq-item .faq-ans {
    padding: 0 18px 18px;
    font-size: 14px;
  }
}

/* ==========================================================
   Case Study & Project Detail Pages (MetLife, etc.)
   ========================================================== */

.case-study-header {
  padding-top: 130px;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.case-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 24px;
  transition: transform var(--tr-fast), color var(--tr-fast);
}

.case-back-link:hover {
  transform: translateX(-4px);
  color: #173fa0;
}

.case-back-link svg {
  transition: transform var(--tr-fast);
}

.case-back-link:hover svg {
  transform: translateX(-2px);
}

.case-tag-pill {
  display: inline-block;
  background: rgba(32, 79, 185, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(32, 79, 185, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.case-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.case-intro-text {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 860px;
  margin-bottom: 36px;
}

/* Ficha Técnica / Metadatos */
.case-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg-2);
  padding: 24px 32px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
  margin-bottom: 40px;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-meta-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.case-meta-val {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.case-actions-top {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* Hero Visual Banner */
.case-hero-visual {
  padding: 20px 0 60px;
  background: #ffffff;
}

.case-hero-image-wrap {
  width: 100%;
  border-radius: var(--radius-lg-2);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  background: #007abc;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.case-hero-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
  display: block;
}

/* Sección Contexto, Objetivo y Solución */
.case-narrative-section {
  padding: 80px 0;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.case-narrative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg-2);
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform var(--tr-smooth), box-shadow var(--tr-smooth);
  display: flex;
  flex-direction: column;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

.case-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--accent-blue);
  margin-bottom: 20px;
  font-size: 20px;
}

.case-card-badge.gold {
  background: #fef8ec;
  color: var(--accent-gold);
}

.case-card-badge.blue-dark {
  background: #0f172a;
  color: #ffffff;
}

.case-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.case-card a.in-text-link {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Métricas destacadas */
.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.case-metric-box {
  background: linear-gradient(135deg, #1d4190 0%, #204fb9 100%);
  color: #ffffff;
  border-radius: var(--radius-lg-2);
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(32, 79, 185, 0.2);
}

.case-metric-box:nth-child(2) {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.case-metric-box:nth-child(3) {
  background: linear-gradient(135deg, #d98218 0%, #eca832 100%);
  color: #000000;
}

.case-metric-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
}

.case-metric-label {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.92;
}

/* Pilares en detalle (Deep Dive) */
.case-pillars-section {
  padding: 100px 0;
  background: #ffffff;
}

.case-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.case-pillars-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.case-pillar-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg-2);
  padding: 44px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.case-pillar-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.case-pillar-num {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-blue);
  line-height: 1;
  background: #eff6ff;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-pillar-content h3 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.case-pillar-content p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.case-pillar-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.case-pillar-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid #e2e8f0;
}

/* Call to Action Final del Proyecto */
.case-cta-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid #e2e8f0;
}

.case-cta-box {
  background: linear-gradient(135deg, #070c18 0%, #172554 100%);
  color: #ffffff;
  border-radius: var(--radius-lg-2);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(7, 12, 24, 0.25);
}

.case-cta-box h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.case-cta-box p {
  font-size: 17px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.case-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Navegación entre proyectos */
.case-footer-nav {
  padding: 30px 0 60px;
  background: #f8fafc;
}

.case-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.case-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  transition: color var(--tr-fast), transform var(--tr-fast);
}

.case-nav-btn:hover {
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Responsive Case Study */
@media (max-width: 960px) {
  .case-meta-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-narrative-grid {
    grid-template-columns: 1fr;
  }

  .case-metrics-grid {
    grid-template-columns: 1fr;
  }

  .case-pillar-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 24px;
  }

  .case-pillar-num {
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-radius: 14px;
  }
}

@media (max-width: 600px) {
  .case-study-header {
    padding-top: 110px;
    padding-bottom: 30px;
  }

  .case-meta-strip {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 16px;
  }

  .case-cta-box {
    padding: 40px 20px;
  }

  .case-cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .case-cta-buttons .btn {
    width: 100%;
  }

  .case-nav-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
