@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;800;900&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-color: #ffffff;
  --text-main: #0a0a0a;
  --text-muted: #6b6b6b;
  --glass-shadow: inset 0 0 0.8rem rgba(255,255,255,0.05), inset 0 0 0.2rem rgba(255,255,255,0.2);
  --side-gap: 8%;
}

* { margin:0; padding:0; box-sizing:border-box; }
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  height: 100%;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  color: var(--text-main);
  background: var(--bg-color);
  overflow-x: hidden;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Titulares conservan Archivo */
h1, h2, .sec-title, .plan-name, .foot-closing, .faq-title, .acc-t, .ana-title {
  font-family: 'Archivo', sans-serif;
}
.hero, .sec { scroll-snap-align: start; scroll-snap-stop: always; }

.mono { font-family: 'JetBrains Mono', monospace; }

/* ───────────────────────────────────────────
   HEADER — SOLO UNA CAJA UNIFICADA (Estrela)
   ─────────────────────────────────────────── */
.header-fixed {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 9999;
  padding: 0 var(--side-gap);
  pointer-events: none;
}

.header-box {
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: var(--glass-shadow), 0 12px 40px rgba(0,0,0,0.3);
  border-radius: 0;
  display: flex;
  align-items: stretch;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  gap: 0;
  height: 64px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 30px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.logo-box img {
  height: 58%;
  width: auto;
  max-height: 42px;
  filter: brightness(1.2);
}

.nav-pill {
  display: flex;
  gap: 0;
  align-items: stretch;
}
.nav-item {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  padding: 0 28px;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  border-radius: 0;
  transition: color 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  white-space: nowrap;
}
.nav-item:hover { color: #fff; }
.nav-item.contact-link {
  background: #fff;
  color: #0a0a0a;
  padding: 0 26px;
  margin: 6px 6px 6px 6px;
  font-weight: 600;
  height: calc(100% - 12px);
}
.nav-item.contact-link:hover {
  background: #e8e8e8;
  color: #0a0a0a;
}

/* ───────────────────────────────────────────
   HERO — 100vh exacto
   ─────────────────────────────────────────── */
.hero {
  background-color: #0a0a0a;
  background-image: url('https://odosd.com/background.jpg');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  height: 100vh;
  min-height: 700px;
  padding: 0 var(--side-gap);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
/* Gradiente muy sutil solo en el extremo derecho para el texto */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, transparent 50%, rgba(10,10,10,0.3) 85%, rgba(10,10,10,0.6) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-top, .metrics { position: relative; z-index: 2; }

/* Fade-in desde abajo para los elementos del hero */
.hero-top > *, .metric {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.9s cubic-bezier(0.2, 1, 0.3, 1) forwards;
}
.hero-label { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero-sub { animation-delay: 0.4s; }
.hero-cta { animation-delay: 0.55s; }
.metric:nth-child(1) { animation-delay: 0.7s; }
.metric:nth-child(2) { animation-delay: 0.8s; }
.metric:nth-child(3) { animation-delay: 0.9s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 3rem;
  max-width: 1100px;
}
.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.55);
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero h1 em {
  font-style: italic;
  color: #9a9a9a;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  letter-spacing: -0.005em;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ───────────────────────────────────────────
   MÉTRICAS — más aire y ancladas al fondo
   ─────────────────────────────────────────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 3.5rem 0 3rem;
}
.metric {
  padding: 0 3rem;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: none; padding-right: 0; }
.metric-n {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
}
.metric-n .unit {
  color: #9a9a9a;
  font-size: 0.45em;
  vertical-align: super;
  font-weight: 700;
  margin-left: 4px;
}
.metric-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ───────────────────────────────────────────
   SECTION BASE — todas 100vh
   ─────────────────────────────────────────── */
.sec {
  min-height: 100vh;
  padding: 8rem var(--side-gap);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sec-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(10,10,10,0.5);
}
.sec-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 4rem;
  max-width: 1000px;
}
.sec-title em {
  font-style: italic;
  color: #9a9a9a;
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: 0.25s;
}
.sec-title em.is-visible,
.sec-title.is-visible em {
  opacity: 1;
  transform: translateX(0);
}

/* También anima el em del hero h1 y del foot-closing */
.hero h1 em,
.foot-closing em,
.faq-title em {
  display: inline-block;
}
.hero h1 em {
  opacity: 0;
  transform: translateX(-30px);
  animation: emSlideIn 1s cubic-bezier(0.2, 1, 0.3, 1) 0.5s forwards;
}
@keyframes emSlideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ───────────────────────────────────────────
   PROBLEMA — 4 columnas
   ─────────────────────────────────────────── */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #0a0a0a;
}
.prob-item {
  padding: 2.5rem 1.5rem 2.5rem 1.5rem;
  border-right: 1px solid rgba(10,10,10,0.1);
  transition: background 0.3s ease;
}
.prob-item:first-child { padding-left: 0; }
.prob-item:last-child { border-right: none; padding-right: 0; }
.prob-item:hover { background: #fafafa; }
.prob-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
  stroke: #0a0a0a;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.prob-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-bottom: 1rem;
  opacity: 0.5;
  letter-spacing: 0.15em;
}
.prob-text { font-size: 0.95rem; line-height: 1.55; color: #333; }
.prob-text strong { font-weight: 700; color: #0a0a0a; display: block; margin-bottom: 6px; }

/* ───────────────────────────────────────────
   PLANES — 3 columnas con imagen esquina superior derecha
   ─────────────────────────────────────────── */
.servicios { background: #0a0a0a; color: #fff; }
.servicios .sec-label { color: rgba(255,255,255,0.5); }
.servicios .sec-label::before { background: rgba(255,255,255,0.5); }
.servicios .sec-title { color: #fff; }
.servicios .sec-title em { color: #6b6b6b; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plan-box {
  background: #141414;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.5s cubic-bezier(0.2, 1, 0.3, 1),
              color 0.5s cubic-bezier(0.2, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.2, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.2, 1, 0.3, 1),
              box-shadow 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  z-index: 1;
}
.plan-box::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 75%;
  height: 70%;
  background-image: var(--plan-bg);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(225deg, #000 22%, transparent 80%);
          mask-image: linear-gradient(225deg, #000 22%, transparent 80%);
}
.plan-box:hover {
  background: #0a0a0a;
  color: #fff;
  border-color: rgba(255,255,255,0.3);
  transform: scale(1.04);
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  z-index: 2;
}
.plan-box:hover::before { opacity: 1; }
.plan-box > * { position: relative; z-index: 1; }

.plan-box.active {
  background: #0a0a0a;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.plan-box.active::before { opacity: 1; }

.plan-grid:hover .plan-box.active:not(:hover) {
  background: #141414;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.08);
  transform: scale(1);
  box-shadow: none;
}
.plan-grid:hover .plan-box.active:not(:hover)::before { opacity: 0; }

.plan-tag {
  position: absolute;
  top: -1px;
  right: -1px;
  background: #fff;
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  font-weight: 500;
  z-index: 3;
}
.plan-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 12px;
  transition: color 0.5s;
}
.plan-name {
  font-size: 1.4rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
.plan-price {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: #fff;
}
.plan-price .currency {
  font-size: 0.9rem;
  vertical-align: super;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-right: 6px;
}
.plan-price .period {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 10px;
}
.plan-feat {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}
.plan-feat li {
  font-size: 0.9rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  gap: 10px;
  line-height: 1.45;
  transition: border-color 0.5s;
  color: rgba(255,255,255,0.85);
}
.plan-feat li:last-child { border-bottom: none; }
.plan-feat li::before {
  content: '+';
  font-family: 'JetBrains Mono', monospace;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
}
.plan-btn {
  width: 100%;
  padding: 16px;
  background: transparent;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: 0.3s;
}
.plan-btn:hover {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.plan-box:hover .plan-btn,
.plan-box.active .plan-btn {
  background: #fff;
  color: #0a0a0a;
  border-color: #fff;
}
.plan-grid:hover .plan-box.active:not(:hover) .plan-btn {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.plan-box:hover .plan-btn:hover,
.plan-box.active .plan-btn:hover {
  background: #9a9a9a;
  color: #fff;
  border-color: #9a9a9a;
}

/* ───────────────────────────────────────────
   PROCESO — accordion
   ─────────────────────────────────────────── */
.accordion-item { border-top: 1px solid #0a0a0a; }
.accordion-item:last-child { border-bottom: 1px solid #0a0a0a; }
.accordion-header {
  width: 100%;
  padding: 2.5rem 0;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  transition: padding 0.3s ease;
}
.accordion-header:hover { padding-left: 20px; }
.acc-n {
  font-family: 'JetBrains Mono', monospace;
  width: 80px;
  font-size: 14px;
  opacity: 0.4;
  text-align: left;
  letter-spacing: 0.15em;
}
.acc-t {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  text-transform: uppercase;
  flex-grow: 1;
  text-align: left;
  letter-spacing: -0.02em;
}
.acc-plus {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  opacity: 0.4;
  transition: transform 0.3s;
}
.accordion-item.active .acc-plus { transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-item.active .accordion-content {
  max-height: 300px;
  padding-bottom: 2.5rem;
}
.acc-d {
  padding-left: 80px;
  font-size: 1.15rem;
  color: rgba(10,10,10,0.65);
  max-width: 700px;
  line-height: 1.5;
}

/* ───────────────────────────────────────────
   ANALÍTICA & SEO — split 2 columnas + complementarios
   ─────────────────────────────────────────── */
.analitica {
  background: #0a0a0a;
  color: #fff;
}
.analitica .sec-label { color: rgba(255,255,255,0.55); }
.analitica .sec-label::before { background: rgba(255,255,255,0.55); }
.analitica .sec-title em { color: #9a9a9a; }

.ana-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.ana-item {
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ana-item:nth-child(3n) { border-right: none; }
.ana-item:nth-last-child(-n+3) { border-bottom: none; }
.ana-item:nth-child(3n+1) { padding-left: 0; }
.ana-item:nth-child(3n) { padding-right: 0; }

.ana-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.5rem;
  stroke: #fff;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.ana-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9a9a9a;
}
.ana-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.ana-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

.ana-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.ana-footer-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
/* ───────────────────────────────────────────
   FOOTER — diagonal layout (logo gigante abajo)
   ─────────────────────────────────────────── */
.foot {
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.foot-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding-top: 2rem;
  min-height: calc(100vh - 16rem);
}

/* Línea horizontal superior que atraviesa toda la sección */
.foot::before {
  content: '';
  position: absolute;
  top: 8rem;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 1;
}

/* TOP ROW */
.foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 6rem;
  padding-top: 2rem;
  align-items: start;
}

.foot-cta { display: flex; flex-direction: column; max-width: 520px; }
.foot-closing {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.foot-tag {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.foot-services { display: flex; flex-direction: column; max-width: 340px; margin-left: auto; width: 100%; }
.foot-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
  padding-bottom: 1.2rem;
}
.foot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.foot-list li { border-bottom: 1px solid rgba(255,255,255,0.1); }
.foot-list li:last-child { border-bottom: none; }
.foot-list a {
  display: block;
  padding: 1.1rem 0;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: padding 0.25s ease, color 0.25s ease;
  cursor: pointer;
}
.foot-list a:hover { padding-left: 12px; color: rgba(255,255,255,0.7); }

/* BOTTOM ROW */
.foot-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  padding-top: 4rem;
  position: relative;
}
.foot-meta-new {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding-bottom: 1.5rem;
}
.foot-logo-huge {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}
.foot-logo-huge img {
  height: auto;
  width: 100%;
  max-width: 560px;
  filter: brightness(1.08);
  /* Permite que el logo sobresalga un poco del margen derecho */
  margin-right: -2%;
  display: block;
}

/* Línea horizontal inferior */
.foot::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.15);
  z-index: 1;
}

/* ───────────────────────────────────────────
   POPUP FAQ
   ─────────────────────────────────────────── */
.faq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem 5%;
}
.faq-overlay.active {
  display: flex;
  animation: faqFadeIn 0.3s ease;
}
@keyframes faqFadeIn { from { opacity: 0; } to { opacity: 1; } }

.faq-modal {
  background: #0a0a0a;
  color: #fff;
  max-width: 900px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid rgba(255,255,255,0.15);
  position: relative;
  animation: faqSlideUp 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
@keyframes faqSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.faq-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-left: 1px solid rgba(255,255,255,0.15);
  transition: background 0.2s;
}
.faq-close:hover { background: #222; }

.faq-inner { padding: 0 3rem 3rem; }
.faq-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}
.faq-title em { font-style: italic; color: #9a9a9a; }

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.15); }
.faq-q {
  width: 100%;
  padding: 1.4rem 40px 1.4rem 0;
  display: flex;
  align-items: flex-start;
  background: none;
  border: none;
  color: #fff;
  text-align: left;
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: padding 0.3s ease;
  position: relative;
}
.faq-q:hover { padding-left: 10px; }
.faq-q::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 1.4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  opacity: 0.6;
  transition: transform 0.3s;
}
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}
.faq-item.active .faq-a {
  max-height: 400px;
  padding: 0 0 1.8rem 0;
}

/* Botones */
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #0a0a0a;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 18px 28px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  transition: background 0.25s;
}
.btn-white:hover { background: #9a9a9a; color: #fff; }
.btn-white::after { content: '→'; font-family: 'Archivo', sans-serif; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  padding: 18px 28px;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.25s;
}
.btn-ghost:hover { border-color: #fff; }

/* ───────────────────────────────────────────
   RESPONSIVE
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --side-gap: 5%; }
  .prob-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-item:nth-child(2) { border-right: none; }
  .prob-item:nth-child(1), .prob-item:nth-child(2) { border-bottom: 1px solid rgba(10,10,10,0.1); }
  .plan-grid { grid-template-columns: 1fr; }
  .ana-grid { grid-template-columns: 1fr; }
  .ana-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    padding: 2rem 0 !important;
  }
  .ana-item:last-child { border-bottom: none !important; }
  .foot-top { grid-template-columns: 1fr; gap: 3rem; }
  .foot-services { margin-left: 0; max-width: 100%; }
  .foot-bottom { grid-template-columns: 1fr; gap: 3rem; }
  .foot-logo-huge { justify-content: flex-start; }
  .foot-logo-huge img { max-width: 100%; margin-right: 0; }
  .foot-meta-new { align-items: flex-start; }
  .sec { min-height: auto; padding: 6rem var(--side-gap); }
  .foot { min-height: auto; }
  html { scroll-snap-type: none; }
  .nav-pill { display: none; }
  .header-box { padding: 10px 16px; }
}
@media (max-width: 640px) {
  :root { --side-gap: 5%; }
  .header-box { padding: 6px; }
  .logo-box { padding-right: 10px; margin-right: 4px; }
  .logo-box img { height: 22px; }
  .nav-item { padding: 8px 10px; font-size: 10px; }
  .nav-item.contact-link { margin-left: 2px; }
  .prob-grid { grid-template-columns: 1fr; }
  .prob-item { border-right: none !important; border-bottom: 1px solid rgba(10,10,10,0.1); }
  .prob-item:last-child { border-bottom: none; }
  .metrics { grid-template-columns: 1fr; gap: 2rem; }
  .metric { padding: 2rem 0 !important; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
  .metric:last-child { border-bottom: none; }
  .hero { height: auto; min-height: 100vh; }
  .hero-top { padding-top: 140px; }
}

/* ───────────────────────────────────────────
   FADE-IN UP — texto gris itálica (em dentro de títulos)
   Los textos son SIEMPRE visibles por defecto (fallback seguro).
   Solo se esconden si el JS añade la clase .js-anim al <html>.
   Animación simple: opacity + translateY.
   ─────────────────────────────────────────── */
html.js-anim h1 em,
html.js-anim .sec-title em,
html.js-anim .foot-closing em,
html.js-anim .faq-title em {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}
html.js-anim h1 em.typed,
html.js-anim .sec-title em.typed,
html.js-anim .foot-closing em.typed,
html.js-anim .faq-title em.typed {
  opacity: 1;
  transform: translateY(0);
}
