/* BNet Empresarial — Navy + gold, Inter, dark nav, zigzag layout */
:root {
  --navy: #0a2540;
  --navy-mid: #143456;
  --navy-light: #1e4a72;
  --gold: #c9a227;
  --gold-hover: #b8921f;
  --gold-soft: rgba(201, 162, 39, 0.12);
  --white: #ffffff;
  --gray-50: #f7f9fc;
  --gray-100: #eef2f7;
  --gray-200: #d8e0ea;
  --gray-500: #6b7c93;
  --gray-800: #1a2b3c;
  --shadow: 0 8px 32px rgba(10, 37, 64, 0.1);
  --radius: 10px;
  --font: 'Inter', 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(--gray-800); line-height: 1.65; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--gold); }
.container { width: min(1180px, 92%); margin-inline: auto; }

/* Dark header */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}
.header__bar {
  background: var(--navy-mid);
  font-size: 0.72rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}
.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.02em; }
.header__link { font-weight: 500; color: var(--gold); }
.header__link:hover { color: var(--white); text-decoration: underline; }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.logo:hover { color: var(--gold); }
.logo__tagline {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.2;
  margin-top: 0.1rem;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }
.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: 2px;
  background: var(--white);
  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.75rem 1.5rem;
  font-weight: 600;
  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;
  font-family: inherit;
}
.btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--outline:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--gold); color: var(--gold); }
.section .btn--outline { color: var(--navy); border-color: var(--navy); }
.section .btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

/* Hero 60/40 split */
.hero {
  padding: 7.5rem 0 4.5rem;
  background: linear-gradient(135deg, var(--gray-50) 55%, var(--gold-soft) 100%);
}
.hero__split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 3rem;
  align-items: center;
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 3.8vw, 2.6rem);
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 1.1rem;
}
.hero__subtitle {
  font-size: 1.02rem;
  color: var(--gray-500);
  margin-bottom: 1.75rem;
  max-width: 520px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.25rem; }
.hero__disclaimer {
  font-size: 0.78rem;
  color: var(--gray-500);
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.hero__disclaimer strong { color: var(--navy); }
.hero__frame {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero__frame-inner {
  background: var(--navy-mid);
  border-radius: calc(var(--radius) - 4px);
  padding: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.25);
}
.hero__frame-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hero__frame-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 120px;
}
.hero__frame-bars span {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--gold), var(--gold-hover));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--navy); margin-bottom: 1rem; }
.about p { color: var(--gray-500); margin-bottom: 1rem; }
.about__address {
  font-style: normal;
  font-size: 0.9rem;
  padding: 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  margin-top: 0.5rem;
  line-height: 1.7;
}
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.about__stat {
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}
.about__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.about__stat-label { font-size: 0.82rem; opacity: 0.8; }

/* Sections */
.section { padding: 4.5rem 0; }
.section--alt { background: var(--gray-50); }
.section--legal { padding: 3rem 0; }
.section--contact { background: var(--gray-100); }
.section h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section__lead {
  text-align: center;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}
.section__lead--left { text-align: left; margin: 0 0 1.5rem; }

/* Zigzag features */
.zigzag {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}
.zigzag--reverse .zigzag__visual { order: 2; }
.zigzag--reverse .zigzag__text { order: 1; }
.zigzag__text h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}
.zigzag__text p { color: var(--gray-500); font-size: 0.95rem; }
.img-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(201, 162, 39, 0.06) 12px,
    rgba(201, 162, 39, 0.06) 24px
  );
}
.img-placeholder span {
  position: relative;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
}

/* Benefits */
.benefits {
  list-style: none;
  max-width: 680px;
  margin: 0 auto 2rem;
}
.benefits li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-500);
}
.benefits li strong { color: var(--navy); }
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Legal box */
.legal-box {
  background: var(--navy);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  border-top: 3px solid var(--gold);
}
.legal-box h2 { color: var(--gold); margin-bottom: 0.75rem; text-align: center; }
.legal-box p { font-size: 0.94rem; opacity: 0.95; }

/* Contact layout with sticky sidebar form */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.contact-layout__info h2 { text-align: left; }
.contact-details {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.8;
}
.contact-details p { margin-bottom: 0.5rem; }
.contact-layout__form {
  position: sticky;
  top: 7.5rem;
}

/* Form */
.form {
  background: var(--white);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.form__grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}
.form__full { grid-column: 1 / -1; }
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
}
.form input,
.form select,
.form textarea {
  padding: 0.7rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  border-color: var(--gold);
}
.form__notice {
  font-size: 0.72rem;
  color: var(--gray-500);
  margin-top: 0.85rem;
  text-align: center;
}
.form__consent {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 0.6rem !important;
  font-size: 0.76rem !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;
}
.form__consent a { text-decoration: underline; }

/* Footer */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}
.footer a { color: rgba(255, 255, 255, 0.85); }
.footer a:hover { color: var(--gold); }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__address {
  font-style: normal;
  font-size: 0.88rem;
  margin-top: 0.75rem;
  line-height: 1.7;
  opacity: 0.9;
}
.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.78rem;
  opacity: 0.85;
}
.footer__legal p + p { margin-top: 0.5rem; }

/* Legal pages */
.legal-page { padding: 6rem 0 4rem; }
.legal-page h1 { color: var(--navy); margin-bottom: 1.5rem; }
.legal-page h2 { color: var(--navy); margin: 2rem 0 0.75rem; font-size: 1.15rem; }
.legal-page p, .legal-page li { color: var(--gray-500); margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.25rem; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom));
}
.cookie-banner__inner {
  width: min(1180px, 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.84rem; line-height: 1.5; }
.cookie-banner__text p { margin: 0 0 0.25rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner .btn--outline { color: var(--navy); border-color: var(--navy); }
.cookie-banner .btn--outline:hover { background: var(--navy); color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 320px; margin: 0 auto; }
  .hero__frame { transform: none; }
  .about { grid-template-columns: 1fr; }
  .about__stats { flex-direction: row; flex-wrap: wrap; }
  .about__stat { flex: 1; min-width: 120px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-layout__form { position: static; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-mid);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .header__bar { display: none; }
  .hero { padding-top: 5.5rem; }
  .zigzag,
  .zigzag--reverse { grid-template-columns: 1fr; }
  .zigzag--reverse .zigzag__visual,
  .zigzag--reverse .zigzag__text { order: unset; }
  .footer__grid { grid-template-columns: 1fr; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions .btn { width: 100%; }
}

@media (max-width: 900px) {
  .header__cta .btn--outline { display: none; }
}

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

