/* RedEmpresarial MX — bancnet-mx.online · Forest Green/Amber */

:root {
  --green: #1b5e20;
  --green-mid: #2e7d32;
  --green-light: #e8f5e9;
  --amber: #ffc107;
  --amber-dark: #e6ac00;
  --teal-accent: #00695c;
  --white: #ffffff;
  --gray-50: #f5f7f5;
  --gray-100: #e8ebe8;
  --gray-500: #6b7c6d;
  --text: #1a2e1c;
  --font: 'Source Sans 3', system-ui, sans-serif;
  --header-h: 68px;
  --radius: 10px;
}

*, *::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: var(--header-h);
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { color: var(--green); }

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 2px solid var(--green-light);
  box-shadow: 0 2px 12px rgba(27,94,32,0.06);
}

.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;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
}

.logo__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--green);
  color: var(--amber);
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

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

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

.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(--green);
  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;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: 0.2s;
}

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

.btn--green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
}

.btn--amber {
  background: var(--amber);
  color: var(--green);
  border-color: var(--amber);
}

.btn--amber:hover {
  background: var(--amber-dark);
  border-color: var(--amber-dark);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  color: var(--white);
}

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

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

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

/* Hero band — full width green */
.hero-band {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
}

.hero-band__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-band h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 1rem;
}

.hero-band__sub {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

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

.hero-band__disclaimer {
  font-size: 0.82rem;
  opacity: 0.8;
  max-width: 640px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
}

/* Icon row under hero */
.icon-row {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.75rem 0;
  margin-top: -1px;
}

.icon-row__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

.icon-cell__glyph {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.icon-cell strong {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
}

.icon-cell span {
  font-size: 0.88rem;
  color: var(--gray-500);
}

/* Sections */
.section { padding: 4rem 0; }
.section--muted { background: var(--gray-50); }
.section--contact { background: var(--green-light); }

.section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--green);
  margin-bottom: 0.75rem;
}

.section__lead {
  color: var(--gray-500);
  margin-bottom: 2rem;
  max-width: 560px;
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 760px;
}

.prose-grid p { color: var(--text); }

/* 3-column card grid with colored top borders */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(27,94,32,0.06);
  border-top: 4px solid var(--green);
}

.card--green { border-top-color: var(--green); }
.card--amber { border-top-color: var(--amber); }
.card--teal { border-top-color: var(--teal-accent); }

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

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

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table thead {
  background: var(--green);
  color: var(--white);
}

.compare-table thead th { font-weight: 600; }

.compare-table tbody tr:nth-child(even) { background: var(--gray-50); }

.compare-table tbody tr:hover { background: var(--green-light); }

.compare-yes { color: var(--green-mid); font-weight: 600; }
.compare-no { color: #c62828; font-weight: 600; }

/* Contact split */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-panel h2 { margin-bottom: 0.75rem; }

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

.contact-addr {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--green);
}

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

.contact-list a { font-weight: 600; font-size: 1.05rem; }

/* Form */
.form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(27,94,32,0.08);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--green);
}

.form__full { grid-column: 1 / -1; }

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

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

.form__consent input { width: auto; margin-top: 0.15rem; }

.form__notice {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Footer */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.9);
}

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

.footer__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer__address { font-size: 0.88rem; opacity: 0.8; margin-bottom: 0.35rem; }

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

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

.footer__bottom {
  padding: 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.7;
}

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

.cookie-banner__inner {
  max-width: 1120px;
  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-500); }
.cookie-banner__actions { display: flex; gap: 0.5rem; }

/* Legal pages */
.legal-page { padding: 3rem 0 4rem; }
.legal-page h1 { font-size: 2rem; color: var(--green); margin-bottom: 0.5rem; }
.legal-page h2 { font-size: 1.15rem; color: var(--green); margin: 1.75rem 0 0.5rem; }
.legal-page p, .legal-page li { margin-bottom: 0.75rem; }
.legal-page ul { padding-left: 1.25rem; }

/* Responsive */
@media (max-width: 900px) {
  .icon-row__grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 1rem; }
}

@media (max-width: 768px) {
  .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-100);
    margin-left: 0;
  }

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

  .header .btn--sm { display: none; }
  .header__inner { position: relative; }

  .card-grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .icon-row__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .icon-row__grid { grid-template-columns: 1fr; }
}

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

