/* Base Integral MX — base-integralmx.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 with photo */
.hero--photo {
  position: relative;
  min-height: 540px;
  padding: 6rem 0 4.5rem;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, rgba(0, 42, 53, 0.88) 0%, rgba(0, 42, 53, 0.7) 45%, rgba(0, 61, 77, 0.35) 100%);
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(224, 242, 244, 0.35);
  border-radius: 999px;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  line-height: 1.18;
  color: var(--white);
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero__subtitle {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  font-size: 1.08rem;
  max-width: 520px;
  text-wrap: pretty;
}

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

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

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

/* 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--photo { padding: 5rem 0 3.5rem; min-height: 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; }
}

/* Section eyebrow + about + step list + content split + sectores */
.section__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}

.section__head h2,
.section h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  color: var(--navy);
  margin-bottom: 0.6rem;
  line-height: 1.25;
  text-wrap: balance;
}

.about-with-visual {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

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

.about-prose .section__eyebrow { margin-bottom: 0.35rem; }

.about-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 61, 77, 0.18);
}

.about-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-top: 1.5rem;
  counter-reset: step;
}

.step-list li {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  padding-left: 0;
}

.step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  flex: 0 0 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.step-list__body {
  flex: 1 1 auto;
  min-width: 0;
}

.step-list strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.step-list span {
  display: block;
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Sector timeline */
.sector-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.sector-timeline__item {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  background: var(--white);
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
  box-shadow: 0 4px 16px rgba(0, 61, 77, 0.06);
}

.sector-timeline__step {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--teal-light);
  border-radius: 8px;
  height: 2.5rem;
}

.sector-timeline__item h3 {
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.sector-timeline__item p {
  font-size: 0.92rem;
  color: var(--gray-dark);
  line-height: 1.55;
}

/* Contact disclaimer */
.contact-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--gray-dark);
  padding: 0.85rem 1rem;
  background: var(--white);
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  line-height: 1.55;
}

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

.faq-footer-note {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--gray-dark);
  padding-top: 1rem;
  border-top: 1px solid var(--gray);
}

/* Skip link a11y/SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; color: var(--white); }

/* === 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: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}

.content-split--reverse .content-split__figure { order: 0; }
.content-split--reverse .content-split__copy { order: 1; }

.content-split__figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 61, 77, 0.18);
}

.content-split__figure img,
.content-split__figure picture,
.content-split__figure picture img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.content-split__copy {
  min-width: 0;
}

.content-split__copy h2 { margin-bottom: 0.5rem; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .content-split { grid-template-columns: 1fr; }
  .about-with-visual { grid-template-columns: 1fr; }
  .sector-timeline { grid-template-columns: 1fr; }
  .content-split--reverse .content-split__figure { order: -1; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .scroll-hint { display: none; }
}

