/* ==========================================================================
   ROMAS — styles.css
   Sistema de diseño editorial. Tailwind CDN maneja utilidades;
   este archivo maneja todo lo editorial y de componentes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKENS DE DISEÑO
   -------------------------------------------------------------------------- */
:root {
  --bg:           #0A0A0A;
  --surface:      #1F1F1F;
  --surface-2:    #161616;
  --white:        #FAFAFA;
  --muted:        #888888;
  --muted-2:      #555555;
  --red:          #FF2D2D;
  --red-hover:    #e02020;
  --blue:         #2E5BFF;
  --border:       #2A2A2A;

  --font-display: 'Clash Display', 'Arial Black', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --nav-h:        72px;
  --max-w:        1280px;
  --section-py:   140px;
  --section-py-m: 80px;
  --inner-px:     32px;
  --inner-px-m:   20px;

  --ease:         cubic-bezier(0.16, 1, 0.3, 1);
  --fast:         180ms;
  --base:         280ms;
  --slow:         400ms;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   3. CURSOR PERSONALIZADO
   -------------------------------------------------------------------------- */
body.custom-cursor-active { cursor: none; }

#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    width  var(--fast) var(--ease),
    height var(--fast) var(--ease),
    background var(--fast) var(--ease);
}

#cursor-follower {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(250,250,250,0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition:
    width  var(--base) var(--ease),
    height var(--base) var(--ease),
    border-color var(--base) var(--ease);
}

body.cursor-hover #cursor         { width: 14px; height: 14px; background: var(--red); }
body.cursor-hover #cursor-follower { width: 52px; height: 52px; border-color: rgba(255,45,45,0.5); }

@media (pointer: coarse) {
  #cursor, #cursor-follower { display: none; }
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFÍA ESCALABLE
   -------------------------------------------------------------------------- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.5vw, 92px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--white);
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.display-xl em,
.display-lg  em,
.display-md  em {
  font-style: normal;
  color: var(--red);
}

.body-lg {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--muted);
  max-width: 62ch;
}

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   5. LAYOUT BASE
   -------------------------------------------------------------------------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--inner-px);
}

.section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 64px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

@media (max-width: 768px) {
  .section      { padding: var(--section-py-m) 0; }
  .section-inner { padding: 0 var(--inner-px-m); }
}

/* --------------------------------------------------------------------------
   6. BOTONES
   -------------------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--red);
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid var(--red);
  transition:
    background var(--fast) var(--ease),
    transform  var(--fast) var(--ease);
}
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  padding: 14px 28px;
  border-radius: 3px;
  border: 1px solid var(--border);
  transition:
    color        var(--fast) var(--ease),
    border-color var(--fast) var(--ease);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(250,250,250,0.3); }

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

/* --------------------------------------------------------------------------
   7. NAV
   -------------------------------------------------------------------------- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--base) var(--ease);
}
#nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
  margin-right: 36px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color var(--fast) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--base) var(--ease);
}
.nav-link:hover        { color: var(--white); }
.nav-link:hover::after { width: 100%; }

.btn-nav {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  transition:
    border-color var(--fast) var(--ease),
    color        var(--fast) var(--ease);
}
.btn-nav:hover { border-color: var(--red); color: var(--red); }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  width: 36px; height: 36px;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--white);
  transition:
    transform var(--base) var(--ease),
    opacity   var(--base) var(--ease);
}
.menu-toggle.active span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle.active span:last-child  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg);
  padding: 48px var(--inner-px-m);
  z-index: 99;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--base) var(--ease);
}
.mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--fast) var(--ease);
}
.mobile-nav-link:hover { color: var(--red); }

@media (max-width: 1024px) {
  .nav-links, .btn-nav { display: none; }
  .menu-toggle         { display: flex; }
  .mobile-menu         { display: block; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0 var(--inner-px-m); }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
#hero {
  padding-top:    calc(var(--nav-h) + 100px);
  padding-bottom: 100px;
  border-top: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-label {
  margin-bottom: 32px;
}

.hero-heading {
  margin-bottom: 40px;
}

.hero-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 36px;
}

.subhero {
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 40px;
}

.cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

/* Strip de métricas */
.hero-proof {
  display: flex;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.hero-proof::-webkit-scrollbar { display: none; }

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 48px;
  flex-shrink: 0;
}

.proof-number {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

.proof-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
  margin-right: 48px;
}

@media (max-width: 768px) {
  #hero {
    padding-top:    calc(var(--nav-h) + 60px);
    padding-bottom: 60px;
  }
  .hero-inner    { padding: 0 var(--inner-px-m); }
  .cta-group     { margin-bottom: 56px; }
  .proof-item    { padding-right: 32px; }
  .proof-divider { margin-right: 32px; }
}

/* --------------------------------------------------------------------------
   9. MANIFIESTO
   -------------------------------------------------------------------------- */
.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: start;
}

.manifesto-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.manifesto-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Tabla de contraste */
.manifesto-contrast {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  gap: 0;
}

.contrast-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 40px;
}
.contrast-item:first-child { padding-left: 0; }
.contrast-item:last-child  { padding-right: 0; }

.contrast-label {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contrast-price {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.contrast-time {
  font-size: 13px;
  color: var(--muted);
}
.contrast-romas .contrast-price { color: var(--red); }
.contrast-romas .contrast-time  { color: var(--white); }

.contrast-sep {
  width: 1px;
  height: 64px;
  background: var(--border);
}

@media (max-width: 1024px) {
  .manifesto-grid    { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-sticky  { position: static; }
}
@media (max-width: 768px) {
  .manifesto-contrast {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contrast-sep  { width: 100%; height: 1px; margin: 0; }
  .contrast-item { padding: 28px 0; }
  .contrast-item:first-child { padding-top: 0; }
  .contrast-item:last-child  { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   10. SERVICIOS
   -------------------------------------------------------------------------- */
.services-intro { margin-bottom: 64px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

/* 3 tarjetas en fila 1, 2 tarjetas centradas en fila 2 */
.service-card { grid-column: span 2; }
.service-card:nth-child(4),
.service-card:nth-child(5) { grid-column: span 3; }

.service-card {
  background: var(--bg);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition:
    background  var(--base) var(--ease),
    transform   var(--fast) var(--ease);
}
.service-card:hover { background: var(--surface); transform: translateY(-2px); }

.service-card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.14em;
}

.service-title {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

.service-list {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.service-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: 10px;
  top: 3px;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; background: none; border: none; gap: 0; }
  .service-card  { border: 1px solid var(--border); border-bottom: none; padding: 32px 24px; }
  .service-card:last-child { border-bottom: 1px solid var(--border); }
  .service-card, .service-card:nth-child(4), .service-card:nth-child(5) { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   11. PRECIOS
   -------------------------------------------------------------------------- */
.pricing-intro {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pricing-main {
  background: var(--surface);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pricing-addons {
  background: var(--bg);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pricing-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pricing-sub {
  font-size: 14px;
  color: var(--muted);
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}

.price-amount {
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw, 58px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
}

.price-period {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.feature-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  flex: 1;
}

.feature-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

.feature-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-group li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.feature-group li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-size: 11px;
}

/* Add-ons */
.addons-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.addons-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.addons-sub {
  font-size: 13px;
  color: var(--muted);
}

.addon-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--fast) var(--ease);
}

.addon-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.addon-detail {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.addon-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.addons-note {
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  padding-top: 28px;
  margin-top: auto;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .pricing-grid   { grid-template-columns: 1fr; }
  .feature-cols   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pricing-main, .pricing-addons { padding: 40px 24px; }
  .feature-cols   { grid-template-columns: 1fr; gap: 24px; }
}

/* --------------------------------------------------------------------------
   12. PROCESO
   -------------------------------------------------------------------------- */
.process-intro { margin-bottom: 80px; }

.process-list {
  display: flex;
  flex-direction: column;
}

.process-step {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 40px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.process-step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.14em;
  padding-top: 5px;
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.step-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 14px;
}

.step-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .process-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 32px 0;
  }
}

/* --------------------------------------------------------------------------
   13. TRABAJO
   -------------------------------------------------------------------------- */
.work-intro { margin-bottom: 64px; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.work-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background var(--base) var(--ease);
}
.work-card:hover { background: var(--surface); }

.work-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.work-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.work-card:hover .work-thumb img { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--base) var(--ease);
}
.work-card:hover .work-overlay { opacity: 1; }

.work-overlay-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.work-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--border);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-info {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.work-industry {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-year {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.work-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 20px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.work-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  flex: 1;
}

.work-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  position: relative;
  transition: color var(--fast) var(--ease);
  margin-top: 4px;
}
.work-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width var(--base) var(--ease);
}
.work-link:hover        { color: var(--white); }
.work-link:hover::after { width: 100%; }

@media (max-width: 1024px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; background: none; border: none; gap: 0; }
  .work-card { border: 1px solid var(--border); border-bottom: none; }
  .work-card:last-child { border-bottom: 1px solid var(--border); }
  .work-info { padding: 24px 20px; }
}

/* --------------------------------------------------------------------------
   14. STACK / CÓMO TRABAJAMOS
   -------------------------------------------------------------------------- */
.stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.stack-left {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-right {
  display: flex;
  flex-direction: column;
}

.stack-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.stack-item:first-child { border-top: 1px solid var(--border); }

.stack-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stack-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .stack-grid  { grid-template-columns: 1fr; gap: 48px; }
  .stack-left  { position: static; }
}

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
}

.faq-item {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.faq-q {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 14px;
}

.faq-a {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 768px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   16. CONTACTO
   -------------------------------------------------------------------------- */
#contacto {
  background: var(--surface-2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}

.contact-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity var(--fast) var(--ease);
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row:hover { opacity: 0.8; }

.contact-row-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-row-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.contact-row:hover .contact-row-value { color: var(--white); }

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form-input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  border-radius: 3px;
  outline: none;
  width: 100%;
  transition: border-color var(--fast) var(--ease);
  -webkit-appearance: none;
}
.form-input::placeholder { color: var(--muted-2); }
.form-input:focus        { border-color: var(--blue); }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--inner-px);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.footer-link:hover { color: var(--white); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-social-link {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--fast) var(--ease);
}
.footer-social-link:hover { color: var(--white); }

.footer-sep {
  height: 1px;
  background: var(--border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.footer-tagline {
  font-size: 13px;
  color: var(--muted-2);
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-inner  { padding: 0 var(--inner-px-m); gap: 36px; }
  .footer-top    { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* --------------------------------------------------------------------------
   18. ANIMACIONES DE SCROLL
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   var(--slow) var(--ease),
    transform var(--slow) var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 80ms;  }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   19. UTILIDADES
   -------------------------------------------------------------------------- */
.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;
}
