/* ==========================================================================
   CAPACITARECUADOR S.A.S. — hoja de estilos unica del sitio publico.
   Todas las paginas (index, nosotros, servicios, galeria, blog, contacto)
   comparten este archivo; no hay CSS incrustado en el HTML.

   Orden: tokens · base · utilidades · cabecera · portada · secciones ·
   componentes por pagina · pie · responsive.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens de diseno
   Paleta tomada del logo: azul institucional, verde y dorado. Cada color
   tiene tono base + variantes claras/oscuras para estados y superficies.
   -------------------------------------------------------------------------- */
:root {
  --navy-900: #0d1734;
  --navy-800: #132043;
  --navy: #1b2a5b;
  --navy-600: #27386f;
  --navy-050: #eef1f8;

  --green: #2e9e5b;
  --green-600: #26874d;
  --green-050: #eaf6ef;

  --gold: #f5a623;
  --gold-600: #dd9110;
  --gold-050: #fef5e6;

  --ink: #171b26;
  --muted: #5a6273;
  --line: #e5e8f0;
  --bg: #ffffff;
  --bg-alt: #f6f7fb;

  /* Alias semanticos */
  --primary: var(--navy);
  --secondary: var(--green);
  --accent: var(--gold);

  /* Tipografia fluida */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;

  --fs-hero: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem);
  --fs-h1: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem);
  --fs-h2: clamp(1.8rem, 1.35rem + 1.7vw, 2.6rem);
  --fs-h3: clamp(1.12rem, 1.02rem + 0.4vw, 1.32rem);
  --fs-lead: clamp(1.02rem, 0.97rem + 0.28vw, 1.16rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.78rem;

  /* Ritmo vertical y anchos */
  --sp-section: clamp(64px, 7vw, 108px);
  --sp-gap: clamp(20px, 2.2vw, 30px);
  --container: 1200px;
  --gutter: clamp(18px, 4vw, 32px);

  /* Formas y sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgb(13 23 52 / 0.05), 0 2px 6px rgb(13 23 52 / 0.04);
  --sh-md: 0 6px 16px rgb(13 23 52 / 0.07), 0 14px 34px rgb(13 23 52 / 0.06);
  --sh-lg: 0 18px 48px rgb(13 23 52 / 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: rgb(245 166 35 / 0.3);
}

/* Salto al contenido para lectores de pantalla y teclado */
.skip-link {
  position: absolute;
  top: -200%;
  left: 12px;
  z-index: 9999;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
}

/* Etiqueta visible solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Utilidades de maquetacion
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec {
  padding-block: var(--sp-section);
}
.sec--alt {
  background: var(--bg-alt);
}
.sec--tight {
  padding-block: clamp(48px, 5vw, 76px);
}

.sec-head {
  max-width: 720px;
  margin: 0 auto clamp(38px, 4vw, 58px);
  text-align: center;
}
.sec-head h2 {
  font-size: var(--fs-h2);
  color: var(--navy);
}
.sec-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--fs-lead);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.eyebrow--light {
  color: var(--gold);
}
.eyebrow--center {
  justify-content: center;
}

.divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgb(27 42 91 / 0.16),
    transparent
  );
}

/* Rejilla auto-ajustable: se adapta sin depender de breakpoints fijos. */
.grid-auto {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 260px), 1fr));
}

/* --------------------------------------------------------------------------
   4. Botones
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.btn .material-icons {
  font-size: 19px;
}
.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}
.btn-primary:hover {
  background: var(--gold-600);
  box-shadow: 0 12px 26px rgb(245 166 35 / 0.34);
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-dark:hover {
  background: var(--navy-800);
  box-shadow: 0 12px 26px rgb(27 42 91 / 0.28);
}

.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover {
  background: var(--green-600);
  box-shadow: 0 12px 26px rgb(46 158 91 / 0.28);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.55);
}
.btn-outline:hover {
  background: #fff;
  color: var(--navy);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--navy);
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   5. Cabecera y navegacion
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease),
    padding 0.35s var(--ease);
}
.header--top {
  background: linear-gradient(rgb(13 23 52 / 0.55), rgb(13 23 52 / 0));
  padding-block: 10px;
}
.header--solid {
  background: rgb(255 255 255 / 0.94);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 1px 0 var(--line), 0 8px 28px rgb(13 23 52 / 0.07);
  padding-block: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin-inline: auto;
  padding: 10px var(--gutter);
}

/* El logotipo es un PNG de tinta oscura: necesita fondo claro siempre. */
.nav-logo img {
  height: 54px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 5px 10px;
  box-shadow: var(--sh-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  list-style: none;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: 0.96rem;
  font-weight: 500;
  color: #fff;
  transition: color 0.25s var(--ease);
}
.header--solid .nav-links a {
  color: var(--navy);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-links a[aria-current="page"] {
  font-weight: 700;
}

.nav-cta {
  display: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  line-height: 0;
  padding: 6px;
  border-radius: var(--r-sm);
}
.header--solid .hamburger {
  color: var(--navy);
}
.hamburger .material-icons {
  font-size: 32px;
}

/* --------------------------------------------------------------------------
   6. Portada (inicio) y cabeceras de pagina interna
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 860px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 60px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      110deg,
      rgb(13 23 52 / 0.9) 0%,
      rgb(19 32 67 / 0.74) 45%,
      rgb(27 42 91 / 0.52) 100%
    ),
    radial-gradient(120% 90% at 80% 10%, rgb(245 166 35 / 0.18), transparent 60%);
}
.hero-content {
  position: relative;
  max-width: 840px;
}
.hero h1 {
  font-size: var(--fs-hero);
  color: #fff;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}
.hero p {
  max-width: 600px;
  margin: 22px 0 34px;
  font-size: var(--fs-lead);
  color: rgb(255 255 255 / 0.88);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  color: rgb(255 255 255 / 0.75);
  font-size: var(--fs-sm);
}
.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-note .material-icons {
  font-size: 18px;
  color: var(--green);
}

/* Entrada escalonada del contenido de la portada */
.hero .eyebrow,
.hero h1,
.hero p,
.hero-cta,
.hero-note {
  animation: rise 0.9s var(--ease) both;
}
.hero h1 {
  animation-delay: 0.08s;
}
.hero p {
  animation-delay: 0.18s;
}
.hero-cta {
  animation-delay: 0.28s;
}
.hero-note {
  animation-delay: 0.38s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Cabecera de las paginas internas */
.pbanner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 44vh, 440px);
  padding-block: calc(var(--header-h) + 30px) 40px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.pbanner-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
}
.pbanner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgb(13 23 52 / 0.85), rgb(27 42 91 / 0.78));
}
.pbanner h1 {
  font-size: var(--fs-h1);
  color: #fff;
}
.crumb {
  margin-top: 14px;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.8);
}
.crumb a {
  color: var(--gold);
}
.crumb a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. Franja de cifras
   -------------------------------------------------------------------------- */
.stats {
  position: relative;
  background: var(--navy);
  padding-block: clamp(48px, 5vw, 72px);
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 0.17) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
}
.stats-grid {
  position: relative;
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .lbl {
  margin-top: 6px;
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.82);
}

/* --------------------------------------------------------------------------
   8. Tarjetas genericas (escuelas, valores, pasos)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.card h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.card p {
  color: var(--muted);
  font-size: var(--fs-sm);
}
.card .more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  /* auto: pega el enlace al fondo aunque las tarjetas tengan textos de
     distinto largo, para que queden alineados entre sí. */
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.25s var(--ease);
}
.card .more:hover {
  gap: 12px;
}
.card .more .material-icons {
  font-size: 16px;
}

/* Icono hexagonal reutilizado en tarjetas y bloques de contacto */
.ic-hex {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  background: var(--green-050);
  color: var(--green);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.ic-hex .material-icons {
  font-size: 28px;
}

/* --------------------------------------------------------------------------
   9. Bloque "sobre nosotros" del inicio
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.about-img img {
  width: 100%;
  height: clamp(340px, 46vw, 500px);
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.about-img:hover img {
  transform: scale(1.04);
}
.about-img::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: calc(var(--r-lg) - 6px);
  pointer-events: none;
}
.about-txt h2 {
  margin-bottom: 16px;
  font-size: var(--fs-h2);
  color: var(--navy);
}
.about-txt p {
  color: var(--muted);
}
.about-list {
  margin: 22px 0 30px;
  list-style: none;
  display: grid;
  gap: 12px;
}
.about-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-list .material-icons {
  color: var(--green);
  font-size: 21px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   10. Testimonios
   -------------------------------------------------------------------------- */
.tcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.tcard:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.tstars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
  color: var(--gold);
}
.tstars .material-icons {
  font-size: 19px;
}
.tcard blockquote {
  flex: 1;
  margin-bottom: 22px;
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
}
.tuser {
  display: flex;
  align-items: center;
  gap: 14px;
}
.tuser img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-050);
}
.tuser strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy);
}
.tuser span {
  font-size: var(--fs-xs);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   11. Cierre con llamada a la accion
   -------------------------------------------------------------------------- */
.cta-final {
  position: relative;
  padding-block: clamp(72px, 8vw, 108px);
  text-align: center;
  background: var(--navy);
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(245 166 35 / 0.22) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.45;
}
.cta-final .inner {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}
.cta-final h2 {
  margin-bottom: 16px;
  font-size: var(--fs-h2);
  color: #fff;
}
.cta-final p {
  margin: 0 auto 32px;
  color: rgb(255 255 255 / 0.85);
  font-size: var(--fs-lead);
}
.cta-final .btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.cta-final--soft {
  background: var(--bg-alt);
}
.cta-final--soft::before {
  background-image: radial-gradient(rgb(27 42 91 / 0.12) 1px, transparent 1px);
}
.cta-final--soft h2 {
  color: var(--navy);
}
.cta-final--soft p {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   12. Nosotros: mision/vision, trayectoria, equipo, valores
   -------------------------------------------------------------------------- */
.mv {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.mvcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(30px, 3.4vw, 44px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.mvcard:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.mvcard h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.6rem);
  color: var(--navy);
}
.mvcard p {
  color: var(--muted);
}

.timeline {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
  padding-left: 8px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--green), var(--gold));
}
.titem {
  position: relative;
  padding-left: 74px;
  padding-bottom: 40px;
}
.titem:last-child {
  padding-bottom: 0;
}
.tdot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--gold);
}
.tyear {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
}
.titem h3 {
  margin: 4px 0 8px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.titem p {
  color: var(--muted);
}

.team {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.tm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.tm:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}
.tm-img {
  aspect-ratio: 5 / 5.4;
  overflow: hidden;
}
.tm-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tm:hover .tm-img img {
  transform: scale(1.05);
}
.tm-b {
  padding: 22px 18px 26px;
}
.tm-b h3 {
  font-size: 1.15rem;
  color: var(--navy);
}
.tm-b .role {
  margin: 4px 0 10px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
}
.tm-b p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

.val {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.val:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.val > .material-icons {
  font-size: 34px;
  color: var(--gold);
  margin-bottom: 12px;
}
.val h3 {
  margin-bottom: 8px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.val p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Servicios: filtros, tarjetas de curso, proceso
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.fbtn {
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.fbtn:hover {
  color: var(--navy);
  border-color: var(--navy);
}
.fbtn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.sgrid {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.scard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.scard.is-hidden {
  display: none;
}
.scard:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.scard-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.scard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.scard:hover .scard-img img {
  transform: scale(1.05);
}
.scard-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgb(27 42 91 / 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.scard-b {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 24px 28px;
}
.scard-b h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.scard-b > p {
  margin-bottom: 18px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.sfeat {
  margin-bottom: 20px;
  list-style: none;
  display: grid;
  gap: 8px;
}
.sfeat li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
}
.sfeat .material-icons {
  font-size: 17px;
  color: var(--green);
}
.sprice {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.sprice small {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}
.scard .btn {
  margin-top: auto;
}

.proc {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: paso;
}
.pstep {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 24px;
  text-align: center;
  counter-increment: paso;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.pstep:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
}
.pstep::before {
  content: "0" counter(paso);
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(245 166 35 / 0.32);
}
.pstep h3 {
  margin: 8px 0 10px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.pstep p {
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   14. Galeria y visor
   -------------------------------------------------------------------------- */
.ggrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.gitem {
  position: relative;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
}
.gitem.is-hidden {
  display: none;
}
.gitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gitem:hover img {
  transform: scale(1.07);
}
.gov {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 16px;
  background: linear-gradient(rgb(13 23 52 / 0.1), rgb(13 23 52 / 0.72));
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gitem:hover .gov,
.gitem:focus-visible .gov {
  opacity: 1;
}
.gov .material-icons {
  font-size: 38px;
}
.gov span:last-child {
  font-size: var(--fs-sm);
  font-weight: 500;
}

.lb {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}
.lb::backdrop {
  background: rgb(9 14 32 / 0.92);
  backdrop-filter: blur(6px);
}
.lb-wrap {
  position: relative;
  display: grid;
  place-items: center;
}
.lb-wrap img {
  max-width: min(92vw, 1100px);
  max-height: 80vh;
  border-radius: var(--r-md);
  object-fit: contain;
}
.lb-cap {
  margin-top: 14px;
  color: rgb(255 255 255 / 0.85);
  font-size: var(--fs-sm);
  text-align: center;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.16);
  color: #fff;
  transition: background 0.25s var(--ease);
}
.lb-btn:hover {
  background: var(--gold);
  color: var(--navy-900);
}
.lb-prev {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-next {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}
.lb-close {
  top: -60px;
  right: 0;
}

.counter {
  position: relative;
  padding-block: clamp(52px, 6vw, 76px);
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}
.counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(245 166 35 / 0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}
.counter .n {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem);
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.counter .l {
  position: relative;
  color: rgb(255 255 255 / 0.85);
}

/* --------------------------------------------------------------------------
   15. Blog
   -------------------------------------------------------------------------- */
.blayout {
  display: grid;
  gap: clamp(30px, 4vw, 46px);
  grid-template-columns: minmax(0, 2.4fr) minmax(260px, 1fr);
  align-items: start;
}
.bgrid {
  display: grid;
  gap: var(--sp-gap);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.bcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.bcard:hover {
  transform: translateY(-6px);
  border-color: rgb(245 166 35 / 0.55);
  box-shadow: var(--sh-md);
}
.bcard-img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.bcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.bcard:hover .bcard-img img {
  transform: scale(1.05);
}
.btag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.bcard-b {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px 22px 26px;
}
.bmeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin-bottom: 10px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.bmeta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bmeta .material-icons {
  font-size: 15px;
  color: var(--gold);
}
.bcard-b h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.bcard-b p {
  flex: 1;
  margin-bottom: 16px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.bmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.25s var(--ease);
}
.bmore:hover {
  gap: 12px;
}
.bmore .material-icons {
  font-size: 17px;
}

.sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.sidebar aside {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 22px;
}
.sidebar h4 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy);
}
.sidebar ul {
  list-style: none;
}
.sidebar li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.sidebar li:last-child {
  border-bottom: none;
}
.sidebar li a {
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.sidebar li a:hover {
  color: var(--green);
}
.news p {
  margin-bottom: 14px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.news input {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: var(--fs-sm);
}
.news input:focus {
  outline: none;
  border-color: var(--gold);
}
.form-note {
  margin-top: 10px;
  font-size: var(--fs-sm);
  color: var(--green);
}
.form-note[data-state="error"] {
  color: #c0392b;
}

/* Articulo del blog (ruta /blog/[slug]) */
.article {
  max-width: 780px;
  margin-inline: auto;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--green);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 22px;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.article-meta .tag {
  padding: 5px 13px;
  border-radius: var(--r-pill);
  background: var(--green-050);
  color: var(--green-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.article-hero {
  margin-bottom: 30px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.article-body {
  font-size: 1.06rem;
  color: #2b3141;
}
.article-body > * + * {
  margin-top: 20px;
}
.article-body h2 {
  margin-top: 38px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  color: var(--navy);
}
.article-body h3 {
  margin-top: 30px;
  font-size: var(--fs-h3);
  color: var(--navy);
}
.article-body ul,
.article-body ol {
  padding-left: 22px;
  display: grid;
  gap: 10px;
}
.article-body blockquote {
  padding: 18px 24px;
  border-left: 3px solid var(--gold);
  background: var(--gold-050);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-style: italic;
}
.article-body img {
  border-radius: var(--r-md);
}
.article-cta {
  margin-top: 44px;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.article-cta h3 {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
}
.article-cta p {
  margin-bottom: 22px;
  color: rgb(255 255 255 / 0.84);
}

/* --------------------------------------------------------------------------
   16. Contacto: formulario, datos, preguntas frecuentes
   -------------------------------------------------------------------------- */
.cgrid {
  display: grid;
  gap: clamp(30px, 4vw, 50px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}
.cform {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: var(--sh-sm);
}
.cform h2 {
  margin-bottom: 8px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  color: var(--navy);
}
.cform > p {
  margin-bottom: 24px;
  color: var(--muted);
}
.fg {
  margin-bottom: 18px;
}
.fg label {
  display: block;
  margin-bottom: 7px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--navy);
}
.fg input,
.fg select,
.fg textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 0.96rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(27 42 91 / 0.12);
}
.fg textarea {
  min-height: 140px;
  resize: vertical;
}
.formok {
  display: none;
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid var(--green);
  border-radius: var(--r-sm);
  background: var(--green-050);
  color: var(--green-600);
  font-size: var(--fs-sm);
}
.formok[data-state="error"] {
  border-color: #e0b4b4;
  background: #fdf0f0;
  color: #c0392b;
}
.formok.is-visible {
  display: block;
}

.cinfo h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  color: var(--navy);
}
.citem {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.25s var(--ease);
}
.citem:hover {
  padding-left: 6px;
}
.citem .ic-hex {
  width: 46px;
  height: 46px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.citem .ic-hex .material-icons {
  font-size: 21px;
}
.citem h3 {
  font-size: 1.05rem;
  color: var(--navy);
}
.citem p,
.citem a {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.citem a:hover {
  color: var(--green);
}
.mapwrap {
  margin-top: 26px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}
.mapwrap iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

.faq-list {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--navy);
  transition: color 0.25s var(--ease);
}
.faq-q:hover {
  color: var(--green);
}
.faq-q .material-icons {
  color: var(--gold);
  transition: transform 0.35s var(--ease);
}
.faq-q[aria-expanded="true"] .material-icons {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-a p {
  padding: 0 24px 20px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Pie de pagina y boton flotante
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.72);
  padding-top: clamp(56px, 6vw, 80px);
}
.fgrid {
  display: grid;
  gap: clamp(28px, 3.4vw, 44px);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.fcol--brand {
  grid-column: span 1;
  min-width: 240px;
}
.fcol img {
  height: 58px;
  width: auto;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
}
.fcol p {
  font-size: var(--fs-sm);
  margin-bottom: 18px;
}
.fcol h4 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}
.fcol ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.fcol ul a {
  font-size: var(--fs-sm);
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.fcol ul a:hover {
  color: var(--gold);
  padding-left: 5px;
}
.fcontact li {
  display: flex;
  gap: 11px;
  font-size: var(--fs-sm);
}
.fcontact .material-icons {
  font-size: 19px;
  color: var(--gold);
  flex-shrink: 0;
}
.fsocial {
  display: flex;
  gap: 10px;
}
.fsocial a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.09);
  color: #fff;
  font-size: 1.05rem;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.fsocial a:hover {
  background: var(--green);
  transform: translateY(-3px);
}
.fbottom {
  margin-top: clamp(40px, 5vw, 56px);
  padding-block: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  text-align: center;
  font-size: var(--fs-xs);
}
.fbottom a {
  color: var(--gold);
}

.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgb(37 211 102 / 0.4);
  animation: pulse-wa 2.4s infinite;
}
.wa:hover {
  transform: scale(1.06);
}
@keyframes pulse-wa {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgb(37 211 102 / 0.5);
  }
  50% {
    box-shadow: 0 0 0 16px rgb(37 211 102 / 0);
  }
}

/* --------------------------------------------------------------------------
   18. Animacion de aparicion al hacer scroll
   -------------------------------------------------------------------------- */
/* Se oculta SOLO si hay JavaScript (la clase .js la pone un script en el
   <head>). Sin JS -o si data.js falla- el contenido queda visible en vez de
   desaparecer, que es lo que pasaría con .reveal{opacity:0} a secas. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Estado vacio (si una seccion aun no tiene contenido cargado) */
.empty-note {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

/* --------------------------------------------------------------------------
   19. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .blayout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
}

@media (max-width: 940px) {
  :root {
    --header-h: 74px;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    position: fixed;
    inset: 0 -100% 0 auto;
    width: min(80%, 330px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: var(--navy);
    transition: right 0.4s var(--ease);
    overscroll-behavior: contain;
  }
  .nav-links.is-open {
    right: 0;
  }
  .nav-links a,
  .header--solid .nav-links a {
    color: #fff;
    font-size: 1.12rem;
  }
  .nav-scrim {
    position: fixed;
    inset: 0;
    background: rgb(9 14 32 / 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  .nav-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 560px) {
  .nav-logo img {
    height: 46px;
  }
  .btn {
    padding: 13px 22px;
  }
  .lb-close {
    top: -52px;
  }
  .lb-btn {
    width: 42px;
    height: 42px;
  }
}

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

@media print {
  .header,
  .wa,
  .hero-cta,
  .cta-final {
    display: none !important;
  }
}
