
/* ===== base/tokens.css ===== */
:root {
  --bg: #f3f5f9;
  --bg-soft: #eef2f8;
  --card: #ffffff;
  --text: #17202d;
  --muted: #5d6778;
  --primary: #1e3a68;
  --primary-dark: #142947;
  --primary-soft: #dfe7f5;
  --accent: #b08d57;
  --accent-soft: #f3ede3;
  --line: #d6deea;
  --line-strong: #c5cfdd;
  --shadow: 0 20px 45px rgba(18, 31, 56, 0.10);
  --shadow-soft: 0 10px 28px rgba(18, 31, 56, 0.08);
  --radius: 22px;
  --max: 1140px;

  /* tipografía */
  --lh-tight: 1.05;
  --lh-title: 1.12;
  --lh-body: 1.65;
  --lh-body-compact: 1.4;

  --fs-body: 1rem;
  --fs-body-compact: 0.98rem;
  --fs-small: 0.92rem;
  --fs-title-sm: 1.35rem;
  --fs-title-md: 1.7rem;
  --fs-title-lg: 2.4rem;
}

/* ===== base/reset.css ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== base/layout.css ===== */
body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #f8fafd 0%, #f3f5f9 100%);
  color: var(--text);
  line-height: 1.5;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

section {
  padding: 26px 0;
}

/* ===== base/typography.css ===== */
h1,
h2,
h3,
h4 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.03em;
  color: var(--primary-dark);
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  margin-bottom: 18px;
}

h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 16px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 820px;
}

/* ===== base/utilities.css ===== */
/* ===============================
   SPACING
=============================== */

/* margin */
.mt-1 { margin-top: 6px; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }

.mb-1 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 12px; }
.mb-3 { margin-bottom: 18px; }
.mb-4 { margin-bottom: 26px; }

/* padding */
.p-1 { padding: 6px; }
.p-2 { padding: 12px; }
.p-3 { padding: 18px; }
.p-4 { padding: 26px; }


/* ===============================
   FLEX
=============================== */

.flex { display: flex; }
.inline-flex { display: inline-flex; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap { flex-wrap: wrap; }

.gap-1 { gap: 6px; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 18px; }


/* ===============================
   TEXT
=============================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.text-strong { color: var(--primary-dark); }

.small { font-size: 0.9rem; }
.bold { font-weight: 700; }


/* ===============================
   WIDTH / LAYOUT
=============================== */

.w-full { width: 100%; }
.max-w-sm { max-width: 420px; }
.max-w-md { max-width: 680px; }
.max-w-lg { max-width: 900px; }

.mx-auto { margin-left: auto; margin-right: auto; }


/* ===============================
   DISPLAY
=============================== */

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }


/* ===============================
   BORDER / SHADOW
=============================== */

.rounded-sm { border-radius: 10px; }
.rounded-md { border-radius: 16px; }
.rounded-lg { border-radius: var(--radius); }

.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow { box-shadow: var(--shadow); }


/* ===============================
   BACKGROUND
=============================== */

.bg-white { background: #fff; }
.bg-soft { background: var(--bg-soft); }
.bg-primary-soft { background: var(--primary-soft); }


/* ===============================
   POSITION
=============================== */

.relative { position: relative; }
.absolute { position: absolute; }

.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-10 { z-index: 10; }


/* ===============================
   CURSOR / INTERACTION
=============================== */

.pointer { cursor: pointer; }

.transition {
  transition: 0.25s ease;
}

.hover-up:hover {
  transform: translateY(-3px);
}

/* ===== components/buttons.css ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn i {
  font-size: 0.95rem;
  line-height: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #274a82 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--primary-dark);
}

/* ===== components/cards.css ===== */
.card {
  background: var(--card);
  border: 1px solid rgba(214, 222, 234, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}

.card p {
  color: var(--muted);
  line-height: var(--lh-body-compact);
}

/* ===== components/grids.css ===== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* ===== components/topbar.css ===== */
/* ===============================
   TOPBAR
=============================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(243, 245, 249, 0.92);
  border-bottom: 1px solid rgba(197, 207, 221, 0.85);
  box-shadow: 0 6px 18px rgba(20, 41, 71, 0.04);
}

/* contenedor interno */
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

/* ===============================
   BRAND
=============================== */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

/* texto marca */
.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.brand-copy span {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.2;
}

/* ===============================
   NAV
=============================== */

.nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.96rem;
  position: relative;
  transition: 0.2s ease;
  text-decoration: none;
}

/* hover elegante */
.nav a:hover {
  color: var(--primary);
}

/* subrayado animado */
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* ===============================
   CTA (opcional)
=============================== */

.nav-cta {
  margin-left: 10px;
}

.nav-cta a {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.nav-cta a:hover {
  background: var(--primary-dark);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 12px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }
}

/* ===== components/footer.css ===== */
/* ===============================
   FOOTER
=============================== */

footer {
  padding: 32px 0 46px;
}


/* contenedor principal */
.footer-card {
  background: #132845;
  color: #d9e4f4;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}


/* bloque de texto */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-brand strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-brand span {
  font-size: 0.92rem;
  color: #c6d3e8;
  line-height: 1.4;
}


/* links / acciones */
.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.25s ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}


/* línea inferior */
.footer-bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #9fb2cc;
  text-align: center;
}

/* ===== components/whatsapp.css ===== */
/* ===============================
   WHATSAPP FLOATING BUTTON
=============================== */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  min-height: 58px;
  padding: 0 18px;
  border-radius: 999px;

  background: #25d366;
  color: #ffffff;
  text-decoration: none;

  box-shadow: 0 18px 34px rgba(37, 211, 102, 0.28);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.whatsapp-float:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 40px rgba(37, 211, 102, 0.34);
}

.whatsapp-float:active {
  transform: translateY(0) scale(0.98);
}

.whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.22);
  outline-offset: 4px;
}

.whatsapp-float__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 28px;
  height: 28px;
  font-size: 1.45rem;
  line-height: 1;
  flex-shrink: 0;
}

.whatsapp-float__text {
  font-family: "Inter", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

/* ===============================
   DESKTOP: SOLO ICONO
=============================== */

@media (min-width: 861px) {
  .whatsapp-float {
    width: 64px;
    height: 64px;
    min-height: 64px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float__icon {
    width: 30px;
    height: 30px;
    font-size: 1.8rem;
  }

  .whatsapp-float__text {
    display: none;
  }
}

/* ===============================
   MOBILE: BOTON EXTENDIDO INFERIOR
=============================== */

@media (max-width: 860px) {
  .whatsapp-float {
    left: 14px;
    right: 14px;
    bottom: 14px;

    width: auto;
    min-height: 58px;
    justify-content: center;

    border-radius: 18px;
    padding: 0 18px;

    box-shadow: 0 16px 30px rgba(24, 39, 75, 0.18);
  }

  .whatsapp-float__icon {
    font-size: 1.5rem;
  }

  .whatsapp-float__text {
    display: inline-block;
  }
}

/* ===============================
   MOBILE PEQUEÑO
=============================== */

@media (max-width: 420px) {
  .whatsapp-float {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 56px;
    padding: 0 16px;
  }

  .whatsapp-float__text {
    font-size: 0.95rem;
  }
}

/* ===== sections/main/hero.css ===== */
.hero {
  padding: 56px 0 34px;
}

.hero-box {
  background: var(--card);
  border: 1px solid rgba(214, 222, 234, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
}

.hero-media-desktop {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-media-mobile {
  display: none;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

@media (max-width: 900px) {
  .hero-box {
    grid-template-columns: 1fr;
    padding: 24px 16px 20px;
    gap: 12px;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 8vw, 3.4rem);
    line-height: 0.94;
    margin-bottom: 10px;
  }

  .hero-media-desktop {
    display: none;
  }

  .hero-media-mobile {
    display: flex;
    justify-content: center;
    margin: 6px 0 10px;
  }

  .hero-media-mobile .hero-image {
    max-width: 290px;
  }

  .hero-content .lead {
    max-width: 100%;
    margin-top: 0;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== sections/main/trust.css ===== */
/* ===============================
   TRUST
=============================== */

.trust-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  transition: 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.trust-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.trust-head h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--primary-dark);
}

.trust-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-body-compact);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .trust-card {
    padding: 18px;
  }

  .trust-head {
    gap: 10px;
  }

  .trust-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .trust-head h3 {
    font-size: 1.08rem;
    line-height: 1.15;
  }

  .trust-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* ===== sections/main/services.css ===== */
/* ===============================
   SERVICES
=============================== */

.service-card {
  transition: 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card-compact {
  padding: 26px 26px 24px;
}

.service-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.service-head h3 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--muted);
  line-height: var(--lh-body-compact);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .service-card-compact {
    padding: 18px;
  }

  .service-head {
    gap: 10px;
  }

  .service-icon {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .service-head h3 {
    font-size: 1.08rem;
  }

  .service-card p {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}

/* ===== sections/main/methodologies.css ===== */
/* ===============================
   METODOLOGÍAS
=============================== */

.methodologies {
  padding: 84px 0;
}

.method-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 30px;
  padding: 34px 38px;
  border-radius: 18px;
  background: var(--primary-soft);
  box-shadow: none;
  border: 1px solid rgba(30, 58, 104, 0.08);
  overflow: hidden;
}

/* eliminamos figuras decorativas */
.method-card::before,
.method-card::after {
  display: none;
  content: none;
}

.method-icon {
  position: relative;
  z-index: 1;
  width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(30, 58, 104, 0.44);
  font-size: 4.8rem;
  line-height: 1;
  background: none;
  border: none;
  box-shadow: none;
}

.method-content {
  position: relative;
  z-index: 1;
  flex: 1;
  border-left: 5px solid rgba(176, 141, 87, 0.95);
  padding-left: 20px;
}

.method-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(30, 58, 104, 0.68);
}

.method-content h3 {
  margin-bottom: 14px;
  color: var(--primary-dark);
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.method-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.method-content p + p {
  margin-top: 12px;
}

/* responsive */
@media (max-width: 768px) {
  .methodologies {
    padding: 72px 0;
  }

  .method-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 26px 22px;
    border-radius: 16px;
  }

  .method-icon {
    width: 100%;
    justify-content: flex-start;
    font-size: 4rem;
  }

  .method-content {
    width: 100%;
    border-left: 4px solid rgba(176, 141, 87, 0.95);
    padding-left: 14px;
  }

  .method-content h3 {
    font-size: 1.5rem;
  }

  .method-content p {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}

/* ===== sections/main/how_it_works.css ===== */
/* ===============================
   HOW IT WORKS
=============================== */

.steps-grid {
  align-items: stretch;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 18px;
  align-items: start;
  padding: 28px 26px 26px;
  overflow: hidden;
}

.step-number {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  font-family: 'Poppins', sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, #274a82 0%, #6c8fc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.98;
  text-shadow: 0 10px 24px rgba(39, 74, 130, 0.14);
}

.step-body h3 {
  margin: 0 0 12px 0;
  font-size: 1.55rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.step-body p {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-body-compact);
  font-size: var(--fs-small)
}

/* brillo suave decorativo */
.step-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 110px;
  height: 110px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(223, 231, 245, 0.9) 0%, rgba(223, 231, 245, 0) 72%);
  pointer-events: none;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .step-card {
    grid-template-columns: 58px 1fr;
    gap: 14px;
    padding: 22px;
  }

  .step-number {
    font-size: 2.45rem;
  }

  .step-body h3 {
    font-size: 1.3rem;
  }

  .step-body p {
    line-height: 1.52;
  }
}

/* ===== sections/main/gallery.css ===== */
/* ===============================
   GALLERY
=============================== */

.poster-gallery {
  padding: 80px 0;
}

.poster-gallery .section-heading {
  margin-bottom: 28px;
}

.poster-gallery-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 2fr;
  gap: 18px;
  align-items: stretch;
}

/* ===============================
   GRUPOS
=============================== */

.poster-gallery-group {
  display: grid;
  gap: 18px;
  min-height: 100%;
}

.poster-gallery-group-top {
  grid-column: 1 / span 2;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.poster-gallery-group-bottom {
  grid-column: 3 / span 2;
  grid-template-columns: 1fr 2fr;
  align-items: stretch;
}

/* ===============================
   TARJETAS
=============================== */

.poster-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.poster-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* afiches superiores */
.poster-card-top {
  min-height: 180px;
}

/* afiches inferiores */
.poster-card-bottom {
  min-height: 290px;
}

/* afiches grandes */
.poster-card-lg {
  min-height: 488px;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 991px) {
  .poster-gallery-layout {
    grid-template-columns: 1fr;
  }

  .poster-gallery-group-top,
  .poster-gallery-group-bottom {
    grid-column: auto;
  }

  .poster-gallery-group-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .poster-gallery-group-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .poster-card-top {
    min-height: 170px;
  }

  .poster-card-bottom {
    min-height: 250px;
  }

  .poster-card-lg {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .poster-gallery {
    padding: 64px 0;
  }

  .poster-gallery-layout {
    gap: 16px;
  }

  .poster-gallery-group {
    gap: 16px;
  }

  .poster-gallery-group-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .poster-gallery-group-bottom {
    grid-template-columns: repeat(2, 1fr);
  }

  .poster-card {
    border-radius: 16px;
  }

  .poster-card-top {
    min-height: 140px;
  }

  .poster-card-bottom {
    min-height: 210px;
  }

  .poster-card-lg {
    min-height: 250px;
  }
}

@media (max-width: 420px) {
  .poster-gallery-group-top,
  .poster-gallery-group-bottom {
    gap: 12px;
  }

  .poster-card-top {
    min-height: 120px;
  }

  .poster-card-bottom {
    min-height: 180px;
  }

  .poster-card-lg {
    min-height: 210px;
  }
}

/* ===== sections/main/faq.css ===== */
/* ===============================
   FAQ
=============================== */

.faq {
  background: var(--card);
  border: 1px solid rgba(214, 222, 234, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 18px;
}


/* item */
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  transition: 0.25s ease;
}

.faq-item + .faq-item {
  margin-top: 12px;
}


/* pregunta */
.faq-question {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--primary-dark);
  text-align: left;
  transition: 0.2s ease;
}

.faq-question:hover {
  background: #f9fbff;
}

.faq-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}


/* icono */
.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: 0.25s ease;
}


/* flecha */
.faq-chevron {
  color: var(--primary-dark);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}


/* respuesta */
.faq-answer {
  display: none;
  padding: 0 18px 18px 18px;
  color: var(--muted);
  line-height: var(--lh-body-compact, 1.4);
  font-size: var(--fs-body-compact, 0.98rem);
}

.faq-answer p {
  margin: 0;
}


/* estado activo */
.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-question {
  background: #fbfcff;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: scale(1.04);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}


/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .faq {
    padding: 14px;
  }

  .faq-question {
    padding: 16px;
    font-size: 0.95rem;
    align-items: flex-start;
  }

  .faq-left {
    align-items: flex-start;
  }

  .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 16px 16px 16px;
  }
}

/* ===== sections/main/blog.css ===== */
/* ===============================
   BLOG
=============================== */

.blog-section {
  padding: 26px 0;
}

/* grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}


/* card */
.blog-card {
  padding: 0;
  overflow: hidden;
  transition: 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}


/* imagen */
.blog-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease;
}

.blog-card:hover .blog-thumb img {
  transform: scale(1.05);
}


/* contenido */
.blog-card-body {
  padding: 22px;
}


/* título */
.blog-title {
  margin: 0 0 12px;
  font-size: var(--fs-title-sm, 1.15rem);
  line-height: var(--lh-title, 1.12);
}

.blog-title a {
  color: var(--primary-dark);
  text-decoration: none;
}

.blog-title a:hover {
  color: var(--primary);
}


/* resumen */
.blog-excerpt {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: var(--fs-body-compact);
  line-height: var(--lh-body-compact);
}


/* link */
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.blog-link i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.blog-link:hover {
  color: var(--primary-dark);
}

.blog-link:hover i {
  transform: translateX(3px);
}


/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-body {
    padding: 20px;
  }

  .blog-title {
    font-size: 1.05rem;
  }

  .blog-excerpt {
    font-size: 0.95rem;
  }
}

/* ===== sections/main/contact.css ===== */
/* ===============================
   CONTACT
=============================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}


/* ===============================
   CARD
=============================== */

.contact-card {
  background: var(--card);
  border: 1px solid rgba(214, 222, 234, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}


/* ===============================
   LISTADO CONTACTO
=============================== */

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: #f9fbfe;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  line-height: 1.5;
  transition: 0.25s ease;
}

.contact-item:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}


/* ===============================
   FORMULARIO
=============================== */

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 14px 15px;
  font: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: 0.2s ease;
}


/* focus elegante */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 104, 0.08);
}


/* textarea */
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}


/* botón dentro del form */
.contact-form .btn {
  margin-top: 8px;
}


/* ===============================
   MENSAJES
=============================== */

.form-success {
  padding: 14px;
  border-radius: 12px;
  background: #e6f6ed;
  color: #1f7a4d;
  font-size: 0.9rem;
}

.form-error {
  padding: 14px;
  border-radius: 12px;
  background: #fde8e8;
  color: #a12d2d;
  font-size: 0.9rem;
}


/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 760px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 22px;
  }
}

/* ===== sections/main/cta.css ===== */
/* ===============================
   CTA
=============================== */

.cta {
  padding: 28px 0 10px;
}

.cta-inner {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  max-width: 900px;
  margin: 0 auto;
}

.cta-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.cta-text {
  max-width: 680px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  opacity: 0.9;
}

/* opcional: si quieres que el CTA tenga más presencia al pasar el mouse */
.cta-inner:hover {
  transform: translateY(-2px);
  transition: 0.25s ease;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .cta {
    padding: 22px 0 4px;
  }

  .cta-inner {
    padding: 32px 20px;
    border-radius: 20px;
  }

  .cta-title {
    font-size: 1.9rem;
  }

  .cta-text {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== sections/main/footer.css ===== */
/* ===============================
   FOOTER
=============================== */

.site-footer {
  margin-top: 56px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 56px;
  align-items: start;
  padding: 46px 0 34px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 0;
}

.footer-logo-img {
  width: 260px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.footer-brand-copy h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--primary-dark);
}

.footer-brand-copy p {
  margin: 0;
  max-width: 340px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-col h4 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--primary-dark);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  background: #f3f6fa;
}

.footer-bottom-inner {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 980px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-logo-img {
    width: 220px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .site-footer {
    margin-top: 42px;
  }

  .footer-inner {
    padding: 34px 0 24px;
    gap: 28px;
  }

  .footer-logo-img {
    width: 180px;
  }

  .footer-brand-copy h3 {
    font-size: 1.28rem;
  }

  .footer-brand-copy p {
    font-size: 0.96rem;
    max-width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-col li {
    margin-bottom: 8px;
  }

  .footer-bottom-inner {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 0;
  }

  .footer-bottom p {
    font-size: 0.86rem;
  }
}

/* ===== sections/blog/post.css ===== */
/* ===============================
   POST
=============================== */

.post-hero {
  padding: 22px 0 12px;
}

.post-hero-inner {
  max-width: 980px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}

.post-back:hover {
  color: var(--primary);
}

.post-title {
  max-width: 900px;
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.post-excerpt {
  max-width: 860px;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}

/* layout general */
.post-main {
  padding: 10px 0 40px;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}

/* artículo principal */
.post-article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.post-cover-wrap {
  margin: 0;
  padding: 0;
  background: #f3f5f9;
  border-bottom: 1px solid var(--line);
}

.post-cover {
  display: block;
  width: 100%;
  height: auto;
}

.post-content {
  max-width: 760px;
  padding: 34px 36px 40px;
}

/* tipografía interna tipo documento */
.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.post-content h1 {
  margin: 0 0 18px;
  font-size: 2rem;
  line-height: 1.05;
}

.post-content h2 {
  margin: 30px 0 12px;
  font-size: 1.85rem;
  line-height: 1.08;
}

.post-content h3 {
  margin: 24px 0 10px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.post-content p {
  margin: 0 0 16px;
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--text);
}

.post-content strong {
  color: var(--primary);
  font-weight: 700;
}

.post-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 18px;
  border: 1px solid var(--line);
}

/* listas */
.post-content ul,
.post-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.8;
  color: var(--text);
}

/* líneas separadoras opcionales si luego agregas hr */
.post-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

/* sidebar */
.post-sidebar {
  position: sticky;
  top: 100px;
}

.post-side-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
}

.post-side-card + .post-side-card {
  margin-top: 18px;
}

.post-side-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.15;
  color: var(--primary);
}

.post-side-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.7;
}

.post-side-list {
  margin: 0;
  padding-left: 18px;
}

.post-side-list li {
  margin-bottom: 8px;
}

.post-side-list a {
  color: var(--text);
  text-decoration: none;
}

.post-side-list a:hover {
  color: var(--primary);
}

/* responsive */
@media (max-width: 980px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-hero {
    padding: 18px 0 8px;
  }

  .post-title {
    font-size: 2.3rem;
    line-height: 1.02;
  }

  .post-excerpt {
    font-size: 1rem;
    line-height: 1.7;
  }

  .post-article {
    border-radius: 20px;
  }

  .post-content {
    padding: 24px 20px 30px;
  }

  .post-content h2 {
    font-size: 1.55rem;
  }

  .post-content h3 {
    font-size: 1.2rem;
  }

  .post-content p,
  .post-content li {
    font-size: 1rem;
    line-height: 1.8;
  }
}

/* ===== responsive/responsive.css ===== */
@media (max-width: 1080px) {
  .grid-3,
  .services-grid,
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .grid-3,
  .services-grid,
  .info-grid,
  .grid-2,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }
}
