/* =========================================================
   Felipe Lovera — Sistema de diseño
   Tipografía: Raleway · Paleta: la del logo real (azul + verde lima)
   Colores tomados de assets/images/logo.png — PENDIENTE: cuando se
   actualice el archivo maestro en la carpeta de Identidad de Marca,
   revisar que estos valores sigan coincidiendo.
   ========================================================= */

:root {
  --navy: #15181B;
  --navy-mid: #262B30;
  --navy-mid-2: #343B42;
  --navy-mid-3: #454D56;
  --blue-accent: #4A9ACA;
  --blue-accent-dark: #377397;
  --green: #B6C833;
  --green-dark: #6D781E;
  --green-light: #DCE596;
  --text: #404040;
  --text-secondary: #7F7F7F;
  --divider: #D9D9D9;
  --border: #BFBFBF;
  --bg-soft: #EEF3F8;
  --bg-tint: #EAF5FA;
  --white: #FFFFFF;

  --font: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
  --radius: 10px;
  --shadow-card: 0 12px 28px -18px rgba(21, 24, 27, 0.35);
}

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

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

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

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

h1, h2, h3, h4 { color: var(--navy); margin: 0; font-weight: 700; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--green);
  display: inline-block;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  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(--blue-accent-dark);
  color: var(--white);
  box-shadow: 0 10px 20px -8px rgba(74, 154, 202, 0.55);
}
.btn-primary:hover { background: var(--blue-accent); }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* ---------- Header ---------- */
.announce-bar {
  background: var(--green-dark);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}
.announce-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
  flex-wrap: wrap;
}
.announce-bar .btn {
  padding: 6px 16px;
  font-size: 13px;
  background: var(--navy);
  box-shadow: none;
}
.announce-bar .btn:hover { background: var(--navy-mid); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--divider);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.brand-text { font-size: 19px; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
.brand-text b { font-weight: 800; }
.brand-text span { color: var(--green-dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; transition: border-color .15s ease, color .15s ease; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { border-color: var(--green); }
.nav-links .nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
  border-bottom: 1px solid var(--divider);
  padding: 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 50px;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero h1 { font-size: 46px; line-height: 1.08; margin-bottom: 18px; }
.hero .lead { font-size: 19px; font-weight: 700; color: var(--navy-mid); margin-bottom: 16px; }
.hero p.body { font-size: 16px; color: var(--text); }
.hero .purpose {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}
.hero .purpose b { color: var(--navy); }
.hero .cta-row { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo-wrap {
  position: relative;
  justify-self: center;
}
.hero-photo-frame {
  position: relative;
  width: 100%;
  max-width: 360px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow-card);
}
.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: .96;
}
.hero-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 20px;
  pointer-events: none;
}
.dot-grid {
  position: absolute;
  width: 110px; height: 110px;
  background-image: radial-gradient(var(--navy-mid-3) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .35;
  z-index: 0;
}
.dot-grid.br { right: -30px; bottom: -30px; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--navy-mid-2);
  opacity: .5;
}

/* ---------- Page header (páginas internas) ---------- */
.page-header {
  background: var(--navy);
  background-image:
    radial-gradient(420px 220px at 90% 0%, rgba(182,200,51,.18), transparent 60%),
    radial-gradient(300px 300px at 100% 100%, rgba(74,154,202,.28), transparent 70%);
  color: var(--white);
  padding: 64px 0 56px;
}
.page-header .eyebrow { color: var(--green-light); }
.page-header .eyebrow::before { background: var(--green-light); }
.page-header h1 { color: var(--white); font-size: 38px; margin-bottom: 14px; }
.page-header p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 700px; }

/* ---------- Secciones generales ---------- */
section { padding: 72px 0; }
.section-tight { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; margin-bottom: 14px; }
.section-head p { color: var(--text-secondary); font-size: 16px; }

/* ---------- Trust / entidades ---------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
}
.trust span {
  font-weight: 700;
  color: var(--navy-mid);
  font-size: 15px;
  padding-left: 16px;
  position: relative;
}
.trust span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Cards grid (explora) ---------- */
.grid {
  display: grid;
  gap: 26px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--divider);
  border-top: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.card .icon-badge { margin-bottom: 6px; }
.card h3 { font-size: 19px; }
.card p { color: var(--text-secondary); font-size: 14.5px; flex-grow: 1; }
.card .card-link { font-weight: 700; color: var(--green-dark); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.card .card-link::after { content: "→"; transition: transform .15s ease; }
.card:hover .card-link::after { transform: translateX(4px); }

.card.navy {
  background: var(--navy);
  border-color: var(--navy);
}
.card.navy h3, .card.navy p { color: var(--white); }
.card.navy p { opacity: .85; }
.card.navy .card-link { color: var(--green-light); }

/* ---------- Icon badge (círculo verde) ---------- */
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.icon-badge svg { width: 22px; height: 22px; stroke: var(--white); fill: none; }
.icon-badge.num {
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  font-size: 16px;
}

/* ---------- Lista con check verdes ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before {
  content: "✓";
  color: var(--white);
  background: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  margin-top: 2px;
}

/* ---------- Servicios (consultoría) ---------- */
.service-card {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover { box-shadow: var(--shadow-card); border-color: var(--green-light); }
.service-card h3 { font-size: 17px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.service-card p { font-size: 14.5px; color: var(--text-secondary); margin: 0; }

/* ---------- Pasos numerados ---------- */
.steps { display: grid; gap: 0; }
.step {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--divider);
}
.step:last-child { border-bottom: none; }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.step h4 { font-size: 16.5px; margin-bottom: 4px; }
.step p { color: var(--text-secondary); font-size: 14.5px; }

/* ---------- Caja destacada (propósito / objetivo) ---------- */
.highlight-box {
  background: var(--bg-tint);
  border-left: 4px solid var(--green);
  border-radius: 0 10px 10px 0;
  padding: 22px 26px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(500px 260px at 15% 20%, rgba(182,200,51,.16), transparent 60%);
  color: var(--white);
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0 auto 28px; }
.cta-band .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contacto (hablemos) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow .18s ease, transform .18s ease;
}
.contact-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.contact-card .label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green-dark); margin-bottom: 3px; }
.contact-card .value { font-weight: 700; color: var(--navy); font-size: 16px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.85);
  padding: 56px 0 26px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr .85fr .85fr .85fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer-col .muted { color: rgba(255,255,255,.85); cursor: default; display: flex; align-items: center; gap: 8px; }
.badge-pending {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--divider);
  padding: 2px 7px;
  border-radius: 999px;
}
.footer-col .badge-soon {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.14);
  padding: 2px 7px;
  border-radius: 999px;
}
.footer-brand .brand-text { color: var(--white); }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: rgba(255,255,255,.7); max-width: 320px; }
.footer-col h4 { color: var(--white); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.footer-col a:hover { color: var(--green-light); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; }
.footer-contact-item .dot {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.footer-contact-item .dot svg { width: 15px; height: 15px; stroke: var(--white); fill: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .social { display: flex; gap: 14px; }
.footer-bottom .social a { color: rgba(255,255,255,.7); }
.footer-bottom .social a:hover { color: var(--green-light); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 26px -10px rgba(0,0,0,.4);
  z-index: 90;
  transition: transform .15s ease;
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 28px; height: 28px; fill: var(--white); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 40px; }
  .hero-photo-wrap { order: -1; }
  .hero-photo-frame { max-width: 260px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    height: 100vh;
    width: min(320px, 82vw);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 28px 28px;
    gap: 22px;
    box-shadow: -18px 0 40px rgba(0,0,0,.15);
    transition: right .25s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; }

  .hero .container { padding-top: 28px; padding-bottom: 32px; gap: 28px; }
  .hero-photo-frame { max-width: 190px; }
  .hero h1 { font-size: 30px; margin-bottom: 12px; }
  .hero .lead { font-size: 17px; margin-bottom: 12px; }
  .hero p.body { font-size: 15px; }
  .hero p.body + p.body { margin-top: -4px; }
  .hero .purpose { margin-top: 14px; padding: 14px 16px; font-size: 14px; }
  .hero .cta-row { margin-top: 20px; }
  .dot-grid, .ring { display: none; }

  .announce-bar .container { padding-top: 7px; padding-bottom: 7px; gap: 10px; }
  .announce-bar span { font-size: 13px; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .page-header { padding: 44px 0 36px; }
  .page-header h1 { font-size: 28px; }
  section { padding: 44px 0; }
  .section-tight { padding: 36px 0; }
  .cta-band { padding: 44px 0; }
  .card { padding: 24px 20px; }
  .grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
}

/* Acceso discreto a A2D2 (zona privada): se ve como el símbolo de copyright */
.zona-privada { color: inherit; text-decoration: none; cursor: default; }
.zona-privada:focus-visible { outline: 1px dotted currentColor; outline-offset: 2px; }
