/* ============================================
   MUÑOZ & ACUÑA CONSULTORES — Design tokens
   Paleta extraída directamente del logo:
   azul institucional, verde montaña, lima de realce
   ============================================ */
:root {
  --blue-900: #0A3D6B;
  --blue-700: #0A5CA8;
  --blue-500: #1773B9;
  --green-700: #3E7A28;
  --green-500: #4F8F2E;
  --lime-300: #A3C676;
  --ink: #14232F;
  --ink-soft: #45566419;
  --slate: #52626E;
  --bg: #F7F9FB;
  --bg-panel: #FFFFFF;
  --line: #E1E7EC;
  --white: #FFFFFF;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(20, 35, 47, 0.08);
  --shadow-md: 0 8px 30px rgba(20, 35, 47, 0.10);
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--blue-900); }
p { margin: 0 0 1em; color: var(--slate); }
ul { padding: 0; list-style: none; margin: 0; }

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

:focus-visible {
  outline: 3px solid var(--lime-300);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-whatsapp {
  background: var(--green-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--green-700); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.btn-ghost:hover { background: var(--blue-700); color: var(--white); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-logo { width: 46px; height: 46px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-900); }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); font-weight: 600; }

.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.main-nav a:hover { color: var(--blue-700); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green-500); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta span { font-family: var(--font-mono); font-size: .88rem; }

.nav-toggle { display: none; background: none; border: 0; width: 34px; height: 26px; flex-direction: column; justify-content: space-between; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--blue-900); border-radius: 2px; }

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background: linear-gradient(180deg, #EFF4F8 0%, var(--bg) 100%);
}
.hero-peaks { position: absolute; inset: 0; opacity: 1; }
.hero-peaks svg { width: 100%; height: 100%; }
.peak-back { fill: #D7E6EE; }
.peak-front { fill: #C3DBE6; }
.hero-inner { position: relative; max-width: 720px; }
.boutique-tag {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--green-700);
  margin-bottom: 8px;
  line-height: 1.15;
}
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--green-700);
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: .4em;
}
.hero-lead { font-size: 1.02rem; max-width: 62ch; }
.hero-lead p { margin-bottom: .85em; }
.hero-lead p:last-child { margin-bottom: 0; }
.hero-lead-strong { font-weight: 700; color: var(--blue-900); font-size: 1.12rem; }

/* ===== SECTION HEADINGS ===== */
.section-eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--green-700);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 640px; }

/* ===== SERVICIOS ===== */
.servicios { padding: 96px 0; }
.panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.panel-index {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--lime-300);
  background: var(--blue-900);
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.panel-icon { width: 40px; height: 40px; color: var(--blue-700); margin-bottom: 16px; }
.panel h3 { font-size: 1.15rem; margin-bottom: .4em; }
.panel p { font-size: .93rem; margin-bottom: 0; }
.panel-list { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.panel-list li {
  padding-left: 18px;
  position: relative;
  color: var(--slate);
  font-size: .85rem;
  line-height: 1.4;
}
.panel-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}

/* ===== NOSOTROS ===== */
.nosotros { padding: 96px 0; background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: center;
}
.nosotros-text strong { color: var(--blue-900); font-weight: 600; }
.nosotros-list { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.nosotros-list li {
  padding-left: 26px;
  position: relative;
  color: var(--ink);
  font-size: .95rem;
}
.nosotros-list li::before {
  content: "";
  position: absolute; left: 0; top: 6px;
  width: 10px; height: 10px;
  background: var(--green-500);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.nosotros-graphic img { width: 100%; height: auto; border-radius: 50%; }

.colegiatura-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  color: var(--blue-900);
  font-weight: 600;
}
.colegiatura-badge svg { width: 16px; height: 16px; color: var(--green-500); flex-shrink: 0; }

.sectores-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); margin: 32px 0 6px; font-family: var(--font-mono); }
.sectores-hint { font-size: .82rem; color: var(--slate); margin-bottom: 12px; }
.sectores-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sector-chip { position: relative; }
.sector-btn {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.sector-btn:hover { border-color: var(--green-500); color: var(--green-700); }
@media (hover: hover) {
  .sector-chip:hover .sector-btn {
    background: var(--blue-900);
    border-color: var(--blue-900);
    color: var(--white);
  }
}
.sector-btn[aria-expanded="true"] {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--white);
}
.sector-bubble {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 30;
  width: 290px;
  max-width: 78vw;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
/* Se abre al pasar el cursor (equipos con mouse) */
@media (hover: hover) {
  .sector-chip:hover .sector-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}
/* Se abre al tocar (móvil) o al navegar con teclado */
.sector-btn[aria-expanded="true"] + .sector-bubble,
.sector-btn:focus-visible + .sector-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.sector-bubble::before {
  content: "";
  position: absolute;
  top: -7px; left: 22px;
  width: 12px; height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.sector-bubble::after {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.sector-bubble strong {
  display: block;
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--blue-900);
  margin-bottom: 6px;
}
.sector-bubble p { font-size: .86rem; margin-bottom: 0; line-height: 1.5; }

/* ===== EQUIPO ===== */
.equipo { padding: 0 0 96px; }
.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}
.equipo-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.equipo-card .equipo-role {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-700);
  display: block;
  margin-bottom: 6px;
}
.equipo-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.equipo-card p { font-size: .85rem; color: var(--slate); margin-bottom: 0; line-height: 1.5; }

/* ===== PREGUNTAS FRECUENTES ===== */
.faq { padding: 96px 0; background: var(--bg-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq-carousel { margin-top: 36px; max-width: 820px; }
.faq-viewport { overflow: hidden; }
.faq-track { display: flex; align-items: flex-start; transition: transform .35s ease; }
.faq-slide { flex: 0 0 100%; min-width: 100%; padding-right: 4px; }
.faq-slide-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--green-700);
  margin-bottom: 8px;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--green-500);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; font-size: .92rem; color: var(--slate); }
.faq-item p a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 2px; }
.faq-item p a:hover { color: var(--green-700); }
.faq-cta {
  font-weight: 600;
  color: var(--green-700) !important;
  font-size: .88rem !important;
  margin-top: 8px !important;
}
.faq-answer-list { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.faq-answer-list li {
  position: relative;
  padding-left: 18px;
  font-size: .92rem;
  color: var(--slate);
  line-height: 1.5;
}
.faq-answer-list li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}

.faq-nav { display: flex; align-items: center; gap: 16px; margin-top: 28px; }
.faq-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-700);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.faq-arrow svg { width: 20px; height: 20px; }
.faq-arrow:hover:not(:disabled) { background: var(--blue-700); border-color: var(--blue-700); color: var(--white); }
.faq-arrow:disabled { opacity: .35; cursor: default; }
.faq-counter { font-family: var(--font-mono); font-size: .85rem; color: var(--slate); }

/* ===== ANIMACIÓN DE ENTRADA ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== CIFRAS CLAVE ===== */
.cifras {
  background: var(--blue-900);
  padding: 40px 0;
}
.cifras-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.cifra { text-align: center; }
.cifra-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--lime-300);
  line-height: 1;
}
.cifra-label {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #C7D6E2;
}

/* ===== AFILIACIONES ===== */
.afiliaciones {
  padding: 56px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.afiliaciones-title {
  font-family: var(--font-mono);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--slate);
  text-align: center;
  margin-bottom: 22px;
}
.afiliaciones-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
}
.afiliaciones-list li {
  position: relative;
  font-size: .88rem;
  color: var(--blue-900);
  font-weight: 500;
  padding-left: 20px;
}
.afiliaciones-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 10px; height: 10px;
  background: var(--green-500);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ===== UBICACIÓN ===== */
.ubicacion { padding: 96px 0; }
.ubicacion-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: stretch;
}
.ubicacion-address { font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .25em; }
.ubicacion-ref { font-size: .88rem; color: var(--slate); }
.ubicacion-note { font-size: .92rem; }
.ubicacion-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.ubicacion-map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; box-shadow: var(--shadow-sm); }
.ubicacion-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

/* ===== CONTACTO ===== */
.contacto { padding: 96px 0 110px; background: var(--blue-900); text-align: center; }
.contacto .section-eyebrow { color: var(--lime-300); }
.contacto .section-title, .contacto-lead { color: var(--white); margin-left: auto; margin-right: auto; }
.contacto-lead { color: #C7D6E2; }
.contacto-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 40px;
}
.contacto-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  font-size: .88rem;
  transition: background .2s ease, transform .2s ease;
}
.contacto-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.contacto-card .icon { width: 26px; height: 26px; color: var(--lime-300); flex-shrink: 0; }
.contacto-card strong { font-size: .98rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--ink); color: #B9C4CD; }
.footer-inner { display: flex; align-items: center; gap: 32px; padding: 40px 24px 24px; flex-wrap: wrap; }
.footer-brand .brand-text strong { color: var(--white); }
.footer-nav { display: flex; gap: 22px; margin-right: auto; flex-wrap: wrap; }
.footer-nav a:hover { color: var(--white); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { border: 1px solid #33424D; padding: 6px 14px; border-radius: 999px; font-size: .82rem; }
.footer-social a:hover { border-color: var(--lime-300); color: var(--white); }
.footer-bottom { padding: 18px 24px 32px; border-top: 1px solid #253340; font-size: .8rem; }
.footer-bottom p { margin-bottom: .4em; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-contact { color: #8D9AA5; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: var(--green-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; color: var(--white); }
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-inner, .ubicacion-inner { grid-template-columns: 1fr; }
  .nosotros-graphic { max-width: 260px; margin: 0 auto; }
  .contacto-cards { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .cifras-inner { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
}
@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle { display: flex; }
  .header-cta span { display: none; }
  .header-cta { padding: 12px; }
  .panel-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
}
