/* ===========================
   FOCUS SYSTEMS 4.0 — Estilos
   =========================== */

:root {
  --red: #9B0808;
  --red-dark: #7A0606;
  --red-light: #C41E1E;
  --gray-900: #83888D;
  --grisoscuro: #3a1f1f;
  --gray-800: #2E2E2E;
  --gray-600: #83888D;
  --gray-400: #83888D;
  --gray-200: #E4E4E4;
  --gray-100: #F5F5F6;
  --white: #FFFFFF;
  --blue: #0096FF;
  --grisclaro: #c9c9c9;



  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --transition: .25s ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { margin: 0 0 16px; font-weight: 700; line-height: 1.25; color: var(--gray-900); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 16px; color: var(--gray-600); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--gray-400); color: var(--white); }
.section--dark h2, .section--dark h3, .section--dark p { color: var(--white); }
.section--dark p { color: #C9C9C9; }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red-dark); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--gray-200); color: var(--gray-900); background: transparent; }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: var(--white); background: transparent; }
.btn-outline-light:hover { border-color: var(--white); }


/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--white-200);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav__logo img { height: 46px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  position: relative;
  padding: 6px 0;
}
.nav__links a:hover, .nav__links a.active { color: var(--red); }
.nav__cta { margin-left: 10px; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--gray-900);
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--gray-200);
    display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; }
  .nav__cta { margin: 8px 0 0; }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--grisoscuro) 0%, #7c7c7c 60%, var(--gray-400) 130%);
  color: var(--white);
  padding: 110px 0 100px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: #D8D8D8; font-size: 1.15rem; max-width: 520px; }
.hero__actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.hero__image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.12);
}
.hero__panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 32px;
}
.hero__stat { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero__stat:last-child { border-bottom: none; }
.hero__stat strong { font-size: 1.6rem; color: var(--white); display: block; }
.hero__stat span { color: #C9C9C9; font-size: .85rem; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
}

/* ===== Cards / Grid ===== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.gap-steps-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 600px) {
  .gap-steps-grid { grid-template-columns: 1fr; }
}

/* "Qué hacemos": 4 tarjetas en cuadrícula 2x2 a la izquierda, foto a la derecha */
.quehacemos__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.quehacemos__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.quehacemos__image {
  border-radius: var(--radius);
  overflow: hidden;
}
.quehacemos__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}
@media (max-width: 900px) {
  .quehacemos__grid { grid-template-columns: 1fr; }
  .quehacemos__image img { min-height: 260px; }
}
@media (max-width: 560px) {
  .quehacemos__cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.card h3 { margin-bottom: 10px; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--gray-600); font-size: .93rem; }
.card ul li { margin-bottom: 6px; }

/* Value props / process steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 12px; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
}

/* "Qué problemas solucionamos": el texto va ENCIMA de la imagen, en su misma
   posición de siempre (arriba-izquierda). Se usa grid con las dos capas en
   la misma celda: la imagen define el alto (por su aspect-ratio) y el texto
   queda superpuesto sobre la zona clara de la izquierda de la foto. */
.problems-hero {
  display: grid;
  margin: 8px 0 48px;
}
.problems-hero__bg,
.problems-hero__text {
  grid-area: 1 / 1;
}
.problems-hero__bg {
  width: 100%;
  aspect-ratio: 1639 / 959;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.problems-hero__text {
  align-self: start;
  z-index: 1;
  padding-top: 6%;
  max-width: 46%;
}
@media (max-width: 640px) {
  /* En pantallas angostas no cabe toda la imagen a un tamaño legible.
     Se recorta hacia la derecha (donde está el texto de la imagen:
     Entendemos/Diseñamos/Implementamos/Generamos valor) y se le da
     una altura fija cómoda, en vez de achicarla hasta ser ilegible. */
  .problems-hero__bg {
    aspect-ratio: auto;
    height: 300px;
    background-size: cover;
    background-position: right center;
  }
  .problems-hero__text {
    max-width: 100%;
    padding-top: 20px;
    background: rgba(255,255,255,.9);
    align-self: end;
    padding: 12px 14px;
    border-radius: var(--radius);
  }
}

/* Logos strip */
.logos-strip { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: center; opacity: .85; }
.logos-strip span { font-weight: 700; color: var(--gray-400); font-size: 1rem; letter-spacing: .03em; border: 1px solid var(--gray-200); padding: 10px 18px; border-radius: 6px; }

/* Logos de clientes reales (página Nuestros clientes) */
.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}
.client-logos__item {
  display: flex; align-items: center; justify-content: center;
  height: 90px; padding: 16px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition), transform var(--transition);
}
.client-logos__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.client-logos__item img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* Tarjetas de presencia internacional */
.country-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.country-card {
  border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.country-card__head { display: flex; align-items: center; gap: 12px; }
.country-card__flag { width: 30px; height: 20px; border-radius: 3px; flex-shrink: 0; border: 1px solid var(--gray-200); }
.country-card__head h3 { margin: 0; font-size: 1.05rem; }
.country-card p { margin: 0; font-size: .9rem; }
.country-card__logo {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center; height: 60px;
}
.country-card__logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
@media (max-width: 760px) { .country-cards { grid-template-columns: 1fr; } }

/* Barra de estadísticas */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 32px 24px; margin-top: 48px;
}
.stats-bar__item { display: flex; align-items: center; gap: 14px; }
.stats-bar__icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; color: var(--red); flex-shrink: 0;
}
.stats-bar__num { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); display: block; line-height: 1.3; }
.stats-bar__label { font-size: .8rem; color: var(--gray-600); }
@media (max-width: 900px) { .stats-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-bar { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  background: var(--red);
  color: var(--white);
  border-radius: 10px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2, .cta-band p { color: var(--white); margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 6px; }

/* Breadcrumb / page header */
.page-hero {
  background: var(--gray-600);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 8px; }
.page-hero p { color: #C9C9C9; max-width: 620px; margin: 0; }

/* Forms */
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  background: var(--white);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--red);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* Table (used in servicios detail) */
.table-wrap { overflow-x: auto; }
table.plain { width: 100%; border-collapse: collapse; }
table.plain th, table.plain td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); text-align: left; font-size: .92rem; }
table.plain th { color: var(--gray-400); text-transform: uppercase; letter-spacing: .05em; font-size: .75rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--gray-900);
  color: #C9C9C9;
  padding: 64px 0 24px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; font-size: .9rem; }
.site-footer a:hover { color: var(--white); }
.footer__logo img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: .78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .03em;
}
.badge--red { background: rgba(155,8,8,.1); color: var(--red); }
