/* ==========================================================================
   KMG & Asociados — Estudio Contable Jurídico
   Design system: paleta, tipografía y componentes aprobados
   ========================================================================== */

:root {
  /* Paleta */
  --ink: #1F1F1E;
  --ink-soft: #4A4A47;
  --ink-faint: #8A8985;
  --bg: #FFFFFF;
  --surface: #F7F7F5;
  --border: #E5E5E2;
  --accent: #FF710B;
  --accent-light: #FE841A;
  --accent-soft: rgba(255, 113, 11, 0.12);
  --dark: #141413;
  --dark-soft: #2B2B28;
  --whatsapp: #25D366;

  /* Tipografía */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --section-pad: clamp(48px, 8vw, 96px);
  --container: 1180px;

  /* Otros */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 19, 0.05);
  --shadow-md: 0 8px 24px rgba(20, 20, 19, 0.10);
  --shadow-accent: 0 8px 22px rgba(255, 113, 11, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 158px; /* deja lugar para el header/nav sticky al anclar */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

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

section { padding: var(--section-pad) 0; }
.section-surface { background: var(--surface); }
.section-dark { background: var(--dark); color: #fff; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1, h2, h3, h4 { font-weight: 700; margin: 0; color: var(--ink); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }

h1 { font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; }
h3 { font-size: 19px; }

p { color: var(--ink-soft); margin: 0; }

.lede {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 560px;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Focus visibility (accesibilidad) */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}

.logo { flex-shrink: 0; }
.logo img { height: 70px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}

.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--accent); }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-whatsapp:hover { opacity: 0.9; transform: translateY(-2px); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

/* ==========================================================================
   Botones y tarjetas genéricas
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: var(--shadow-accent); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: rgba(255,255,255,0.08); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); border: 1.5px solid var(--accent);
  font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: var(--radius-sm);
  cursor: pointer; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-outline:hover { background: var(--accent-soft); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.icon-accent { color: var(--accent); }

/* ==========================================================================
   Hero (Home)
   ========================================================================== */

.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  background: #1a140d;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center; /* mantiene visibles escritorio, monitores y sala */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 12, 8, 0.82) 0%,
    rgba(15, 12, 8, 0.62) 38%,
    rgba(15, 12, 8, 0.22) 68%,
    rgba(15, 12, 8, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 16px 0;
  transform: translateY(-100px);
}

.hero-content .eyebrow { margin-bottom: 16px; }
.hero-content h1 { color: #fff; margin-bottom: 26px; font-size: clamp(25px, 3.24vw, 36px); line-height: 1.35; }
.hero-content p { color: #E8E2D5; font-size: 16.5px; line-height: 1.8; }

/* ==========================================================================
   Grillas de tarjetas reutilizables
   ========================================================================== */

.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: 10px; }

.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Tarjetas de perfil de cliente (Home + inicio de Servicios) */
.profile-card {
  display: block;
  text-align: center;
  padding: 26px 14px;
  border-radius: var(--radius-md);
}
.profile-card i { font-size: 26px; }
.profile-card span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 12px;
}
.profile-card.is-quiet i { color: var(--ink-faint); }
.profile-card.is-active {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-accent);
  background: #fff;
}
.profile-card.is-quiet {
  background: var(--surface);
  border: 1px solid var(--border);
}
.profile-card.is-quiet:hover { border-color: var(--accent); }
.profile-card.is-quiet:hover i { color: var(--accent); }

/* Tarjetas de servicio */
.service-card { padding: 22px; }
.service-card i { font-size: 20px; display: inline-block; transition: transform 0.5s var(--ease); }
.service-card:hover i { transform: rotate(360deg); }
.service-card h3 { font-size: 14px; margin: 14px 0 6px; position: relative; display: inline-block; }
.service-card h3::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.service-card:hover h3::after { transform: scaleX(1); }
.service-card p { font-size: 13px; line-height: 1.55; margin-bottom: 14px; }
.service-card .link-arrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* Atributo simple (icono + texto) */
.attribute-card { text-align: center; padding: 22px 14px; }
.attribute-card i { font-size: 22px; }
.attribute-card h3 { font-size: 13px; margin-top: 12px; }
.attribute-card p { font-size: 12px; margin-top: 6px; }

/* Como trabajamos: pasos */
.steps { position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 10%; right: 10%;
  height: 1px;
  background: var(--border);
}
.step { text-align: center; position: relative; }
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.section-surface .step-num { background: var(--surface); }
.step h3 { font-size: 13px; margin-bottom: 4px; }
.step p { font-size: 12px; }

/* ==========================================================================
   Nosotros (bloque Home)
   ========================================================================== */

.about-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 20px; }
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); margin: 0; }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.about-preview img { border-radius: var(--radius-lg); width: 100%; height: auto; }

/* ==========================================================================
   CTA final oscuro
   ========================================================================== */

.cta-final { text-align: center; }
.cta-final h2 { max-width: 560px; margin: 0 auto 16px; }
.cta-final p { max-width: 460px; margin: 0 auto 30px; color: #C9C8C4; font-size: 15px; line-height: 1.6; }

/* CTA con fotografía institucional (Servicios) */
.cta-photo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.cta-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 45%; }
.cta-photo-content { position: relative; z-index: 2; padding: 48px; max-width: 380px; }
.cta-photo-content p { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 18px; text-shadow: 0 2px 14px rgba(0,0,0,0.5); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--dark); color: #fff; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer-grid .logo {
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.footer-grid .logo img { height: 56px; display: block; }
.footer-grid p { font-size: 13px; color: #8A8985; line-height: 1.7; }
.footer-grid h4 { font-size: 13px; color: #fff; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: 13px; color: #8A8985; line-height: 2.1; }
.footer-links li a:hover { color: var(--accent-light); }
.footer-bottom {
  border-top: 1px solid var(--dark-soft);
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #5F5E5A;
}

/* ==========================================================================
   Página Servicios
   ========================================================================== */

.search-box { max-width: 420px; margin: 0 auto 8px; position: relative; }
.search-box input {
  width: 100%;
  padding: 13px 16px 13px 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--ink);
}
.search-box i { position: absolute; left: 15px; top: 15px; color: var(--ink-faint); }

.profile-nav {
  position: sticky;
  top: 90px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.profile-nav .container { display: flex; gap: 12px; justify-content: center; overflow-x: auto; }
.profile-nav a {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--ink-faint);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--ease);
}
.profile-nav a:hover, .profile-nav a.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.profile-section { padding: var(--section-pad) 0; scroll-margin-top: 140px; }
.profile-section.is-surface { background: var(--surface); }

.qualifier-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin: 20px 0 32px;
  max-width: 620px;
}
.profile-section.is-surface .qualifier-box { background: #fff; }
.qualifier-box h4 { font-size: 13px; margin-bottom: 10px; }
.qualifier-box ul { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-soft); line-height: 2; }
.qualifier-box li::before { content: '✔ '; color: var(--accent); }

.specialization-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 14px;
}
.profile-intro-text { max-width: 640px; margin-bottom: 24px; line-height: 1.7; font-size: 14px; }

/* Acordeón */
.accordion-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.accordion-item[open] { border-color: var(--accent); }
.accordion-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-count { font-size: 12px; font-weight: 400; color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }
.accordion-item summary i { transition: transform 0.25s var(--ease); }
.accordion-item[open] summary i { transform: rotate(180deg); color: var(--accent); }
.accordion-body { padding: 0 20px 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.8; }

/* CTA de cierre por perfil (variantes) */
.profile-cta { border-radius: var(--radius-md); padding: 28px; text-align: center; max-width: 640px; }
.profile-cta.variant-dark { background: var(--ink); }
.profile-cta.variant-dark p { color: #fff; font-weight: 600; margin-bottom: 16px; }
.profile-cta.variant-outline { background: #fff; border: 1.5px solid var(--accent); }
.profile-cta.variant-outline p { color: var(--ink); font-weight: 600; margin-bottom: 16px; }

/* ==========================================================================
   Página "Perfil de clientes" — carrusel + ventana descriptiva
   ========================================================================== */

.profile-hero-section {
  min-height: calc(100vh - 90px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 0;
}
.profile-hero-section .container { min-width: 0; width: 100%; }

.profile-carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  min-width: 0;
  flex-wrap: wrap;
}
.profile-carousel-wrap > * { min-width: 0; }

.carousel-stage {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 320px;
  min-width: 0;
  flex-wrap: nowrap;
  position: relative;
}

.carousel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.45s var(--ease);
  flex-shrink: 0;
}
.carousel-card .icon-circle {
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.45s var(--ease);
}
.carousel-card span { font-weight: 700; color: var(--ink); transition: all 0.45s var(--ease); }

.carousel-card.is-side {
  width: 130px; padding: 20px 12px; gap: 12px;
  opacity: 0.72; filter: blur(0.5px); transform: scale(0.82);
}
.carousel-card.is-side .icon-circle { width: 56px; height: 56px; }
.carousel-card.is-side .icon-circle i { font-size: 24px; color: var(--ink-faint); }
.carousel-card.is-side span { font-size: 12.5px; }
.carousel-card.is-side:hover { opacity: 0.92; filter: blur(0); transform: scale(0.88); border-color: var(--accent); }

.carousel-card.is-center {
  width: 260px; padding: 34px 22px; gap: 18px;
  opacity: 1; filter: blur(0); transform: scale(1.12);
  border-color: var(--accent);
  z-index: 2;
  cursor: default;
  animation: centerGlow 2.6s ease-in-out infinite;
}
.carousel-card.is-center .icon-circle { width: 96px; height: 96px; background: var(--accent); }
.carousel-card.is-center .icon-circle i { font-size: 44px; color: #fff; }
.carousel-card.is-center span { font-size: 16.5px; }
@keyframes centerGlow {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(255, 113, 11, 0.28), 0 0 60px rgba(255, 113, 11, 0.18); }
  50% { box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgba(255, 113, 11, 0.4), 0 0 90px rgba(255, 113, 11, 0.32); }
}

.carousel-column { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.carousel-frame { position: relative; }
.carousel-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink); transition: all 0.2s var(--ease);
  z-index: 5;
}
.carousel-arrow-prev { left: -8px; }
.carousel-arrow-next { right: -8px; }
.carousel-arrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-50%) scale(1.08); }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: all 0.25s var(--ease); }
.carousel-dot.is-active { background: var(--accent); width: 22px; border-radius: 4px; }

/* ==========================================================================
   Panel de perfil — ventana igualada a la tarjeta central + pixel reveal
   ========================================================================== */

.profile-window-frame {
  flex: 1 1 auto;
  border-radius: var(--radius-lg);
  position: relative;
  align-self: center;
}
.profile-window {
  position: relative;
  z-index: 1;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 58px 38px;
  color: #fff;
  background: linear-gradient(-45deg, #FF9A4D, #FF710B, #D9560A, #FF8A3D);
  background-size: 300% 300%;
  animation: windowGradient 12s ease infinite;
}
@keyframes windowGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.profile-window-content {
  position: relative; z-index: 2; width: 100%; max-width: 340px;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.profile-window-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.profile-window-header .icon-badge {
  width: 26px; height: 26px; border-radius: 7px;
  background: rgba(0, 0, 0, 0.16);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.profile-window-header .icon-badge i { font-size: 13px; color: #fff; }
.profile-window-header h3 { font-size: 16px; color: #fff; letter-spacing: -0.2px; }

.kmg-block { position: relative; padding-left: 20px; margin-bottom: 8px; }
.kmg-block:last-child { margin-bottom: 0; }
.kmg-block::before {
  content: '';
  position: absolute; left: 0; top: 4px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
}
.kmg-block-label {
  display: block; font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; margin-bottom: 2px;
}
.kmg-block-text {
  font-size: 12.5px; line-height: 1.4; color: rgba(255,255,255,0.88);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kmg-panel-footnote {
  display: block; font-size: 10px; color: rgba(255,255,255,0.6);
  font-style: italic; margin-top: 8px; padding-left: 20px;
}

/* Cambio de página: transición contenida dentro del propio cuadro (overflow:hidden ya está en .profile-window) */
.profile-window-content.is-out-next { transform: translateX(-26px); opacity: 0; }
.profile-window-content.is-out-prev { transform: translateX(26px); opacity: 0; }

@media (max-width: 960px) {
  .profile-carousel-wrap { flex-direction: column; gap: 20px; }
  .profile-window-frame { width: 100%; }
}
@media (max-width: 720px) {
  .profile-hero-section { min-height: auto; padding: 36px 0; }
  .carousel-stage { min-height: 180px; gap: 6px; }
  .carousel-card.is-side { width: 62px; padding: 10px 6px; gap: 6px; }
  .carousel-arrow { width: 32px; height: 32px; }
  .carousel-arrow-prev { left: -4px; }
  .carousel-arrow-next { right: -4px; }
  .carousel-card.is-side .icon-circle { width: 32px; height: 32px; }
  .carousel-card.is-side .icon-circle i { font-size: 14px; }
  .carousel-card.is-side span { font-size: 8.5px; }
  .carousel-card.is-center { width: 128px; padding: 16px 10px; }
  .carousel-card.is-center .icon-circle { width: 52px; height: 52px; }
  .carousel-card.is-center .icon-circle i { font-size: 24px; }
  .carousel-card.is-center span { font-size: 11px; }
  .profile-window { padding: 26px 20px; }
  .profile-window-header { gap: 6px; margin-bottom: 6px; padding-bottom: 5px; }
  .profile-window-header .icon-badge { width: 20px; height: 20px; border-radius: 5px; }
  .profile-window-header .icon-badge i { font-size: 10px; }
  .profile-window-header h3 { font-size: 12.5px; }
  .kmg-block { padding-left: 15px; margin-bottom: 4px; }
  .kmg-block-label { font-size: 8px; margin-bottom: 1px; }
  .kmg-block-text { font-size: 10px; line-height: 1.25; -webkit-line-clamp: 1; }
  .kmg-panel-footnote { display: none; }
}


/* ==========================================================================
   Página Nosotros
   ========================================================================== */

.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-hero img { border-radius: var(--radius-lg); width: 100%; }
.about-hero .lede { font-size: 14px; margin-top: 16px; }

.trajectory-card { padding: 22px; }
.trajectory-card i { font-size: 20px; }
.trajectory-card h3 { font-size: 14px; margin: 12px 0 6px; }
.trajectory-card p { font-size: 12.5px; line-height: 1.55; }

/* ==========================================================================
   Página Contacto
   ========================================================================== */

.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: var(--font-main);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
}
.form-field textarea { resize: vertical; }
.form-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 12px;
}
.contact-info-card i { font-size: 20px; color: var(--accent); }
.contact-info-card small { display: block; font-size: 11px; color: var(--ink-faint); }
.contact-info-card strong { font-size: 14px; }

.map-placeholder {
  border-radius: var(--radius-md);
  background: #EAEAE6;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 40px;
}
.map-placeholder .pin { color: var(--accent); font-size: 28px; }
.map-note { text-align: center; font-size: 12px; color: var(--ink-faint); margin-top: 10px; }

/* ==========================================================================
   Animaciones de aparición al hacer scroll
   ========================================================================== */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Página Contacto — AUD-4 (rediseño conceptual)
   ========================================================================== */

.contact-hero { text-align: center; padding-bottom: 20px; }
.contact-hero h1 { margin-bottom: 16px; }
.contact-hero .lede { margin: 0 auto 30px; }
.contact-hero .cta-row { display: flex; gap: 14px; justify-content: center; align-items: center; }

.channels-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.channel-card { display: block; text-align: center; padding: 26px 16px; }
.channel-card i { font-size: 22px; display: inline-block; transition: transform 0.5s var(--ease); }
.channel-card:hover i { transform: rotate(360deg); }
.channel-card h3 { font-size: 13.5px; margin: 12px 0 4px; position: relative; display: inline-block; }
.channel-card h3::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.channel-card:hover h3::after { transform: scaleX(1); }
.channel-card p, .channel-card a { font-size: 12.5px; color: var(--ink-soft); }
.channel-card .mini-map { border-radius: var(--radius-sm); margin-top: 8px; }

.flow-steps { display: flex; align-items: flex-start; justify-content: center; max-width: 760px; margin: 0 auto; }
.flow-step { width: 190px; text-align: center; }
.flow-circle {
  width: 108px; height: 108px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-weight: 700; font-size: 26px; color: var(--accent);
}
.flow-step h3 { font-size: 14px; margin-bottom: 6px; }
.flow-step p { font-size: 12.5px; line-height: 1.5; }
.flow-arrow { flex: 0 0 56px; display: flex; align-items: center; justify-content: center; padding-top: 40px; color: var(--accent); font-size: 22px; }

@media (max-width: 720px) {
  .contact-hero .cta-row { flex-direction: column; align-items: center; }
  .channels-grid { grid-template-columns: 1fr 1fr; }
  .flow-steps { flex-direction: column; align-items: center; gap: 4px; }
  .flow-arrow { transform: rotate(90deg); padding: 0; }
  .flow-step { width: 220px; }
}


.about-photo-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1a140d;
}
.about-photo-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.about-photo-hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,12,8,0.80) 0%, rgba(15,12,8,0.55) 45%, rgba(15,12,8,0.15) 100%);
}
.about-photo-hero .container { position: relative; z-index: 2; }
.about-photo-hero h1 { color: #fff; max-width: 620px; margin-bottom: 18px; font-size: clamp(28px, 3.6vw, 42px); }
.about-photo-hero p { color: #E8E2D5; max-width: 500px; font-size: 15.5px; line-height: 1.7; }

.trust-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.trust-block img { border-radius: var(--radius-lg); width: 100%; height: 100%; object-fit: cover; }
.trust-block h2 { margin-bottom: 18px; }
.trust-block p.placeholder-copy { font-size: 14.5px; line-height: 1.8; color: var(--ink-soft); }

.placeholder-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.commitment-card {
  position: relative;
  text-align: center;
  padding: 30px 20px;
  overflow: visible;
  z-index: 0;
}
.commitment-card::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255,113,11,0.38), rgba(255,113,11,0) 72%);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.commitment-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 18px 44px rgba(255, 113, 11, 0.28);
  border-color: var(--accent);
}
.commitment-card:hover::before { opacity: 1; transform: scale(1.12); }
.commitment-card i { font-size: 26px; transition: transform 0.35s var(--ease); }
.commitment-card:hover i { transform: scale(1.15); }
.commitment-card h3 { font-size: 15px; margin: 16px 0 8px; }
.commitment-card p { font-size: 13px; line-height: 1.6; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team-card { text-align: center; }
.team-photo {
  width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-md);
  background: linear-gradient(160deg, #EAE3D6, #D8CDB8);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; overflow: hidden;
}
.team-photo i { font-size: 40px; color: #B8A87E; }
.team-card h3 { font-size: 16.5px; margin-bottom: 3px; }
.team-role { font-size: 12px; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.team-specialty { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 12px; }
.team-bio { font-size: 12px; line-height: 1.65; color: var(--ink-soft); margin-bottom: 12px; text-align: left; }
.team-quote { font-size: 12.5px; color: var(--ink-soft); font-style: italic; line-height: 1.6; }

.wheel { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1/1; margin: 0 auto; }
.wheel-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.wheel-ring circle.track { fill: none; stroke: var(--border); stroke-width: 1.4; }
.wheel-ring path.arrow { fill: var(--accent); }

.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40%; aspect-ratio: 1/1; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 10px;
  font-weight: 700; font-size: clamp(12px, 1.5vw, 15.5px); color: var(--ink);
  box-shadow: 0 8px 24px rgba(255, 113, 11, 0.12);
  z-index: 2;
}

.wheel-node {
  position: absolute; width: 30%; aspect-ratio: 1/1; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; padding: 8px; z-index: 2;
  box-shadow: var(--shadow-sm);
}
.wheel-node .wheel-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.wheel-node span { font-size: clamp(10px, 1.1vw, 12px); font-weight: 600; line-height: 1.3; }

.wheel-node[data-pos="top"] { top: 0; left: 50%; transform: translate(-50%, 0); }
.wheel-node[data-pos="right"] { top: 50%; right: 0; transform: translate(0, -50%); }
.wheel-node[data-pos="bottom"] { bottom: 0; left: 50%; transform: translate(-50%, 0); }
.wheel-node[data-pos="left"] { top: 50%; left: 0; transform: translate(0, -50%); }

.wheel-caption { text-align: center; font-size: 13.5px; color: var(--ink-soft); line-height: 1.7; max-width: 520px; margin: 32px auto 0; }
.wheel-caption i { color: var(--accent); margin-right: 6px; }

@media (max-width: 720px) {
  .wheel { max-width: 300px; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .wheel-ring { display: none; }
  .wheel-center, .wheel-node { position: static; transform: none !important; width: 150px; }
  .wheel-center { order: 0; margin-bottom: 6px; }
  .wheel-node[data-pos="top"] { order: 1; }
  .wheel-node[data-pos="right"] { order: 2; }
  .wheel-node[data-pos="bottom"] { order: 3; }
  .wheel-node[data-pos="left"] { order: 4; }
}

.conversemos { text-align: center; }
.conversemos h2 { margin-bottom: 14px; }
.conversemos p { max-width: 460px; margin: 0 auto 28px; color: #C9C8C4; font-size: 15px; line-height: 1.6; }

@media (max-width: 960px) {
  .trust-block { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}


.ecosystem-intro {
  background: var(--dark);
  color: #fff;
  padding: 88px 0 40px;
  text-align: center;
}
.ecosystem-intro h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  max-width: 640px;
  margin: 0 auto 18px;
}
.ecosystem-intro .lede { color: #C9C8C4; max-width: 560px; margin: 0 auto; font-size: 15px; }

.ecosystem-section {
  background: var(--dark);
  color: #fff;
  padding: 40px 0 96px;
}

.ecosystem {
  position: relative;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

.ecosystem-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ecosystem-lines path {
  fill: none;
  stroke: rgba(255, 113, 11, 0.22);
  stroke-width: 0.4;
  transition: stroke 0.35s var(--ease), stroke-width 0.35s var(--ease), opacity 0.35s var(--ease);
}
.ecosystem-lines path.is-lit { stroke: var(--accent); stroke-width: 0.7; opacity: 1; }
.ecosystem-lines path.is-dim { opacity: 0.25; }

.eco-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #262019, #0e0c09);
  border: 1px solid rgba(255, 113, 11, 0.35);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: clamp(14px, 1.8vw, 20px);
  z-index: 3;
  box-shadow: 0 0 40px rgba(255, 113, 11, 0.08);
}

.eco-node {
  position: absolute;
  width: 30%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #171310;
  border: 1px solid var(--dark-soft);
  color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  text-align: center;
  padding: 6px;
  cursor: pointer;
  font-family: var(--font-main);
  z-index: 2;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.eco-node i { font-size: clamp(16px, 2vw, 22px); color: var(--accent); }
.eco-node span { font-size: clamp(10px, 1.15vw, 12.5px); font-weight: 600; line-height: 1.25; }

.eco-node:hover, .eco-node:focus-visible, .eco-node.is-active {
  border-color: var(--accent);
  transform: scale(1.06);
  box-shadow: 0 0 30px rgba(255, 113, 11, 0.18);
}
.ecosystem.has-active .eco-node:not(.is-active) { opacity: 0.45; }

.eco-node[data-key="vision"] { top: 0; left: 50%; transform: translate(-50%, 0); }
.eco-node[data-key="conocimiento"] { top: 50%; left: 0; transform: translate(0, -50%); }
.eco-node[data-key="prevencion"] { top: 50%; right: 0; left: auto; transform: translate(0, -50%); }
.eco-node[data-key="acompanamiento"] { bottom: 0; top: auto; left: 50%; transform: translate(-50%, 0); }

.eco-node[data-key="vision"]:hover, .eco-node[data-key="vision"]:focus-visible, .eco-node[data-key="vision"].is-active { transform: translate(-50%, 0) scale(1.06); }
.eco-node[data-key="conocimiento"]:hover, .eco-node[data-key="conocimiento"]:focus-visible, .eco-node[data-key="conocimiento"].is-active { transform: translate(0, -50%) scale(1.06); }
.eco-node[data-key="prevencion"]:hover, .eco-node[data-key="prevencion"]:focus-visible, .eco-node[data-key="prevencion"].is-active { transform: translate(0, -50%) scale(1.06); }
.eco-node[data-key="acompanamiento"]:hover, .eco-node[data-key="acompanamiento"]:focus-visible, .eco-node[data-key="acompanamiento"].is-active { transform: translate(-50%, 0) scale(1.06); }

.eco-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  margin: 40px auto 0;
  color: #8A8985;
  font-size: 12.5px;
}
.eco-hint i { font-size: 18px; color: var(--accent); flex-shrink: 0; }

.eco-description {
  max-width: 560px;
  margin: 28px auto 0;
  text-align: center;
  min-height: 84px;
}
.eco-description h3 { color: var(--accent); font-size: 15px; margin-bottom: 10px; }
.eco-description p { color: #E5E3DD; font-size: 14.5px; line-height: 1.7; }

@media (max-width: 720px) {
  .ecosystem {
    max-width: 320px;
    aspect-ratio: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 8px 0;
  }
  .ecosystem-lines { display: none; }
  .eco-center, .eco-node {
    position: static;
    transform: none !important;
    width: 152px;
  }
  .eco-center { order: 0; margin-bottom: 4px; }
  .eco-node[data-key="vision"] { order: 1; }
  .eco-node[data-key="conocimiento"] { order: 2; }
  .eco-node[data-key="prevencion"] { order: 3; }
  .eco-node[data-key="acompanamiento"] { order: 4; }
  .ecosystem::before {
    content: '';
    position: absolute;
  }
}


/* ==========================================================================
   Responsive (general)
   ========================================================================== */

@media (max-width: 960px) {
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > :last-child { grid-column: span 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .about-preview, .about-hero, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .main-nav { position: fixed; top: 90px; left: 0; right: 0; background: #fff;
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 24px 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.2s var(--ease); }
  .main-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .site-header .container { gap: 12px; }
}

@media (max-width: 720px) {
  .btn-whatsapp span { display: none; }
  .btn-whatsapp { padding: 11px; }

  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 > :last-child { grid-column: span 2; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { padding: 48px 0; }
  .hero-bg { object-position: 72% center; }
  .contact-layout { gap: 32px; }
}
