/* GFM Consultores — estética inspirada en apple.com/la/iphone
   Primario: azul de marca. Neutros: grises Apple, negro y blanco. */

:root {
  --blue: #0b4fb3;          /* azul de marca (primario) */
  --blue-bright: #0071e3;   /* acciones / enlaces sobre claro */
  --blue-light: #2997ff;    /* acento sobre fondos oscuros */
  --blue-tint: #eaf2fe;     /* fondo suave azulado */
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --dark: #0a0d14;
  --dark-card: #161a23;
  --line: #d2d2d7;
  --whatsapp: #25d366;
  --radius: 28px;
  --radius-sm: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--font); line-height: 1.47; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
.shell { width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -80px; padding: 10px 14px; color: #fff; background: var(--blue-bright); border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header (barra translúcida) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.8); border-bottom: 1px solid rgba(0,0,0,.08); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.header-inner { width: min(1080px, calc(100% - 48px)); height: 52px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; object-fit: cover; border-radius: 8px; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(29,29,31,.8); text-decoration: none; font-size: .8rem; font-weight: 400; transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--ink); }
.main-nav .nav-cta { padding: 6px 14px; color: #fff; background: var(--blue-bright); border-radius: 980px; font-weight: 500; }
.main-nav .nav-cta:hover, .main-nav .nav-cta:focus-visible { color: #fff; background: #0077ed; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 6px auto; background: var(--ink); transition: .25s ease; }

/* ---------- Tipografía de sección ---------- */
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 1.05rem; font-weight: 600; letter-spacing: -.005em; }
.eyebrow.light { color: var(--blue-light); }
.section { padding-block: 120px; }
.section-heading { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-heading h2, .contact h2 { margin-bottom: 16px; font-size: clamp(2.3rem, 5.4vw, 3.5rem); font-weight: 700; line-height: 1.07; letter-spacing: -.03em; }
.section-heading > p:last-child { margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.4; }

/* ---------- Botones ---------- */
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 26px; border: 0; border-radius: 980px; font-family: inherit; font-size: 1.05rem; font-weight: 500; text-decoration: none; letter-spacing: -.01em; transition: background .2s ease, transform .2s ease; }
.button-primary { color: #fff; background: var(--blue-bright); }
.button-primary:hover { background: #0077ed; transform: scale(1.02); }
.link-more { color: var(--blue-bright); font-size: 1.15rem; text-decoration: none; letter-spacing: -.01em; }
.link-more::after { content: " \203A"; font-size: 1.3em; line-height: 1; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-actions, .contact-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero-content { padding-block: 84px 0; display: flex; flex-direction: column; align-items: center; }
.hero-copy { max-width: 1080px; }
.hero .eyebrow { font-size: 1.2rem; }
h1 { margin: 0 auto 22px; font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
h1 .line { display: block; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero-lead { max-width: 690px; margin: 0 auto 32px; color: var(--muted); font-size: clamp(1.15rem, 2.2vw, 1.45rem); line-height: 1.38; letter-spacing: -.015em; }
.hero-lead .hl { display: block; margin-top: 10px; color: var(--blue-bright); font-weight: 600; }
.hero-visual { position: relative; margin-top: 64px; width: 100%; display: grid; place-items: center; padding-bottom: 28px; }
.hero-glow { position: absolute; width: min(820px, 100%); aspect-ratio: 2 / 1; bottom: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,113,227,.26), rgba(0,113,227,0)); pointer-events: none; }
.hero-visual img { position: relative; width: clamp(180px, 26vw, 280px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22.5%; box-shadow: 0 30px 70px rgba(11,79,179,.35), 0 8px 20px rgba(0,0,0,.12); }
.hero-signature { position: relative; width: 100%; margin-top: 8px; padding: 26px 0 56px; display: grid; gap: 2px; color: var(--muted); font-size: .95rem; }
.hero-signature strong { color: var(--ink); font-size: 1.05rem; font-weight: 600; }

/* ---------- Desafíos ---------- */
.challenges { background: var(--bg-alt); }
.challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.challenge-card { padding: 36px 32px 40px; background: #fff; border-radius: var(--radius); transition: transform .3s ease, box-shadow .3s ease; }
.challenge-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.challenge-card span, .service-card > span { color: var(--blue-bright); font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.challenge-card h3 { margin: 12px 0 12px; font-size: 1.5rem; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.challenge-card p { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }

/* ---------- Perfil ---------- */
.profile { padding-block: 120px; display: grid; grid-template-columns: 1fr; gap: 20px; width: min(1080px, calc(100% - 48px)); margin-inline: auto; }
/* Perfil profesional: tarjeta destacada */
.profile-content { padding: 64px 56px; color: #fff; background: radial-gradient(120% 90% at 0% 0%, #1664d9 0%, var(--blue) 45%, #072f6b 100%); border-radius: var(--radius); box-shadow: 0 30px 70px rgba(11,79,179,.28); }
.profile-content .eyebrow { color: rgba(255,255,255,.8); }
.profile-content h2 { margin-bottom: 22px; font-weight: 700; line-height: 1.05; letter-spacing: -.035em; color: #fff; font-size: clamp(2.6rem, 6vw, 4.2rem); }
.profile-intro { max-width: 720px; margin-bottom: 0; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 1.45rem; line-height: 1.4; letter-spacing: -.018em; }
.profile-details { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding-block: 34px; }
.profile-details h3 { margin-bottom: 8px; color: #fff; font-size: 1.05rem; font-weight: 700; }
.profile-details ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.profile-details li { text-wrap: pretty; color: rgba(255,255,255,.88); font-size: 1rem; line-height: 1.45; }
.profile-details p { margin: 0; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.55; }
.profile-links a { display: inline-flex; padding: 9px 20px; color: var(--blue); background: #fff; border-radius: 980px; font-size: 1rem; font-weight: 500; text-decoration: none; transition: transform .2s ease; }
.profile-links a::after { content: " \203A"; margin-left: 6px; font-size: 1.3em; line-height: .95; }
.profile-links a:hover { transform: scale(1.03); }
/* Experiencia: franja horizontal bajo el perfil */
.profile-band { padding: 44px 56px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px 64px; color: var(--ink); background: var(--bg-alt); border-radius: var(--radius); }
.band-head .eyebrow.light { margin-bottom: 18px; color: var(--blue); }
.since { margin: 0; display: grid; gap: 2px; line-height: 1; }
.since span { color: var(--muted); font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; }
.since strong { margin-left: -.04em; font-size: clamp(3.8rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -.05em; line-height: .95; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.band-text { margin: 0; padding-left: 64px; border-left: 1px solid var(--line); max-width: 26ch; font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }

/* ---------- Servicios ---------- */
.services { background: var(--bg-alt); }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card { min-height: 280px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 40px 44px; position: relative; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
.service-card > span { font-size: clamp(3.2rem, 6vw, 4.6rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.service-card h3 { margin-bottom: 10px; font-size: 1.75rem; font-weight: 700; line-height: 1.12; letter-spacing: -.028em; }
.service-card p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.45; }

/* ---------- Metodologías (sección oscura) ---------- */
.methods { color: #f5f5f7; background: var(--dark); }
.section-heading.inverse h2 { color: #f5f5f7; }
.section-heading.inverse > p:last-child { color: #a1a1a6; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.method-card { padding: 36px 32px 40px; background: var(--dark-card); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); transition: transform .3s ease, border-color .3s ease; }
.method-card:hover { transform: translateY(-4px); border-color: rgba(41,151,255,.45); }
.method-card h3 { margin-bottom: 14px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; background: linear-gradient(90deg, #5fb0ff, var(--blue-light)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.method-card p { margin: 0; color: #a1a1a6; font-size: 1.1rem; line-height: 1.45; }

/* ---------- Referencias ---------- */
.references { background: var(--bg); }
.logo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.logo-grid div { min-height: 140px; display: grid; place-items: center; padding: 26px; background: var(--bg-alt); border-radius: var(--radius-sm); transition: transform .3s ease; }
.logo-grid div:hover { transform: scale(1.03); }
.logo-grid img { width: 100%; max-height: 76px; object-fit: contain; mix-blend-mode: multiply; }

/* ---------- Contacto ---------- */
.contact { padding-block: 24px 120px; background: var(--bg); }
.contact-grid { padding: 80px 72px; display: grid; grid-template-columns: 1fr 200px; align-items: center; gap: 64px; color: #fff; background: radial-gradient(110% 120% at 100% 0%, #1b6fe8 0%, var(--blue) 50%, #06306f 100%); border-radius: 36px; }
.contact h2 { color: #fff; text-wrap: balance; }
.contact p:not(.eyebrow) { max-width: 600px; margin-bottom: 0; color: rgba(255,255,255,.86); font-size: 1.3rem; line-height: 1.4; }
.contact .eyebrow.light { color: rgba(255,255,255,.8); }
.contact-actions { justify-content: flex-start; margin-top: 32px; }
.contact .button-primary { color: var(--blue); background: #fff; }
.contact .button-primary:hover { background: #f5f5f7; }
.contact-logo { width: 200px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22.5%; box-shadow: 0 24px 50px rgba(0,0,0,.3); }

/* ---------- Footer ---------- */
.site-footer { padding-block: 26px; color: var(--muted); background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { color: var(--ink); font-size: .85rem; }
.footer-brand img { width: 26px; height: 26px; object-fit: cover; border-radius: 7px; }
.site-footer p { margin: 0; font-size: .8rem; }

/* ---------- WhatsApp flotante ---------- */
.floating-whatsapp { position: fixed; z-index: 19; right: 22px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; display: grid; place-items: center; color: #fff; background: var(--whatsapp); border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.25); transition: transform .2s ease; }
.floating-whatsapp:hover { transform: translateY(-3px) scale(1.05); }
.floating-whatsapp svg { width: 30px; fill: currentColor; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 1; transform: none; }
.reveal-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal, .reveal-ready .reveal { opacity: 1; transform: none; transition: none; } * { transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .challenge-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .profile { grid-template-columns: 1fr; }
  .profile-band { grid-template-columns: 1fr; padding: 40px 36px; }
  .band-text { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); max-width: none; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 56px; }
  .shell { width: min(100% - 32px, 1080px); }
  .header-inner { width: calc(100% - 32px); }
  .nav-toggle { display: block; margin-right: -12px; }
  .main-nav { position: absolute; inset: 52px 0 auto 0; display: none; padding: 12px 24px 24px; background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,.08); }
  .main-nav .nav-cta { margin-top: 14px; padding: 12px; text-align: center; border-bottom: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-toggle span { margin: 3px auto; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .hero-content { padding-block: 56px 0; }
  .hero-visual { margin-top: 44px; }
  .hero-actions .button { width: 100%; max-width: 360px; }
  .section { padding-block: 80px; }
  .section-heading { margin-bottom: 40px; }
  .challenge-grid, .service-grid, .method-grid { grid-template-columns: 1fr; gap: 14px; }
  .challenge-card { padding: 28px 24px 30px; }
  .service-card { min-height: 0; padding: 32px 26px; gap: 22px; }
  .method-card { padding: 28px 24px 30px; }
  .profile { padding-block: 80px; width: calc(100% - 32px); gap: 14px; }
  .profile-band { padding: 32px 26px; }
  .profile-content { padding: 44px 26px; }
  .profile-intro { font-size: 1.15rem; }
  .profile-details { grid-template-columns: 1fr; gap: 24px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .logo-grid div { min-height: 108px; padding: 16px; }
  .contact { padding-bottom: 80px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 28px; border-radius: 28px; }
  .contact p:not(.eyebrow) { font-size: 1.1rem; }
  .contact-logo { width: 120px; order: -1; }
  .contact-actions { flex-direction: column; align-items: stretch; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 14px; }
  .floating-whatsapp { width: 52px; height: 52px; right: 14px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
