/* B-NET MX Portal — b-netmx.online · Teal/Navy · DM Sans */

:root {
  --teal: #006978;
  --teal-dark: #005a66;
  --teal-light: #e0f2f4;
  --navy: #003d4d;
  --navy-deep: #002a35;
  --white: #ffffff;
  --gray: #eceff1;
  --gray-mid: #b0bec5;
  --gray-dark: #607d8b;
  --text: #1a2b32;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0, 61, 77, 0.1);
  --header-h: 64px;
  --bar-h: 36px;
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--header-h) + var(--bar-h));
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray);
}

.header__bar {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  height: var(--bar-h);
  display: flex;
  align-items: center;
}

.header__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.header__badge { opacity: 0.85; }

.header__link {
  color: var(--teal-light);
  font-weight: 600;
  white-space: nowrap;
}

.header__link:hover { color: var(--white); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
}

.logo__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--navy);
  color: var(--teal-light);
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.logo__mark--sm { width: 28px; height: 28px; font-size: 0.85rem; }

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a:hover { color: var(--teal); }

.header__cta { display: flex; gap: 0.5rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: absolute;
  left: 5px;
  transition: 0.2s;
}

.nav-toggle span { top: 15px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-mid);
}

.btn--ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn--outline:hover {
  background: var(--teal-light);
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn--full { width: 100%; }

/* Hero — split layout */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--white) 55%);
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero__subtitle {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__disclaimer {
  font-size: 0.82rem;
  color: var(--gray-dark);
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.7);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Dashboard mockup */
.dashboard {
  background: var(--navy-deep);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dashboard__topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.85rem 1rem;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.dashboard__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}

.dashboard__dot:first-child { opacity: 1; }

.dashboard__title {
  margin-left: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
}

.dashboard__body { padding: 1.25rem; }

.dashboard__metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.dashboard__metric-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}

.dashboard__metric-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-light);
}

.dashboard__chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding: 0.75rem 0;
  margin: 0.5rem 0;
}

.dashboard__bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, var(--teal), var(--teal-light));
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}

.dashboard__rows { margin-top: 0.5rem; }

.dashboard__row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.dashboard__row span {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
}

.dashboard__row span:first-child { flex: 2; }
.dashboard__row span:last-child { flex: 1; }

/* Trust strip */
.trust-strip {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.trust-item strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-light);
}

.trust-item span { opacity: 0.9; }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--gray); }

.section__head { margin-bottom: 2rem; }

.section__head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.section__lead { color: var(--gray-dark); max-width: 560px; }

.about-prose {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text);
}

/* Horizontal scroll services */


.service-card {
  
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
}

.section--alt .service-card { background: var(--white); }

.service-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--gray-dark);
}

/* FAQ accordion */
.faq-list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--alt + .section .faq-item,
#faq .faq-item { background: var(--white); }

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--teal);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--gray-dark);
  font-size: 0.92rem;
}

/* Contact two-column */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact-info > p {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
}

.contact-address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}

.section--alt .contact-address { background: var(--white); }

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li span {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-dark);
  margin-bottom: 0.15rem;
}

.contact-details a { font-weight: 600; }

/* Form */
.lead-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  margin-top: 0.85rem;
  color: var(--navy);
}

.lead-form label:first-of-type { margin-top: 0; }

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--gray-mid);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
}

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,105,120,0.12);
}

.form__consent {
  display: flex !important;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400 !important;
  font-size: 0.82rem !important;
  color: var(--gray-dark) !important;
  cursor: pointer;
}

.form__consent input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }

.lead-form button { margin-top: 1.25rem; }

.form-notice {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--teal-dark);
  padding: 0.75rem;
  background: var(--teal-light);
  border-radius: 8px;
}

/* Footer */
.footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 2.5rem 0 1.5rem;
}

.footer a { color: var(--teal-light); }
.footer a:hover { color: var(--white); }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer__brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer__address { font-size: 0.88rem; opacity: 0.8; margin: 0.25rem 0; }

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
}

.footer__nav a { font-size: 0.9rem; }

.footer__disclaimer {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  opacity: 0.7;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  opacity: 0.55;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-top: 1px solid var(--gray);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 1rem 0;
}

.cookie-banner__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner__text { flex: 1; min-width: 240px; font-size: 0.88rem; color: var(--gray-dark); }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* Legal pages */
.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 { font-size: 2rem; color: var(--navy); margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.2rem; color: var(--navy); margin: 2rem 0 0.75rem; }
.legal-page p, .legal-page li { margin-bottom: 0.75rem; color: var(--text); }
.legal-page ul { padding-left: 1.25rem; }
.legal-page .updated { color: var(--gray-dark); font-size: 0.9rem; margin-bottom: 1.5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__dashboard { order: -1; max-width: 420px; margin: 0 auto; }
  .trust-strip__inner { grid-template-columns: 1fr; gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 768px) {
  body { padding-top: var(--header-h); }
  .header__bar { display: none; }

  .nav-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray);
    box-shadow: var(--shadow);
  }

  .nav.is-open { display: flex; }

  .header__cta { display: none; }

  .header__inner { position: relative; }
}

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

