/* EmpresaFlow MX — bancmx-net.space · Editorial Charcoal/Coral */

:root {
  --charcoal: #2d3436;
  --charcoal-deep: #1e2425;
  --coral: #e17055;
  --coral-dark: #c45a42;
  --cream: #faf7f2;
  --cream-dark: #f0ebe3;
  --white: #ffffff;
  --text: #2d3436;
  --text-muted: #636e72;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Source Sans 3', system-ui, sans-serif;
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
}

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

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

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

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

.logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.logo__dot { color: var(--coral); }

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

.nav a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

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

.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(--charcoal);
  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.8rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

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

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

.btn--line {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.btn--line:hover {
  background: var(--charcoal);
  color: var(--white);
}

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

/* Hero — left-aligned magazine */
.hero {
  padding: 4rem 0 3rem;
  background: var(--cream);
}

.hero__magazine {
  max-width: 680px;
  text-align: left;
}

.hero__issue {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.hero__deck {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero__rule {
  width: 80px;
  height: 3px;
  background: var(--coral);
  margin-bottom: 1.5rem;
}

.hero__disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 1rem 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Full-bleed alternating sections */
.bleed {
  padding: 3rem 0;
}

.bleed--charcoal {
  background: var(--charcoal);
  color: var(--white);
}

.bleed--coral {
  background: var(--coral);
  color: var(--white);
}

.bleed--cream {
  background: var(--cream-dark);
}

.bleed__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.trust-col {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trust-col__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.65;
}

.trust-col__value {
  font-family: var(--serif);
  font-size: 1.15rem;
}

/* Sections */
.section { padding: 4.5rem 0; }
.section--narrow { max-width: 720px; }
.section--contact { background: var(--white); }

.section__title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section__title--light { color: var(--white); }

.section__lead {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.section__lead--light { color: rgba(255,255,255,0.85); }

/* Editorial prose */
.editorial-prose p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.drop-cap::first-letter {
  font-family: var(--serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.85;
  margin: 0.1rem 0.5rem 0 0;
  color: var(--coral);
  font-weight: 700;
}

.editorial-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
}

.editorial-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--coral);
  color: var(--text-muted);
}

.editorial-list strong { color: var(--charcoal); }

/* Vertical timeline */
.timeline {
  list-style: none;
  position: relative;
  padding-left: 0;
  max-width: 640px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.35);
}

.timeline__item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.9rem;
  font-weight: 700;
  border: 3px solid rgba(255,255,255,0.5);
  position: relative;
  z-index: 1;
}

.timeline__content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.timeline__content p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-aside p { color: var(--text-muted); margin-bottom: 1rem; }

.contact-block {
  font-style: normal;
  line-height: 1.7;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 2px solid var(--charcoal);
  border-bottom: 2px solid var(--cream-dark);
}

.contact-link {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact-hours {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form */
.form {
  background: var(--cream);
  padding: 2rem;
  border: 1px solid var(--cream-dark);
}

.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(--charcoal);
}

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--coral);
}

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

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

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

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

.footer a { color: var(--coral); }
.footer a:hover { color: #f5a08a; }

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

.footer__logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__address { font-size: 0.9rem; opacity: 0.75; margin-bottom: 0.5rem; }

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

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

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

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

.cookie-banner__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
  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(--text-muted); }
.cookie-banner__actions { display: flex; gap: 0.5rem; }

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

/* Responsive */
@media (max-width: 900px) {
  .bleed__inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .footer__grid { 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(--cream);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--cream-dark);
    margin-left: 0;
  }

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

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

  .form__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; }

