/* GLM Consultores · estilos principales */
:root {
  --carbon: #3a3c3e;
  --carbon-900: #232527;
  --gris: #5b5b5b;
  --gris-600: #6b6f73;
  --gris-300: #d9dcde;
  --gris-100: #f3f5f5;
  --teal: #7bbcb8;
  --teal-600: #4e9a95;
  --teal-700: #3c7f7a;
  --teal-50: #edf6f5;
  --blanco: #ffffff;
  --texto: #2b2d2f;
  --texto-suave: #5f6468;
  --radio: 16px;
  --sombra: 0 1px 2px rgba(20, 24, 26, .05), 0 8px 24px rgba(20, 24, 26, .06);
  --sombra-hover: 0 2px 4px rgba(20, 24, 26, .06), 0 18px 40px rgba(20, 24, 26, .10);
  --fuente-titulo: "Poppins", system-ui, sans-serif;
  --fuente: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--fuente);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fuente-titulo); line-height: 1.2; margin: 0; color: var(--carbon-900); letter-spacing: -.01em; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--carbon); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fuente-titulo); font-weight: 600; font-size: 16px;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer; white-space: nowrap;
}
.btn .i { width: 20px; height: 20px; }
.btn-sm { padding: 9px 20px; font-size: 15px; }
.btn-primary { background: var(--teal); color: var(--carbon-900); }
.btn-primary:hover { background: #8fcac6; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(123, 188, 184, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-dark { background: var(--carbon); color: #fff; }
.btn-dark:hover { background: var(--carbon-900); transform: translateY(-1px); }

/* Encabezado */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--gris-300); box-shadow: 0 4px 20px rgba(20, 24, 26, .05); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--texto-suave); transition: color .2s; }
.site-nav a:not(.btn):hover { color: var(--teal-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--carbon); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(123, 188, 184, .18), transparent 60%),
    linear-gradient(160deg, #3d3f42 0%, var(--carbon-900) 70%);
  color: #fff;
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
}
.hero-mark { position: absolute; right: -60px; top: 50%; width: min(560px, 60vw); transform: translateY(-50%); opacity: .09; pointer-events: none; }
.hero-mark path { fill: #fff; }
.hero-mark path.t { fill: var(--teal); opacity: 1; }
.hero-inner { position: relative; max-width: 1180px; }
.hero .eyebrow { color: var(--teal); }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); font-weight: 700; max-width: 15ch; margin-top: 14px; }
.hero h1 span { color: var(--teal); }
.lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .78); max-width: 58ch; margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-points { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255, 255, 255, .7); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 10px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); transform: rotate(45deg); }

/* Secciones */
.section { padding: clamp(72px, 9vw, 112px) 0; }
.section-alt { background: var(--gris-100); }
.eyebrow { font-family: var(--fuente-titulo); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700); }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-top: 10px; }
.section-head p:not(.eyebrow) { color: var(--texto-suave); margin-top: 14px; font-size: 18px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  background: var(--blanco); border: 1px solid var(--gris-300); border-radius: var(--radio);
  padding: 30px 28px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--sombra-hover); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-50); color: var(--teal-700); margin-bottom: 20px;
}
.service-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 19px; font-weight: 600; }
.service p { color: var(--texto-suave); margin-top: 10px; font-size: 15.5px; }
.services-cta {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--teal-50); border-radius: var(--radio); padding: 26px 30px;
}
.services-cta p { font-weight: 500; color: var(--carbon); }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.about-text h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin: 10px 0 20px; }
.about-text p:not(.eyebrow) { color: var(--texto-suave); margin-bottom: 14px; }
.about-cards { display: grid; gap: 20px; }
.mv { background: var(--blanco); border-radius: var(--radio); padding: 28px 30px; box-shadow: var(--sombra); border-left: 4px solid var(--teal); }
.mv h3 { font-size: 20px; margin-bottom: 8px; }
.mv p { color: var(--texto-suave); font-size: 16px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.value { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; border-top: 2px solid var(--gris-300); }
.value strong { font-family: var(--fuente-titulo); font-weight: 600; font-size: 18px; color: var(--carbon-900); }
.value span { color: var(--texto-suave); font-size: 15px; }

/* Pasos */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: paso; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radio); background: var(--blanco); border: 1px solid var(--gris-300); }
.step-n { font-family: var(--fuente-titulo); font-weight: 700; font-size: 34px; color: var(--teal); line-height: 1; }
.step h3 { font-size: 19px; margin: 14px 0 8px; }
.step p { color: var(--texto-suave); font-size: 15.5px; }

/* Aliados */
.allies { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.allies li {
  --tile: #fff;
  background: var(--tile); border-radius: 14px; aspect-ratio: 3 / 2;
  position: relative; overflow: hidden;
  border: 1px solid var(--gris-300); transition: transform .25s, box-shadow .25s;
}
.allies li.dark { border-color: transparent; }
.allies li.dark img { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.allies li:hover { transform: translateY(-3px); box-shadow: var(--sombra-hover); }
.allies img { position: absolute; inset: 18px 22px; width: calc(100% - 44px); height: calc(100% - 36px); object-fit: contain; }

/* Preguntas */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq details { border-bottom: 1px solid var(--gris-300); padding: 6px 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-family: var(--fuente-titulo); font-weight: 600; font-size: 18px; color: var(--carbon-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--teal-700); border-bottom: 2px solid var(--teal-700);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--texto-suave); padding: 0 0 20px; max-width: 60ch; }

/* Contacto */
.contact { padding: clamp(72px, 9vw, 112px) 0; background: linear-gradient(160deg, #3d3f42, var(--carbon-900)); color: #fff; }
.contact .section-head h2 { color: #fff; }
.contact .section-head p:not(.eyebrow) { color: rgba(255, 255, 255, .72); }
.contact .eyebrow { color: var(--teal); }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.channel {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px; padding: 32px 30px; transition: background .25s, border-color .25s, transform .25s;
  min-width: 0;
}
.channel:hover { background: rgba(255, 255, 255, .09); border-color: var(--teal); transform: translateY(-4px); }
.channel-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; }
.channel-icon svg { width: 28px; height: 28px; }
.channel-icon.wa { background: #25d366; }
.channel-icon.ig { background: linear-gradient(45deg, #f9a43a, #e1306c 50%, #833ab4); }
.channel-icon.mail { background: var(--teal-600); }
.channel-name { font-family: var(--fuente-titulo); font-weight: 600; font-size: 22px; }
.channel-detail { color: rgba(255, 255, 255, .75); overflow-wrap: anywhere; }
.channel-go { margin-top: 14px; color: var(--teal); font-weight: 600; font-size: 15px; }

/* Pie */
.site-footer { background: #1b1d1f; color: rgba(255, 255, 255, .7); padding: 56px 0 28px; font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--teal); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: #fff; transition: background .2s; }
.footer-social a:hover { background: var(--teal-600); }
.footer-social svg { width: 20px; height: 20px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 14px; color: rgba(255, 255, 255, .55); }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* Animación de entrada */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .allies { grid-template-columns: repeat(3, 1fr); }
  .about, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--gris-300); padding: 8px 20px 20px;
    box-shadow: 0 16px 30px rgba(20, 24, 26, .08);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--gris-100); font-size: 17px; }
  .site-nav .btn { margin-top: 14px; }
  .channels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .brand img { height: 40px; }
  .services, .steps { grid-template-columns: 1fr; }
  .allies { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .services-cta { padding: 22px; }
  .services-cta .btn { width: 100%; }
  .values { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
