/* =========================================================
   ENTERPRISE DIGITAL SOLUTION — Brand Manual V1.0 · Ruta Cambio
   Implementación de identidad visual: color, tipografía y
   componentes. Ver /public/img/brand-*.png para el isotipo.
   ========================================================= */

/* ---- Fuentes autoalojadas (sin dependencias externas) ---- */
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('../fonts/sora-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('../fonts/chivo-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Chivo Mono';
  src: url('../fonts/chivo-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

/* ---- Tokens de color (manual, sección 05) ---- */
:root {
  --indigo: #241A5C;      /* Índigo Profundo — base, texto, fondos de marca */
  --coral: #FF6A4D;       /* Coral Señal — acento, CTA, destaques */
  --violeta: #4B3BA6;     /* gradientes, hover */
  --tinta: #14102E;       /* texto sobre claro */
  --gris: #8A86A3;        /* texto secundario */
  --lila: #F1EEFB;        /* fondo claro */
  --tarjeta: #FBFAFE;     /* superficies */
}

/* ---- Tipografía: Sora manda, Chivo Mono etiqueta, Inter explica ---- */
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--tinta);
  background: var(--lila);
}
h1, h2, h3, .brand-font {
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  color: var(--indigo);
}
.mono, .eyebrow, .stat .num, .svc-badge span {
  font-family: 'Chivo Mono', monospace;
}

/* ================= Overrides de color sobre clases ya usadas ================= */
/* (evita recompilar Tailwind; redirige la paleta azul/gris original a la del manual) */
.bg-white { background-color: var(--tarjeta) !important; }
.bg-gray-100 { background-color: var(--lila) !important; }
.bg-gray-900 { background-color: var(--indigo) !important; }
.text-gray-800, .text-gray-700 { color: var(--tinta) !important; }
.text-gray-600, .text-gray-500 { color: var(--gris) !important; }
.text-blue-700, .text-blue-600 { color: var(--indigo) !important; }
.bg-blue-400 { background-color: var(--violeta) !important; }
.bg-blue-600, .bg-blue-700 { background-color: var(--coral) !important; }
.hover\:bg-blue-700:hover { background-color: #e85a3d !important; }
.hover\:text-blue-600:hover, .hover\:text-blue-300:hover { color: var(--coral) !important; }
.hover\:text-blue-300 { color: var(--coral); }
.marker\:text-blue-600::marker { color: var(--coral) !important; }
.border-gray-300 { border-color: #d9d3ef !important; }
input, textarea {
  background-color: var(--tarjeta);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--coral) !important;
}

/* ---- Pill buttons ---- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 6px 16px rgba(255, 106, 77, 0.35);
}
.btn-pill:hover {
  background: #e85a3d;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(255, 106, 77, 0.45);
}
.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 2px solid var(--indigo);
  color: var(--indigo);
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn-pill-outline:hover {
  background: var(--indigo);
  color: #fff;
}

/* ---- Hero split layout ---- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.hero-blob {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-blob::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 30% 30%, #e3ddf9, #ff6a4d22);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  z-index: 0;
}
.hero-blob img {
  position: relative;
  z-index: 1;
  max-width: 260px;
}
.tagline {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--indigo);
}

/* ---- Stat strip ---- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.stat-strip .stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-left: 3px solid var(--coral);
}
.stat-strip .stat:first-child {
  border-left: none;
}
.stat-strip .stat .num {
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--indigo);
  display: block;
}
.stat-strip .stat .label {
  font-size: 0.85rem;
  color: var(--gris);
}

/* ---- Service cards ---- */
.svc-card {
  position: relative;
  background: var(--tarjeta);
  border-radius: 22px;
  padding: 2.6rem 1.6rem 1.8rem;
  box-shadow: 0 10px 30px rgba(36, 26, 92, 0.10);
  border: 1px solid #e9e4f7;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: visible;
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(36, 26, 92, 0.18);
}
.svc-card .svc-badge {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(255, 106, 77, 0.45);
}
.svc-card .svc-badge span {
  color: #fff;
  font-weight: 500;
  font-size: 1.05rem;
}
.svc-card img {
  border-radius: 14px;
}

/* ---- Section labels ---- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--coral);
  background: var(--lila);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(160deg, var(--indigo), #1c1548 75%);
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer h4 {
  color: #fff;
  font-family: 'Chivo Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.8rem;
  font-weight: 500;
}
.site-footer p, .site-footer a {
  color: #c7c2e0;
  font-size: 0.9rem;
}
.site-footer a:hover {
  color: var(--coral);
}
.site-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2rem;
  padding-top: 1.2rem;
  color: #9a94c2;
  font-size: 0.85rem;
}

/* ---- Contact info chips ---- */
.info-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.9rem 0;
}
.info-chip .icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lila);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ---- Logo sizing (kept out of Tailwind so it always applies) ---- */
.logo-header {
  width: 190px;
  height: auto;
}
.logo-footer {
  width: 168px;
  height: auto;
  margin-bottom: 0.75rem;
}
