/* ============================================
   HG Consulting — Estilos
   Paleta: navy #0b2c4c, azul #004b90, verde #3ea535, gris #d7d7d7, blanco #fff
   ============================================ */

:root {
  --navy: #0b2c4c;
  --blue: #004b90;
  --green: #3ea535;
  --gray: #d7d7d7;
  --white: #ffffff;

  --ink: #14202b;
  --muted: #5b6a76;
  --bg-soft: #eef1f5;
  --border: #dde3e8;

  /* Dark surfaces */
  --surface-dark: #0b2c4c;
  --surface-dark-2: #0e3459;
  --ink-on-dark: #ffffff;
  --muted-on-dark: #b7c4d1;
  --border-on-dark: rgba(255,255,255,0.14);

  --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 44, 76, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(11, 44, 76, 0.15);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .5em;
}

p { margin: 0 0 1em; color: var(--muted); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #359a2d; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-sm { padding: 10px 18px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11,44,76,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}

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

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 24px;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
.main-nav a:hover { border-color: var(--green); color: #fff; }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 108px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 88% 8%, rgba(62,165,53,0.20), transparent 42%),
    linear-gradient(100deg, rgba(11,44,76,0.96) 0%, rgba(11,44,76,0.93) 32%, rgba(11,44,76,0.72) 68%, rgba(11,44,76,0.55) 100%),
    url('../assets/photos/hero-boardroom.jpg');
  background-size: cover;
  background-position: center 32%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: #8fd487;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.eyebrow::before,
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.08rem;
  max-width: 52ch;
  color: rgba(255,255,255,0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 30px;
}

.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 0;
  margin: 0;
}
.hero-badges li {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 7px 14px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(11,44,76,0.55);
  backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.45);
  padding: 16px 18px;
  margin: 22px;
}
.hero-card-1 { margin-top: 40px; }
.hero-card-2 { margin-left: 60px; margin-top: 18px; }

.hero-card svg { color: var(--green); flex-shrink: 0; }
.hero-card strong { display: block; font-family: var(--font-head); color: #fff; font-size: 0.98rem; }
.hero-card span { font-size: 0.85rem; color: rgba(255,255,255,0.72); }

/* ---------- Section shared ---------- */
section { padding: 90px 0; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 0.82rem;
  margin-bottom: 10px;
}
.section-eyebrow-light { color: #8fd487; }

.section-lead {
  max-width: 62ch;
  font-size: 1.05rem;
}

section > .container > h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); max-width: 22ch; }

/* ---------- Valor (debajo del hero) ---------- */
.valor {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.valor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.valor-item { display: flex; flex-direction: column; }
.valor-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--blue), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.valor-item h3 { font-size: 1.04rem; margin-bottom: 6px; }
.valor-item p { margin: 0; font-size: 0.92rem; }

/* ---------- Servicios ---------- */
.servicios { background: var(--bg-soft); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(62,165,53,0.35);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--blue), var(--navy));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}
.service-card p { margin: 0; font-size: 0.95rem; }

/* ---------- Nosotros ---------- */
.nosotros {
  background: var(--surface-dark);
  color: #fff;
}
.nosotros h2 { color: #fff; }
.nosotros > .container > p,
.nosotros-copy > p { color: var(--muted-on-dark); }
.nosotros-tagline {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  margin: -6px 0 18px;
}
.promise-label {
  color: #fff !important;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 22px 0 12px;
}

.nosotros-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 400;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}
.check-list li strong { color: #fff; font-weight: 700; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, var(--blue), var(--green));
  transform: rotate(45deg);
  border-radius: 2px;
}

.credential-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.credential-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-on-dark);
  padding: 9px 16px;
  border-radius: 999px;
}
.credential-chip svg { color: var(--green); flex-shrink: 0; }

.nosotros-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.nosotros-gallery figure {
  margin: 0;
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 32px -16px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.1);
}
.nosotros-gallery-wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9 !important;
}
.nosotros-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.nosotros-gallery figure:hover img { transform: scale(1.05); }

/* ---------- Brand strip (fotos reales) ---------- */
.brand-strip {
  background: var(--bg-soft);
  padding: 28px 0;
}
.brand-strip-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.brand-photo {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
}
.brand-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.brand-photo:hover img { transform: scale(1.04); }

/* ---------- Socios ---------- */
.socios { background: var(--bg-soft); }
.socios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
  max-width: 760px;
}

.socio-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.socio-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--navy), var(--blue));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.socio-card h3 { margin-bottom: 2px; }
.socio-rol {
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 14px;
}
.socio-card p { font-size: 0.94rem; text-align: left; }
.socio-card p:last-child { margin-bottom: 0; }

/* ---------- Contacto ---------- */
.contacto {
  background: linear-gradient(165deg, var(--navy), #0e355c 60%, var(--blue));
  color: #fff;
}
.contacto h2 { color: #fff; }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-methods {
  display: grid;
  gap: 14px;
  margin: 30px 0 32px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: background .15s ease;
}
a.contact-method:hover { background: rgba(255,255,255,0.12); }

.contact-method-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-method strong { display: block; font-family: var(--font-head); font-size: 0.95rem; }
.contact-method span { font-size: 0.88rem; color: rgba(255,255,255,0.75); }

.hours-table h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 14px;
}
.hours-table ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hours-table li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.hours-table li span:first-child { font-weight: 600; color: #fff; }

.contacto-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
  background: #0e355c;
}
.contacto-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #081f36;
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo { height: 34px; width: auto; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--green); }
.footer-copy {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
  margin: 10px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; order: -1; }
  .nosotros-inner { grid-template-columns: 1fr; }
  .nosotros-gallery { order: -1; }
  .contacto-inner { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .valor-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm span.label { display: none; }

  section { padding: 64px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .brand-strip-inner { grid-template-columns: 1fr; }
  .valor-grid { grid-template-columns: 1fr; gap: 24px; }
  .socios-grid { grid-template-columns: 1fr; max-width: none; }
  .footer-inner { justify-content: center; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 72px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .brand-logo { height: 34px; }
}
