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

:root {
  --red: #9B0808;
  --red-dark: #7A0606;
  --red-light: #C41E1E;
  --gray-900: #222222;
  --gray-800: #2E2E2E;
  --gray-600: #545454;
  --gray-400: #83888D;
  --gray-200: #E4E4E4;
  --gray-100: #F5F5F6;
  --white: #FFFFFF;

  --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-900); 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); 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(--gray-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(--gray-900) 0%, #3a1010 60%, var(--red-dark) 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__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); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { 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(4, 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;
}

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

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