/* ============================================================
   APPARTE — DESIGN SYSTEM
   Brand colors: #111D3D (navy) · #0F61B2 (blue)
                 #6F7680 (gray) · #B7C0C9 (gray-light)
   Fonts: Montserrat (headline) · Open Sans (body)
============================================================ */

/* ── FONTS se cargan async en el HTML para no bloquear render ── */

/* ── CUSTOM PROPERTIES ────────────────────────────────────── */
:root {
  /* Brand colours */
  --navy:        #111D3D;
  --navy-dark:   #0a1228;
  --blue:        #0F61B2;
  --blue-light:  #6eaaff;
  --gray:        #6F7680;
  --gray-light:  #B7C0C9;
  --surface:     #F6FAFF;
  --surface-mid: #E6EFF8;
  --white:       #FFFFFF;
  --on-navy:     #FFFFFF;

  /* Typography */
  --font-hl: 'Montserrat', sans-serif;
  --font-bd: 'Open Sans', sans-serif;

  /* Layout */
  --max-w:    1280px;
  --px:       clamp(1.25rem, 5vw, 3rem);
  --section-py: clamp(4rem, 8vw, 7rem);
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Transitions */
  --ease: cubic-bezier(.25,.8,.25,1);
  --t-fast: 200ms;
  --t-mid:  400ms;
  --t-slow: 700ms;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(17,29,61,.08);
  --shadow-md: 0 8px 32px rgba(17,29,61,.14);
  --shadow-lg: 0 20px 60px rgba(17,29,61,.18);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-bd);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--surface);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── UTILITIES ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section-py { padding-block: var(--section-py); }

.section-label {
  font-family: var(--font-hl);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: .75rem;
}

.section-title {
  font-family: var(--font-hl);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--navy);
}

.section-title.white { color: var(--white); }
.section-title.blue  { color: var(--blue); }

.section-body {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 56ch;
  line-height: 1.8;
}

.badge-outline {
  display: inline-block;
  padding: .1em .5em;
  border: 2px solid var(--blue);
  border-radius: 4px;
  font-style: normal;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-hl);
  font-weight: 700;
  font-size: .9375rem;
  padding: .9rem 2rem;
  border-radius: var(--radius-sm);
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(15,97,178,.35);
}
.btn-primary:hover {
  background: #0a52a0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15,97,178,.45);
}

.btn-outline-white {
  border-bottom: 2.5px solid rgba(255,255,255,.6);
  color: var(--white);
  padding-inline: .5rem;
  border-radius: 0;
}
.btn-outline-white:hover {
  border-bottom-color: var(--white);
  color: var(--white);
}

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

.btn-ghost {
  border-bottom: 2.5px solid var(--blue);
  color: var(--blue);
  padding-inline: .25rem;
  border-radius: 0;
  font-family: var(--font-hl);
  font-weight: 700;
  font-size: .875rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn-ghost:hover { gap: .65rem; color: var(--navy); }
.btn-ghost .arrow { font-size: 1rem; line-height: 1; }

/* ── BRUSH STROKE (brand graphic element) ─────────────────── */
.brush-line {
  display: block;
  width: 80px;
  height: 6px;
  background: var(--blue);
  border-radius: 100px 10px 100px 10px;
  transform: rotate(-1.5deg);
  opacity: .85;
}

.brush-line-lg {
  width: 120px;
  height: 8px;
  background: var(--blue-light);
  border-radius: 100px 8px 100px 8px;
  transform: rotate(-1deg);
  opacity: .55;
}

/* ── REVEAL ANIMATIONS ────────────────────────────────────── */
.reveal, .reveal-l, .reveal-r, .reveal-u {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease),
              transform var(--t-slow) var(--ease);
}
.reveal   { transform: translateY(30px); }
.reveal-l { transform: translateX(-40px); }
.reveal-r { transform: translateX(40px); }
.reveal-u { transform: translateY(-30px); }

.reveal.visible,
.reveal-l.visible,
.reveal-r.visible,
.reveal-u.visible {
  opacity: 1;
  transform: none;
}

/* ── NAVBAR ───────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(246,250,255,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,29,61,.07);
  transition: background var(--t-mid) var(--ease),
              box-shadow var(--t-mid) var(--ease);
}
#navbar.scrolled {
  background: rgba(246,250,255,.97);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 88px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Fallback text (used in footer only) */
.nav-logo-text {
  font-family: var(--font-hl);
  font-weight: 900;
  font-size: 1.375rem;
  letter-spacing: -.04em;
  color: var(--navy);
  line-height: 1;
}
.nav-logo-text span { color: var(--blue); }

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
}
.nav-links a {
  font-family: var(--font-hl);
  font-size: .875rem;
  font-weight: 600;
  color: var(--gray);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width var(--t-fast) var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-right {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-family: var(--font-hl);
  font-size: .75rem;
  font-weight: 700;
}
.lang-switch a {
  padding: .25rem .4rem;
  border-radius: 3px;
  color: var(--gray);
  transition: color var(--t-fast), background var(--t-fast);
}
.lang-switch a.active,
.lang-switch a:hover { color: var(--navy); background: var(--surface-mid); }
.lang-switch span { color: var(--gray-light); font-size: .625rem; }

/* Burger */
.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1.25rem var(--px) 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--surface-mid);
  gap: .25rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: var(--font-hl);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--gray);
  padding: .625rem 0;
  border-bottom: 1px solid var(--surface-mid);
  transition: color var(--t-fast);
}
.nav-mobile a:hover { color: var(--navy); }
.nav-mobile .btn { margin-top: .75rem; justify-content: center; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-right  { display: flex; }
  .nav-burger { display: none; }
}

/* ── HERO ─────────────────────────────────────────────────── */
#inicio {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,18,40,.96) 0%,
    rgba(11,22,52,.88) 45%,
    rgba(11,22,52,.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 3rem 2.5rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-text { max-width: none; }

.hero-eyebrow {
  font-family: var(--font-hl);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-hl);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title .hero-bold-white {
  font-weight: 700;
  color: var(--white);
}
.hero-title .hero-brand,
.page-hero h1 .hero-brand {
  display: block;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 1;
  margin-top: .1em;
}
.hero-title .hero-app,
.section-title .hero-app,
.page-hero h1 .hero-app {
  font-weight: 700;
  color: var(--blue);
}
.hero-title .hero-arte,
.section-title .hero-arte,
.page-hero h1 .hero-arte {
  font-weight: 700;
  color: var(--blue-light);
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.7);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.25rem;
}

/* Stat tags below CTAs */
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .625rem;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-family: var(--font-hl);
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.75);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast), color var(--t-fast);
}
.hero-tag:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.hero-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--blue-light);
  flex-shrink: 0;
}

/* Hero visual (right column) */
.hero-visual {
  display: none;
  position: relative;
}

.hero-img-card {
  background: rgba(17,29,61,.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(110,170,255,.18);
  border-radius: 1.75rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 40px 80px rgba(0,0,0,.4),
    0 0 60px rgba(15,97,178,.12);
  display: flex;
  flex-direction: column;
}

.hero-img-top {
  width: 100%;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 0 0;
  flex: 1;
  min-height: 0;
}
.hero-img-top img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero-img-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 1.25rem 1rem;
  gap: .25rem;
}

.hero-mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .75rem .5rem;
  border-radius: .75rem;
  transition: background var(--t-fast);
}
.hero-mini-stat:hover { background: rgba(255,255,255,.05); }

.hero-mini-stat + .hero-mini-stat {
  border-left: 1px solid rgba(255,255,255,.08);
}

.hero-mini-val {
  font-family: var(--font-hl);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: .3rem;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.hero-mini-val svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue-light);
  stroke-width: 2;
  flex-shrink: 0;
}

.hero-mini-label {
  font-family: var(--font-hl);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.45);
  line-height: 1.4;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.3);
  font-family: var(--font-hl);
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; opacity: .5; }

@keyframes scrollBounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

@media (min-width: 900px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
    min-height: calc(100svh - 72px);
    padding-block: 0;
    gap: 2rem;
    align-items: center;
  }
  .hero-visual { display: block; }
}

/* PORTAFOLIO — oculto temporalmente */
#portafolio { display: none; }

/* ── POR QUÉ SOMOS DIFERENTES ─────────────────────────────── */
#por-que {
  background: var(--white);
}

.por-que-header {
  margin-bottom: 3.5rem;
}

.por-que-header .pq-title {
  font-weight: 600;
  white-space: nowrap;
}

.por-que-header .pq-body {
  max-width: none;
}

.por-que-grid {
  display: grid;
  gap: 1.5rem;
}

.pq-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border-left: 4px solid transparent;
  transition: border-color var(--t-mid), box-shadow var(--t-mid);
}
.pq-card:hover {
  border-left-color: var(--blue);
  box-shadow: var(--shadow-md);
}

.pq-icon {
  width: 48px;
  height: 48px;
  background: rgba(15,97,178,.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.pq-icon svg { width: 22px; height: 22px; color: var(--blue); fill: var(--blue); }

.pq-card h3 {
  font-family: var(--font-hl);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .75rem;
}
.pq-card p { color: var(--gray); font-size: .9375rem; line-height: 1.75; }

@media (min-width: 768px) {
  .por-que-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── SERVICIOS ────────────────────────────────────────────── */
#servicios {
  background: var(--navy);
  color: var(--on-navy);
  position: relative;
  overflow: hidden;
}

/* Decorative blob SVG */
.servicios-blob {
  position: absolute;
  top: 0;
  right: 0;
  opacity: .08;
  pointer-events: none;
  overflow: hidden;
}

.servicios-header {
  text-align: center;
  margin-bottom: 4rem;
}
.servicios-header .section-label { color: var(--blue-light); }

.servicios-grid {
  display: grid;
  gap: 1.5rem;
}

.srv-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background var(--t-mid), transform var(--t-mid), box-shadow var(--t-mid);
}
.srv-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0,0,0,.3);
}

.srv-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-sm);
  filter: brightness(.9) saturate(.85);
  transition: filter var(--t-slow), transform var(--t-slow);
}
.srv-card:hover .srv-img {
  filter: brightness(1) saturate(1);
  transform: scale(1.03);
}
.srv-img-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 1.25rem 1.25rem 0;
}

.srv-body { padding: 1.5rem 2rem 2.25rem; }

.srv-body h3 {
  font-family: var(--font-hl);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .75rem;
}
.srv-body p {
  color: rgba(255,255,255,.6);
  font-size: .9375rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .servicios-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── EL MÉTODO (preview) ──────────────────────────────────── */
#metodo-preview {
  background: var(--surface);
}

.metodo-header {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.metodo-header-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.fases-grid {
  display: grid;
  gap: 1.5rem;
  position: relative;
}

/* Connector line */
.fases-grid::before {
  content: '';
  display: none;
  position: absolute;
  top: 40px;
  left: calc(12.5% + 32px);
  width: calc(75% - 64px);
  height: 2px;
  background: var(--surface-mid);
  z-index: 0;
}

.fase-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.fase-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-hl);
  font-size: 1.0625rem;
  font-weight: 900;
  color: var(--blue);
  transition: background var(--t-mid), color var(--t-mid);
  box-shadow: var(--shadow-sm);
}
.fase-card:hover .fase-num {
  background: var(--blue);
  color: var(--white);
}

.fase-card h3 {
  font-family: var(--font-hl);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}
.fase-card p {
  font-size: .875rem;
  color: var(--gray);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.65;
}

.metodo-cta {
  text-align: center;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .fases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .fases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .fases-grid::before { display: block; }
}

/* ── PORTAFOLIO ───────────────────────────────────────────── */
#portafolio {
  background: var(--white);
}

.portafolio-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .portafolio-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.portafolio-grid {
  display: grid;
  gap: 1.5rem;
}

.porto-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.porto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.porto-img-wrap { overflow: hidden; position: relative; }
.porto-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.porto-card:hover .porto-img { transform: scale(1.05); }

.porto-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-hl);
  font-size: .6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--blue);
  color: var(--white);
  padding: .25rem .65rem;
  border-radius: 3px;
}

.porto-body { padding: 1.5rem; }
.porto-body h3 {
  font-family: var(--font-hl);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .5rem;
}
.porto-body p {
  font-size: .875rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.65;
}

@media (min-width: 640px)  { .portafolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portafolio-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── BLOG PREVIEW ─────────────────────────────────────────── */
#blog-preview {
  background: var(--surface);
}

.blog-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .blog-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.blog-img { width: 100%; height: 200px; object-fit: cover; display: block; }

.blog-body { padding: 1.5rem; }

.blog-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .875rem;
  font-size: .75rem;
  color: var(--gray);
  font-family: var(--font-hl);
  font-weight: 600;
}
.blog-meta .tag {
  background: rgba(15,97,178,.1);
  color: var(--blue);
  padding: .2rem .5rem;
  border-radius: 3px;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.blog-body h3 {
  font-family: var(--font-hl);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .625rem;
  line-height: 1.4;
}
.blog-body p {
  font-size: .875rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

@media (min-width: 640px)  { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── CTA FINAL / CONTACTO ─────────────────────────────────── */
#contacto {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final-inner {
  max-width: 640px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.cta-final-inner h2 {
  font-family: var(--font-hl);
  font-size: clamp(1.25rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1rem;
  white-space: nowrap;
}
.cta-final-inner h2 .accent-cl {
  color: var(--blue-light);
}

.cta-final-inner > p {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.cta-social a {
  color: rgba(255,255,255,.45);
  transition: color var(--t-fast), transform var(--t-fast);
  display: flex;
}
.cta-social a:hover { color: var(--white); transform: translateY(-2px); }
.cta-social svg { width: 24px; height: 24px; }

.contacto-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: left;
}

.contacto-email-link {
  margin-top: 1.5rem;
  font-family: var(--font-hl);
  font-size: .9375rem;
  font-weight: 600;
}
.contacto-email-link a {
  color: var(--white);
  text-decoration: none;
}
.contacto-email-link a:hover { color: var(--blue-light); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #080d1e;
  color: rgba(255,255,255,.5);
  padding-block: 4rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  margin-bottom: 3rem;
}

.footer-brand .nav-logo-text {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}
.footer-brand .nav-logo-text span { color: var(--blue-light); }
.footer-brand p { font-size: .875rem; line-height: 1.75; max-width: 28ch; }

.footer-col h5 {
  font-family: var(--font-hl);
  font-size: .8125rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .625rem; }
.footer-col a {
  font-size: .875rem;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: .8125rem;
}
.footer-bottom p { font-family: var(--font-hl); font-size: .75rem; }

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

.cta-social { display: none !important; }
.lang-switch { display: none !important; }

/* ── WHATSAPP FLOAT ───────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 90;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,.55);
}
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── INNER PAGE HERO (el-metodo, blog, etc.) ──────────────── */
.page-hero {
  background: var(--navy);
  padding-top: calc(72px + 4rem);
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -100px;
  width: 500px;
  height: 180px;
  background: var(--blue);
  border-radius: 100px 20px 100px 20px;
  opacity: .08;
  transform: rotate(-10deg);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero-img-wrap {
  display: none;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.page-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 900px) {
  .page-hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-hero-img-wrap {
    display: block;
    max-height: 420px;
  }
}

.page-hero h1 {
  font-family: var(--font-hl);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 18ch;
}
.page-hero h1 em { font-style: italic; color: var(--blue-light); }

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255,255,255,.65);
  max-width: 52ch;
  line-height: 1.75;
}

/* ── EL MÉTODO — inner page ───────────────────────────────── */
.filosofia-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 900px) {
  .filosofia-grid { grid-template-columns: 1fr 1fr; }
}

.filosofia-img-wrap {
  position: relative;
}
.filosofia-img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: filter var(--t-slow);
  filter: grayscale(.2);
}
.filosofia-img:hover { filter: grayscale(0); }

.filosofia-callout {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--navy);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  max-width: 220px;
  font-family: var(--font-hl);
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.4;
  display: none;
}
@media (min-width: 900px) { .filosofia-callout { display: block; } }

.filosofia-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.filo-stat h4 {
  font-family: var(--font-hl);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.04em;
}
.filo-stat p { font-size: .8125rem; color: var(--gray); font-family: var(--font-hl); font-weight: 600; }

/* Bento fases */
.fases-bento {
  display: grid;
  gap: 1.5rem;
}

.fase-bento {
  border-radius: var(--radius-md);
  padding: 2.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.fase-bento .fase-n {
  font-family: var(--font-hl);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .75rem;
  opacity: .18;
  display: block;
}

.fase-bento h3 {
  font-family: var(--font-hl);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.fase-bento p { font-size: .9375rem; line-height: 1.75; margin-bottom: 1.5rem; }

.fase-bento ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.fase-bento ul li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-hl);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.fase-bento ul li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fase-bento.light {
  background: var(--surface-mid);
  color: var(--navy);
}
.fase-bento.light .fase-n { color: var(--blue); }
.fase-bento.light ul li { color: var(--blue); }
.fase-bento.light ul li::before { border-color: var(--blue); }

.fase-bento.dark {
  background: var(--navy);
  color: var(--white);
}
.fase-bento.dark .fase-n { color: rgba(255,255,255,1); }
.fase-bento.dark h3 { color: var(--white); }
.fase-bento.dark p { color: rgba(255,255,255,.65); }
.fase-bento.dark ul li { color: var(--blue-light); }
.fase-bento.dark ul li::before { border-color: var(--blue-light); }

@media (min-width: 768px) {
  .fases-bento {
    grid-template-columns: 7fr 5fr;
  }
  .fases-bento .row-2 {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 1.5rem;
  }
}

/* Ownership block */
.ownership-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 900px) {
  .ownership-grid { grid-template-columns: 1fr 1fr; }
}

.ownership-checks {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.own-check {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: 1rem;
  color: rgba(255,255,255,.85);
}
.own-check::before {
  content: '';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(110,170,255,.15);
  border: 2px solid var(--blue-light);
  flex-shrink: 0;
}

.code-mock {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  font-family: 'Courier New', monospace;
  font-size: .8125rem;
  line-height: 1.9;
}
.code-mock .dots {
  display: flex;
  gap: .375rem;
  margin-bottom: 1.25rem;
}
.code-mock .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-mock .dot-r { background: #ff5f57; }
.code-mock .dot-y { background: #febc2e; }
.code-mock .dot-g { background: #28c840; }
.code-mock .c-blue  { color: var(--blue-light); }
.code-mock .c-white { color: rgba(255,255,255,.85); }
.code-mock .c-dim   { color: rgba(255,255,255,.35); }

/* ── BLOG INDEX PAGE ──────────────────────────────────────── */
.blog-index-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 640px)  { .blog-index-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-index-grid { grid-template-columns: repeat(3, 1fr); } }

/* Featured post */
.blog-featured {
  display: grid;
  gap: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 3rem;
}
.blog-featured img { width: 100%; height: 320px; object-fit: cover; }
.blog-featured-body { padding: 2.5rem; }
.blog-featured-body h2 {
  font-family: var(--font-hl);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.blog-featured-body p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
@media (min-width: 768px) {
  .blog-featured { grid-template-columns: 1.2fr 1fr; }
  .blog-featured img { height: 100%; }
}

/* ── BLOG POST ────────────────────────────────────────────── */
.post-layout {
  display: grid;
  gap: 3rem;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
  padding-block: 4rem;
}
@media (min-width: 1024px) { .post-layout { grid-template-columns: 1fr 320px; } }

.post-body h2, .post-body h3 {
  font-family: var(--font-hl);
  font-weight: 700;
  color: var(--navy);
  margin: 2rem 0 .875rem;
  letter-spacing: -.02em;
}
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.25rem; }
.post-body p { margin-bottom: 1.25rem; color: var(--gray); line-height: 1.85; }
.post-body ul, .post-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--gray);
  line-height: 1.85;
}
.post-body li { margin-bottom: .375rem; }
.post-body strong { color: var(--navy); }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
}

/* ── STAT CARDS (blog posts) ──────────────────────────────── */
.stat-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }

.stat-card-post {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  border-top: 4px solid var(--blue);
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.stat-card-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-card-post .stat-num {
  font-family: var(--font-hl);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--blue);
  letter-spacing: -.04em;
  line-height: 1.1;
  display: block;
  margin-bottom: .375rem;
}
.stat-card-post .stat-label {
  font-size: .8125rem;
  color: var(--gray);
  line-height: 1.5;
  font-family: var(--font-hl);
  font-weight: 600;
}

.stat-card-post.dark {
  background: var(--navy);
  border-top-color: var(--blue-light);
}
.stat-card-post.dark .stat-num { color: var(--blue-light); }
.stat-card-post.dark .stat-label { color: rgba(255,255,255,.6); }

.insight-box {
  background: rgba(15,97,178,.07);
  border: 1.5px solid rgba(15,97,178,.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.insight-box .insight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1.4;
}
.insight-box p {
  margin: 0 !important;
  font-size: .9375rem;
  color: var(--navy) !important;
  font-weight: 500;
  line-height: 1.65 !important;
}
.insight-box strong { color: var(--blue) !important; }

.warning-box {
  background: rgba(220,38,38,.05);
  border: 1.5px solid rgba(220,38,38,.2);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.warning-box .insight-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1.4; }
.warning-box p {
  margin: 0 !important;
  font-size: .9375rem;
  color: #7f1d1d !important;
  font-weight: 500;
  line-height: 1.65 !important;
}
.warning-box strong { color: #b91c1c !important; }

.source-note {
  font-size: .8125rem !important;
  color: var(--gray-light) !important;
  font-style: italic;
  margin-top: -.5rem !important;
}
.source-note a { color: var(--blue); text-decoration: underline; }

/* Post sidebar */
.post-sidebar {}
.sidebar-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-family: var(--font-hl);
  font-size: .875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* ── CONTACT FORM ─────────────────────────────────────────── */
.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
}
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-family: var(--font-hl);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.75);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: .8125rem 1rem;
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.07);
  color: var(--white);
  font-size: .9375rem;
  font-family: var(--font-body);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.3);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(91,155,213,.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--navy); color: var(--white); }
.form-feedback {
  font-family: var(--font-hl);
  font-size: .875rem;
  font-weight: 600;
  min-height: 1.5em;
}
.form-feedback.ok  { color: #16a34a; }
.form-feedback.err { color: #dc2626; }
