/* =========================================================
   GRUPO ILK — Hoja de estilos principal
   -----------------------------------------------------------
   Paleta de color: definida como variables en :root, extraída
   directamente del logo oficial (assets/logos/ilk/ilk-icon.jpg
   y ilk-logo-full.png). Para ajustarla en el futuro, basta con
   cambiar los valores de esta sección.
   ========================================================= */

:root {
  /* Paleta principal — extraída directamente del logo de Grupo ILK
     (anillos azul / verde-lima / gris + texto "ILK" en azul marino) */
  --c-navy-900: #061c35;
  --c-navy-800: #0c3d78; /* azul marino exacto del texto "ILK" del logo */
  --c-navy-700: #124f97;
  --c-navy-600: #1a63b8;
  --c-blue-600: #0e94dd; /* azul exacto del anillo del logo */
  --c-blue-500: #33a8e8;
  --c-blue-100: #e5f4fc;

  --c-accent: #cde106; /* verde-lima exacto del anillo del logo */
  --c-accent-dark: #6f7d00;
  --c-gray-500: #959595; /* gris exacto del anillo del logo */

  --c-text: #1b2733;
  --c-text-soft: #52606d;
  --c-text-muted: #7c8a97;

  --c-bg: #ffffff;
  --c-bg-alt: #f5f7fa;
  --c-bg-dark: var(--c-navy-800);

  --c-border: #e3e8ee;
  --c-border-dark: #1d3a56;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 45px rgba(10, 37, 64, 0.16);

  --container: 1180px;
  --header-h: 76px;

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

/* ---------- Reset básico ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; color: var(--c-navy-800); }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--c-text-soft); }

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

.section { padding: 88px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark {
  background: linear-gradient(160deg, var(--c-navy-900), var(--c-navy-800));
  color: #dce7f2;
}
.section--dark h2, .section--dark h3 { color: #ffffff; }
.section--dark p { color: #b7c6d6; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-blue-600);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: var(--c-blue-500); }

.lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-blue-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--c-blue-500); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--c-navy-800);
  border-color: var(--c-border);
}
.btn--outline:hover { border-color: var(--c-blue-600); color: var(--c-blue-600); }
.section--dark .btn--outline,
.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--dark .btn--outline:hover,
.hero .btn--outline:hover { border-color: #fff; color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- Header / navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--c-border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-navy-800);
  letter-spacing: -0.01em;
}
.brand img { height: 38px; width: auto; }
.brand .brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--c-text-muted);
  letter-spacing: 0.03em;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-desktop a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--c-text-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-desktop a:hover { color: var(--c-navy-800); background: var(--c-bg-alt); }
.nav-desktop a.active { color: var(--c-blue-600); background: var(--c-blue-100); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-navy-800);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-h));
  background: #fff;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 16px 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-navy-800);
  border-bottom: 1px solid var(--c-border);
}
.nav-mobile a.active { color: var(--c-blue-600); }
.nav-mobile .btn { margin-top: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 100px;
  background: linear-gradient(160deg, var(--c-navy-900) 0%, var(--c-navy-800) 55%, var(--c-navy-700) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    radial-gradient(600px circle at 85% 15%, rgba(47, 143, 234, 0.28), transparent 60%),
    radial-gradient(500px circle at 10% 90%, rgba(205, 225, 6, 0.14), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 780px; }
.hero .eyebrow { color: var(--c-blue-500); }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { color: #cfdcea; }
.hero .lead { font-size: 1.2rem; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.hero-note {
  margin-top: 20px;
  color: #9fb3c8;
  font-size: 0.95rem;
  font-style: italic;
  border-left: 3px solid var(--c-blue-500);
  padding-left: 16px;
}

.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(160deg, var(--c-navy-900), var(--c-navy-800));
  color: #fff;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #cfdcea; max-width: 700px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}
.stat span { color: #9fb3c8; font-size: 0.88rem; }

/* ---------- Grids / Tarjetas ---------- */
.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); }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-blue-600); }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--c-blue-100);
  color: var(--c-blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 10px; color: var(--c-navy-800); }
.card p:last-child { margin-bottom: 0; }
.card p { font-size: 0.96rem; color: var(--c-text-soft); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-blue-600);
}

/* ---------- Servicios (detalle) ---------- */
.service-block {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--c-border);
}
.service-block:last-child { border-bottom: none; }
.service-block .icon-badge { margin-bottom: 0; width: 56px; height: 56px; }
.service-block h3 { font-size: 1.35rem; margin-bottom: 12px; }

/* ---------- Timeline (forma de trabajar) ---------- */
.timeline {
  display: grid;
  gap: 20px;
  counter-reset: step;
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  padding-bottom: 8px;
}
.timeline-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-blue-600);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-item::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -20px;
  width: 2px;
  background: var(--c-border);
}
.timeline-item:last-child::after { display: none; }
.timeline-item h3 { margin-bottom: 6px; font-size: 1.1rem; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Experiencia (casos) ---------- */
.case-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-blue-600);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.case-card h3 { margin-bottom: 10px; color: var(--c-navy-800); }
.case-card p { color: var(--c-text-soft); }
.case-card p:last-child { margin-bottom: 0; }

/* ---------- Productos ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.product-logo {
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
}
.product-card .product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card h3 { margin: 0; font-size: 1.3rem; color: var(--c-navy-800); }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge--live { background: #e6f6ec; color: #1c8a4b; }
.badge--soon { background: #f4f7d6; color: var(--c-accent-dark); }
.product-card .domain { color: var(--c-blue-600); font-weight: 700; font-size: 0.95rem; }
.product-card p { flex-grow: 1; color: var(--c-text-soft); }

/* ---------- Por qué / lista de checks ---------- */
.check-list { display: grid; gap: 18px; }
.check-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.check-item .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 40px; height: 40px; }
.check-item .icon-badge svg { width: 20px; height: 20px; }
.check-item h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--c-navy-800); }
.check-item p { margin-bottom: 0; font-size: 0.94rem; color: var(--c-text-soft); }

/* ---------- Cita / valores ---------- */
.pull-quote {
  border-left: 4px solid var(--c-accent);
  padding: 8px 0 8px 28px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-navy-800);
  margin: 40px 0;
}
.section--dark .pull-quote { color: #fff; border-left-color: var(--c-blue-500); }

/* ---------- Contacto ---------- */
.contact-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.contact-card .icon-badge { margin-bottom: 16px; }
.contact-card h3 { margin-bottom: 4px; color: var(--c-navy-800); }
.contact-card .city { color: var(--c-text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.contact-card .phone {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-navy-800);
}
.contact-card .phone a { color: inherit; }
.contact-card .phone a:hover { color: var(--c-blue-600); }

.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--c-blue-100);
  color: var(--c-navy-800);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- CTA final ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--c-blue-600), var(--c-navy-800));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #dfeaf6; margin-bottom: 0; }
.cta-band .btn--primary { background: #fff; color: var(--c-navy-800); }
.cta-band .btn--primary:hover { background: var(--c-blue-100); }
.cta-band .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.cta-band .btn--outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.12);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy-900);
  color: #b7c6d6;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--c-border-dark);
}
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #93a6b8; margin-top: 14px; font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a, .footer-col span { color: #93a6b8; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #7c8fa2;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-w-prose { max-width: 720px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 760px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn--primary.header-cta { display: none; }

  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .service-block { grid-template-columns: 56px 1fr; gap: 16px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
