/* Base Operativa MX — Industrial slate + orange */
:root {
  --slate-900: #1a2327;
  --slate-800: #263238;
  --slate-700: #37474f;
  --slate-600: #546e7a;
  --slate-400: #90a4ae;
  --orange: #ff6f00;
  --orange-dark: #e65100;
  --orange-deep: #bf360c;
  --orange-soft: rgba(255, 111, 0, 0.14);
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #eceff1;
  --shadow: 0 12px 40px rgba(26, 35, 39, 0.14);
  --radius: 8px;
  --font: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--slate-800); line-height: 1.65; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate-700); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange); }
.container { width: min(1120px, 92%); margin-inline: auto; }
address { font-style: normal; }

/* Header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gray-100);
}
.header__bar {
  background: var(--slate-800);
  color: var(--gray-50);
  font-size: 0.75rem;
  padding: 0.4rem 0;
}
.header__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.header__badge { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.9; }
.header__link { color: var(--orange); font-weight: 600; }
.header__link:hover { color: var(--white); text-decoration: underline; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}
.logo {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--slate-800);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.logo__tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--slate-600);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}
.nav { display: flex; gap: 1.75rem; }
.nav a { font-size: 0.88rem; font-weight: 600; color: var(--slate-600); }
.nav a:hover { color: var(--orange); }
.header__cta { display: flex; gap: 0.5rem; align-items: center; flex-shrink: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  height: 3px;
  background: var(--slate-800);
  border-radius: 2px;
}
.nav-toggle span { width: 100%; }
.nav-toggle::before,
.nav-toggle::after { content: ''; position: absolute; width: 100%; left: 0; }
.nav-toggle::before { top: 0; }
.nav-toggle::after { bottom: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--white); border-color: var(--orange); }
.btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--outline:hover { background: var(--white); color: var(--slate-800); }
.section .btn--outline,
.cookie-banner .btn--outline {
  color: var(--slate-700);
  border-color: var(--slate-700);
}
.section .btn--outline:hover,
.cookie-banner .btn--outline:hover {
  background: var(--slate-800);
  color: var(--white);
}
.btn--light { background: var(--white); color: var(--orange-deep); border-color: var(--white); }
.btn--light:hover { background: var(--gray-50); color: var(--orange-dark); }
.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.82rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* Hero — oversized typography */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8.5rem 0 5rem;
  background: var(--slate-900);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 111, 0, 0.08) 100%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 80px);
  pointer-events: none;
}
.hero__grid-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 111, 0, 0.22) 0%, transparent 65%);
}
.hero__wrap { position: relative; z-index: 1; max-width: 900px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.5rem;
}
.hero__title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
}
.hero__accent { color: var(--orange); display: inline-block; }
.hero__subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: var(--slate-400);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero__disclaimer {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  max-width: 620px;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.hero__disclaimer strong { color: var(--orange); }

/* Sections */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--gray-50); }
.section--slate { background: var(--slate-800); color: var(--white); }
.section--slate h2 { color: var(--white); }
.section--slate .section__lead { color: var(--slate-400); }
.section--legal { padding: 3rem 0; }
.section h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--slate-800);
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.03em;
}
.section__lead {
  text-align: center;
  color: var(--slate-600);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* About + office card */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.about-copy h2 { text-align: left; margin-bottom: 1.25rem; }
.about-copy p {
  margin-bottom: 1rem;
  color: var(--slate-600);
  font-weight: 500;
  font-size: 1.02rem;
}
.about-copy strong { color: var(--slate-800); }
.service-area-card {
  background: var(--slate-800, #37474f);
  color: #fff;
  border-radius: 12px;
  padding: 1.5rem;
}
.service-area-card h3 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--orange, #ff6f00); }
.service-area-card p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.service-area-card a { color: #fff; }

/* Steps — vertical numbered process */
.steps {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding-left: 4.5rem;
}
.steps::before {
  content: '';
  position: absolute;
  left: 1.65rem;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--slate-600) 100%);
  border-radius: 3px;
}
.steps__item {
  position: relative;
  padding-bottom: 2.5rem;
}
.steps__item:last-child { padding-bottom: 0; }
.steps__num {
  position: absolute;
  left: -4.5rem;
  top: 0;
  width: 3.3rem;
  height: 3.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: var(--white);
  background: var(--orange);
  border: 4px solid var(--slate-800);
  border-radius: 50%;
  letter-spacing: 0.02em;
}
.steps__content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
}
.steps__content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.steps__content p {
  font-size: 0.95rem;
  color: var(--slate-400);
  font-weight: 500;
}

/* CTA band — dark orange */
.cta-band {
  background: linear-gradient(135deg, var(--orange-deep) 0%, var(--orange-dark) 50%, var(--orange) 100%);
  padding: 4rem 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  text-align: left;
  letter-spacing: -0.02em;
}
.cta-band__text p {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
  max-width: 520px;
  font-size: 1rem;
}

/* Benefits */
.benefits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.benefit-card {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-top: 4px solid var(--orange);
  box-shadow: 0 4px 20px rgba(26, 35, 39, 0.08);
}
.benefit-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-800);
  margin-bottom: 0.6rem;
}
.benefit-card p {
  font-size: 0.92rem;
  color: var(--slate-600);
  font-weight: 500;
}

/* Legal box */
.legal-box {
  background: var(--slate-800);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid var(--orange);
}
.legal-box h2 {
  color: var(--orange);
  margin-bottom: 1rem;
  font-weight: 900;
  font-size: 1.35rem;
}
.legal-box p {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Form */
.form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--gray-100);
}
.form__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
}
.form__full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-700);
}
.form input,
.form select,
.form textarea {
  padding: 0.85rem;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 500;
  background: var(--gray-50);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
}
.form__notice {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}
.form__consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.45;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--orange);
}
.form__consent a { text-decoration: underline; color: var(--orange); }

/* Footer */
.footer {
  background: var(--slate-900);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer .logo { color: var(--white); display: block; margin-bottom: 0.5rem; }
.footer a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.footer a:hover { color: var(--orange); }
.footer__address {
  font-size: 0.88rem;
  color: var(--slate-400);
  margin: 0.75rem 0;
  line-height: 1.5;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
}
.footer__legal p + p { margin-top: 0.5rem; }

/* Legal pages */
.legal-page { padding: 7rem 0 4rem; }
.legal-page h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--slate-800);
  margin-bottom: 1rem;
}
.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-800);
  margin: 1.75rem 0 0.75rem;
  text-align: left;
}
.legal-page p,
.legal-page li {
  color: var(--slate-600);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.legal-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-page a { color: var(--orange); font-weight: 700; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 3px solid var(--orange);
  box-shadow: 0 -8px 32px rgba(26, 35, 39, 0.15);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}
.cookie-banner__inner {
  width: min(1120px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.cookie-banner__text { flex: 1; min-width: 240px; font-size: 0.85rem; line-height: 1.5; }
.cookie-banner__text p { margin: 0 0 0.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
  .header__cta .btn--outline { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy h2 { text-align: center; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__text h2 { text-align: center; }
}

@media (max-width: 768px) {
  .header__bar { display: none; }
  .header__inner .header__cta { display: none; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 2px solid var(--gray-100);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  .hero { min-height: auto; padding: 7rem 0 4rem; }
  .form__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .steps { padding-left: 3.5rem; }
  .steps__num { left: -3.5rem; width: 2.6rem; height: 2.6rem; font-size: 0.85rem; }
  .steps::before { left: 1.15rem; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { width: 100%; }
}

/* SEO / LLM content */
.seo-section { background: var(--gray, #f4f6f8); }
.seo-section .seo-prose { max-width: 720px; margin: 1rem 0 1.25rem; }
.seo-section .seo-prose p { margin-bottom: 0.85rem; color: inherit; opacity: 0.92; }
.seo-keywords, .seo-area, .service-area, .service-area-block, .footer__service-area {
  font-size: 0.9rem;
  line-height: 1.5;
}
.seo-keywords { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 8px; background: rgba(0,0,0,0.04); }
.seo-area, .service-area-block { margin-top: 0.75rem; }
.footer__service-area { margin: 0.35rem 0; opacity: 0.9; }

/* === Mejoras layout, tipografía e imágenes === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.service-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}
.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.service-card__icon svg { width: 100%; height: 100%; display: block; }
.service-card h3 {
  text-wrap: balance;
  line-height: 1.3;
}
.service-card p {
  text-wrap: pretty;
  flex: 1;
  line-height: 1.55;
  margin-top: auto;
  padding-top: 0.5rem;
}
.section__head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.scroll-hint {
  display: none;
  font-size: 0.82rem;
  color: var(--gray-dark, #607d8b);
}
.content-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.content-split__figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.content-split__figure img,
.content-split__figure svg {
  width: 100%;
  height: auto;
  display: block;
}
.ai-seo-section {
  background: linear-gradient(180deg, rgba(0,0,0,0.02) 0%, transparent 100%);
}
.ai-summary {
  max-width: 680px;
}
.ai-summary p { margin-bottom: 0.85rem; line-height: 1.65; text-wrap: pretty; }
.ai-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ai-tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
}
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.process-step {
  text-align: center;
  padding: 1.25rem 1rem;
}
.process-step__img {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
}
.process-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; text-wrap: balance; }
.process-step p { font-size: 0.85rem; opacity: 0.88; text-wrap: pretty; }
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .services-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -1.25rem;
    padding: 0 1.25rem 1rem;
    scroll-snap-type: x mandatory;
  }
  .services-grid {
    display: flex;
    width: max-content;
    gap: 1rem;
  }
  .services-grid .service-card {
    flex: 0 0 min(85vw, 300px);
    scroll-snap-align: start;
  }
  .scroll-hint { display: block; width: 100%; text-align: center; margin-top: 0.5rem; }
  .process-grid { grid-template-columns: 1fr; }
}

/* Fix tarjetas y tipografía en layouts alternativos */
.card-grid { align-items: stretch; }
.card, .card-grid .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
}
.card h3, .card-grid .card h3 { text-wrap: balance; line-height: 1.3; }
.card p, .card-grid .card p { text-wrap: pretty; line-height: 1.55; flex: 1; }
.timeline__content p, .timeline__content h3 { text-wrap: pretty; }
.timeline__content h3 { text-wrap: balance; }
.bento__item, .hex-card, .stack-card { text-wrap: pretty; }
.bento__item h3, .hex-card h3, .stack-card h3 { text-wrap: balance; }
.feature-row, .zigzag-row { text-wrap: pretty; }

