/* ============ Reset básico ============ */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding-left: 1.1rem; }

/* ============ Variables de tema ============ */
:root {
  --bg: #F9FAFB;
  --surface: #FFFFFF;
  --surface-2: #F3F4F6;
  --text: #111827;
  --muted: #4B5563;
  --border: rgba(17,24,39,0.10);
  --shadow: 0 10px 30px rgba(17,24,39,0.08);
  --primary: #2563EB;
  --primary-2: #1D4ED8;
  --ring: rgba(37, 99, 235, 0.30);
}

html[data-theme="dark"] {
  --bg: #0F172A;
  --surface: #0B1220;
  --surface-2: #0A1020;
  --text: #E5E7EB;
  --muted: #9CA3AF;
  --border: rgba(229,231,235,0.10);
  --shadow: 0 14px 40px rgba(0,0,0,0.45);
  --primary: #3B82F6;
  --primary-2: #2563EB;
  --ring: rgba(59, 130, 246, 0.35);
}

body { background: var(--bg); color: var(--text); }

/* ============ Utilidades ============ */
.container { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--surface); border: 1px solid var(--border);
  padding: .6rem .8rem; border-radius: .75rem;
}
.skip-link:focus { left: 1rem; top: 1rem; outline: 3px solid var(--ring); }

/* ============ Header/Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249,250,251,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .site-header { background: rgba(15,23,42,0.65); }

.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0;
  gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.brand-name { letter-spacing: .2px; }

.nav { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.nav-link {
  padding: .45rem .6rem;
  border-radius: .75rem;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav-link:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.nav-link.is-active { color: var(--text); background: var(--surface); border-color: var(--border); }

.header-actions { display: flex; gap: .6rem; align-items: center; }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .55rem .9rem;
  border-radius: .9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  font-weight: 600;
}
.btn:focus { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  border-color: rgba(0,0,0,0.0);
  color: white;
}
.btn-primary:hover { filter: brightness(1.03); }
.btn-soft { background: var(--surface); }
.btn-soft:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }

.btn-outline {
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  background: var(--surface);
}
/* ============ Secciones ============ */
.section { padding: 3rem 0; }
.section-head { margin-bottom: 1.6rem; }
.section-head h1, .section-head h2 { margin: 0 0 .35rem; }
.section-head p { margin: 0; }

.hero { padding: 3.2rem 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 { font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1.12; margin: 0 0 .7rem; }
.hero-ctas { display: flex; gap: .8rem; margin: 1.2rem 0 1.6rem; flex-wrap: wrap; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.card h3, .card h2 { margin: 0 0 .4rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }

.hero-visual .visual-panel {
  background: radial-gradient(circle at 30% 30%, rgba(37,99,235,0.22), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(14,165,233,0.18), transparent 55%),
              var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  min-height: 360px;
  position: relative;
  overflow: hidden;
}
.visual-title { font-weight: 700; }
.visual-sub { color: var(--muted); margin-top: .25rem; }
.visual-orb {
  position: absolute;
  inset: auto -40px -60px auto;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.9), rgba(37,99,235,0.35) 45%, transparent 70%);
  filter: blur(0px);
  opacity: 0.9;
}

/* Strip KPIs */
.strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.35);
}
html[data-theme="dark"] .strip { background: rgba(2,6,23,0.25); }
.strip-grid {
  padding: 1.2rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.strip-item { padding: .6rem .8rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--border); }
.kpi { font-weight: 800; font-size: 1.25rem; }
.kpi-label { color: var(--muted); font-size: .95rem; }

/* Casos */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.case {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.case h3 { margin: 0 0 .35rem; }
.case p { margin: 0 0 .8rem; color: var(--muted); }

.pill-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.pill {
  font-size: .85rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
}

/* CTA band */
.cta-band {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.2rem;
  border-radius: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Páginas internas */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.checklist { margin: .6rem 0 0; color: var(--muted); }
.checklist li { margin: .25rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 1.2rem;
  background: rgba(255,255,255,0.35);
}
html[data-theme="dark"] .site-footer { background: rgba(2,6,23,0.25); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: .5rem 0 0; }
.footer-links li { margin: .25rem 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav { display: none; } /* Si quieres, luego te paso un menú móvil simple */
  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
/* LOGO */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.brand-logo {
  height: 42px;
  width: auto;
  display: block;
}

/* Ajustes responsive */
@media (max-width: 768px) {
  .brand-logo {
    height: 36px;
  }
}
.site-header {
  transition: box-shadow .2s ease, padding .2s ease, background .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

.header-row {
  transition: padding .2s ease;
}

.site-header.is-scrolled .header-row {
  padding: .65rem 0;
}

.brand-logo {
  transition: height .2s ease;
}

.site-header.is-scrolled .brand-logo {
  height: 38px;
}
/* HERO */
.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(
    circle at top right,
    rgba(225, 29, 72, 0.08),
    transparent 55%
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 52ch;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* IMAGEN */
.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 520px;
  margin-left: auto;
  display: block;
  filter: drop-shadow(0 30px 60px rgba(225, 29, 72, 0.35));
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image img {
    margin: 2rem auto 0;
    max-width: 420px;
  }

  .hero-actions {
    justify-content: center;
  }
}
/* ===== Nosotros: ajustes manteniendo el esquema del index ===== */

.hero--inner { padding: 3.2rem 0 2rem; }
.hero-grid--inner { gap: 2rem; }
.visual-panel--inner { min-height: 300px; }

.section-soft {
  background: rgba(255,255,255,0.22);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
html[data-theme="dark"] .section-soft { background: rgba(2,6,23,0.18); }

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: start;
}
.about-main p { color: var(--muted); margin: 0 0 .9rem; }
.about-main p strong { color: var(--text); }

.about-aside h3 { margin-top: 0; }
.about-badge {
  margin-top: 1rem;
  padding: .9rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}
.text-justify {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Centrar textos (solo contenido) */
.text-center {
  text-align: center;
}

/* Ajuste: listas, pills y botones centrados */
.text-center .hero-actions,
.text-center .pill-row {
  justify-content: center;
}

/* Cards centradas */
.card.text-center p,
.card.text-center h3 {
  text-align: center;
}
.form { margin-top: 1rem; }
.form-row { display: grid; gap: .4rem; margin-bottom: .9rem; }
.form-row label { font-weight: 600; font-size: .95rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
}
.form-row textarea { resize: vertical; }

.form-check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  margin: .6rem 0 1rem;
}
.form-check input { margin-top: .2rem; }