/* =====================================================
   MIBO Consultores — Stylesheet
   Paleta: #C41E3A · #0A0A0A · #FFFFFF
   Fonts: Outfit (display) · Inter (body)
   ===================================================== */

/* ===== VARIABLES ===== */
:root {
  --red:          #C41E3A;
  --red-dark:     #9e1830;
  --red-light:    #e8314d;
  --red-subtle:   rgba(196,30,58,0.06);
  --black:        #0A0A0A;
  --black-soft:   #1a1a1a;
  --ink:          #1c1c1c;
  --ink-light:    #555555;
  --ink-muted:    #888888;
  --white:        #FFFFFF;
  --off-white:    #fafafa;
  --gray-50:      #f7f7f7;
  --gray-100:     #f0f0f0;
  --gray-200:     #e4e4e4;
  --gray-300:     #d0d0d0;
  --border:       rgba(0,0,0,0.08);
  --border-strong:rgba(0,0,0,0.15);
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.04);
  --shadow-md:    0 8px 30px rgba(0,0,0,0.07);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.09);
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w:        1180px;
  --header-h:     76px;
  --radius:       0px;
  --transition:   0.3s cubic-bezier(0.22,1,0.36,1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
button { font-family:var(--font-body); }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 6rem 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--gray { background: var(--off-white); }
.section--white { background: var(--white); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
              transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }
.reveal-delay-4 { transition-delay:0.4s; }

/* ===== TYPOGRAPHY ===== */
h1,h2,h3,h4,h5,h6 { font-family:var(--font-display); font-weight:600; line-height:1.2; }
em { font-style:italic; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background:var(--red); color:var(--white); }
.btn-primary:hover { background:var(--red-dark); }
.btn-dark { background:var(--black); color:var(--white); }
.btn-dark:hover { background:var(--red); }
.btn-outline {
  background:transparent; color:var(--ink);
  border:1.5px solid var(--border-strong);
}
.btn-outline:hover { border-color:var(--red); color:var(--red); }
.btn-outline-white {
  background:transparent; color:var(--white);
  border:1.5px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover { border-color:var(--white); background:rgba(255,255,255,0.08); }
.btn-arrow::after {
  content:'\2192';
  transition: transform var(--transition);
  font-family: var(--font-body);
  font-weight: 400;
}
.btn-arrow:hover::after { transform:translateX(5px); }
.btn-sm { font-size:0.72rem; padding:0.7rem 1.4rem; }

/* ===== SECTION HEADER ===== */
.sec-header { text-align:center; max-width:640px; margin:0 auto 4rem; }
.sec-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.sec-label::before, .sec-label::after {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}
.sec-label--left { justify-content:flex-start; }
.sec-label--left::after { display:none; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.sec-title em { color:var(--red); font-style:italic; font-weight:300; }
.sec-sub {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto;
}
.sec-header--left { text-align:left; margin-left:0; }
.sec-header--left .sec-sub { margin-left:0; }

/* =====================================================
   MARCA — símbolo dibujado en CSS + logotipo tipográfico
   El tamaño se controla con font-size en .brand
   ===================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 27px;
  line-height: 1;
  text-decoration: none;
}
.brand-mark { display: flex; align-items: center; gap: 0.09em; flex-shrink: 0; }
.brand-mark-v { display: flex; gap: 0.075em; }
.brand-mark-v i {
  display: block;
  width: 0.195em;
  height: 0.72em;
  border-radius: 0.055em;
  background: var(--red);
}
.brand-mark-h { display: flex; flex-direction: column; gap: 0.088em; justify-content: center; }
.brand-mark-h i {
  display: block;
  width: 0.66em;
  height: 0.181em;
  border-radius: 0.055em;
  background: var(--black);
  transition: background var(--transition);
}
.brand-wm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-wm .a { color: var(--red); }
.brand-wm .b { color: var(--black); transition: color var(--transition); }

/* Sobre fondo oscuro: el rojo se conserva, el negro pasa a blanco */
.header--on-dark:not(.scrolled):not(.menu-open) .brand-mark-h i,
.footer .brand-mark-h i { background: var(--white); }
.header--on-dark:not(.scrolled):not(.menu-open) .brand-wm .b,
.footer .brand-wm .b { color: var(--white); }

.footer .brand { font-size: 24px; margin-bottom: 0.9rem; }

/* ===== SKIP LINK (a11y) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 2000;
  background: var(--red);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ===== HEADER / NAV ===== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  transition: background 0.35s, box-shadow 0.35s;
}
.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* El logotipo empuja el resto del encabezado hacia la derecha */
.header-logo { margin-right: auto; }
.nav { order: 1; }
.lang { order: 2; }
.hamburger { order: 3; }
.header-logo { display:flex; align-items:center; position:relative; z-index:1001; }
.header-logo img { height:36px; width:auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  transition: color var(--transition);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width var(--transition);
}
.nav a:hover { color:var(--red); }
.nav a:hover::after { width:100%; }
.nav a.active { color:var(--red); }
.nav a.active::after { width:100%; }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.6rem;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  transition: background var(--transition) !important;
}
.nav-cta::after { display:none !important; }
.nav-cta:hover { background:var(--red-dark) !important; color:var(--white) !important; transform:none; }

/* Header variant over dark page-hero: light logo/nav until scrolled */
.header--on-dark:not(.scrolled) .nav a {
  color: rgba(255,255,255,0.75);
}
.header--on-dark:not(.scrolled) .nav a:hover,
.header--on-dark:not(.scrolled) .nav a.active {
  color: var(--white);
}
.header--on-dark:not(.scrolled) .nav a::after { background: var(--white); }
.header--on-dark:not(.scrolled) .nav a.nav-cta { color: var(--white) !important; }
.header--on-dark:not(.scrolled) .hamburger:not(.open) span { background: var(--white); }

/* Exception: the opened mobile menu has a white background */
.header--on-dark:not(.scrolled) .nav.open a { color: var(--ink-light); }
.header--on-dark:not(.scrolled) .nav.open a:hover,
.header--on-dark:not(.scrolled) .nav.open a.active { color: var(--red); }
.header--on-dark:not(.scrolled) .nav.open a::after { background: var(--red); }
.header--on-dark:not(.scrolled) .nav.open a.nav-cta { color: var(--white) !important; }

/* ===== SELECTOR DE IDIOMA ===== */
.lang {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.4rem;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--ink-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.48rem 0.7rem;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: var(--red); color: var(--red); }
.lang-btn::after {
  content: '';
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform var(--transition);
}
.lang.open .lang-btn::after { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 148px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1002;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: block;
  padding: 0.6rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0;
  text-transform: none;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), color var(--transition);
}
.lang-menu a:last-child { border-bottom: none; }
.lang-menu a::after { display: none; }
.lang-menu a:hover { background: var(--gray-50); color: var(--red); }
.lang-menu a[aria-current="true"] { color: var(--red); font-weight: 700; }

/* Sobre encabezado oscuro */
.header--on-dark:not(.scrolled):not(.menu-open) .lang-btn {
  border-color: rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
}
.header--on-dark:not(.scrolled):not(.menu-open) .lang-btn:hover {
  border-color: var(--white); color: var(--white);
}

@media (max-width: 640px) {
  .lang { position: static; margin: 0 0.6rem 0 auto; }
  .lang-menu { right: 1.25rem; top: calc(var(--header-h) - 0.6rem); }
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 1001;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: transform 0.35s, opacity 0.35s, top 0.35s, bottom 0.35s;
}
.hamburger span:nth-child(1) { top:0; }
.hamburger span:nth-child(2) { top:50%; transform:translateY(-50%); }
.hamburger span:nth-child(3) { bottom:0; }
.hamburger.open span:nth-child(1) { top:50%; transform:translateY(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { bottom:50%; transform:translateY(50%) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100vh;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.nav-overlay.open { display:block; }

/* ===== HERO (INDEX) ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.hero::before { content: none; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { max-width: 545px; position: relative; z-index: 2; }

/* Panel visual a sangre sobre el costado derecho de la sección */
.hero-visual {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 47%;
  z-index: 1;
  pointer-events: none;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.hero-title em { color:var(--red); font-style:italic; font-weight:300; }
.hero-desc {
  font-size: 1.05rem;
  color: var(--ink-light);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-ctas { display:flex; gap:1rem; flex-wrap:wrap; }

.hero-img-box {
  aspect-ratio: 4/5;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.hero-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-img-placeholder {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 200;
  color: var(--gray-300);
  letter-spacing: 0.1em;
}
/* ===== COMPOSICIÓN ANIMADA DEL HERO (fondo claro) ===== */
.hero-anim {
  position: relative;
  height: 100%;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(196,30,58,0.07) 0%, transparent 58%),
    linear-gradient(160deg, #ffffff 0%, #fbfbfc 55%, #f4f5f7 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 16%;
  border-left: 1px solid var(--border);
}
.hero-anim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--off-white) 0%, rgba(250,250,250,0.72) 14%, rgba(250,250,250,0.25) 30%, transparent 48%);
  pointer-events: none;
}

/* Retícula tenue */
.hero-anim-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10,10,10,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 76%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 76%);
  animation: heroGridDrift 30s linear infinite;
}
@keyframes heroGridDrift {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 44px 44px, 44px 44px; }
}

/* Halo rojo suave */
.hero-anim-glow {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,30,58,0.13) 0%, rgba(196,30,58,0.04) 45%, transparent 70%);
  animation: heroGlow 9s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%      { transform: scale(1.12); opacity: 1; }
}

/* Anillos concéntricos */
.hero-anim-ring {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border: 1px solid rgba(10,10,10,0.09);
  border-top-color: rgba(196,30,58,0.5);
  border-radius: 50%;
  animation: heroSpin 26s linear infinite;
}
.hero-anim-ring--2 {
  width: 80%;
  border-color: rgba(10,10,10,0.055);
  border-left-color: rgba(196,30,58,0.3);
  animation: heroSpin 42s linear infinite reverse;
}
.hero-anim-ring--3 {
  width: 41%;
  border-color: rgba(10,10,10,0.07);
  border-bottom-color: rgba(196,30,58,0.36);
  animation: heroSpin 19s linear infinite;
}

/* Marca: barras del logotipo a gran escala */
.hero-anim-mark {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  animation: heroFloat 10s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(-7px); }
  50%      { transform: translateY(7px); }
}

.ham-bars { display: flex; align-items: center; gap: 13px; }
.ham-bars span {
  display: block;
  width: 17px;
  height: 104px;
  border-radius: 9px;
  background: linear-gradient(180deg, #d92440 0%, var(--red) 100%);
  transform-origin: center;
  animation: heroBar 3.8s ease-in-out infinite;
  box-shadow: 0 6px 18px rgba(196,30,58,0.22);
}
.ham-bars span:nth-child(2) { animation-delay: 0.3s; }
.ham-bars span:nth-child(3) { animation-delay: 0.6s; }
@keyframes heroBar {
  0%, 100% { transform: scaleY(0.82); }
  50%      { transform: scaleY(1); }
}

.ham-lines { display: flex; flex-direction: column; gap: 13px; }
.ham-lines span {
  display: block;
  width: 104px;
  height: 17px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--black) 0%, #2c2c2c 100%);
  transform-origin: left center;
  animation: heroLine 3.8s ease-in-out infinite;
  box-shadow: 0 6px 16px rgba(10,10,10,0.13);
}
.ham-lines span:nth-child(2) { animation-delay: 0.3s; }
.ham-lines span:nth-child(3) { animation-delay: 0.6s; }
@keyframes heroLine {
  0%, 100% { transform: scaleX(0.86); opacity: 0.78; }
  50%      { transform: scaleX(1);    opacity: 1; }
}

/* Etiqueta inferior */
.hero-anim-caption {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (prefers-reduced-motion: reduce) {
  .hero-anim-grid, .hero-anim-glow, .hero-anim-ring,
  .hero-anim-mark, .ham-bars span, .ham-lines span { animation: none; }
  .ham-lines span { opacity: 1; }
}

.hero-stats {
  position: absolute;
  bottom: -24px;
  left: -24px;
  background: var(--white);
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 2rem;
}
.stat-item { text-align:center; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.stat-num span { color:var(--red); }
.stat-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-top: 0.3rem;
  line-height: 1.3;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right top, rgba(196,30,58,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position:relative; z-index:1; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}
.page-hero-breadcrumb a { color:rgba(255,255,255,0.4); transition:color var(--transition); }
.page-hero-breadcrumb a:hover { color:rgba(255,255,255,0.8); }
.page-hero-breadcrumb span { color:rgba(255,255,255,0.6); }
.page-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-hero-label::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--red-light);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-bottom: 1.25rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.6);
  max-width: 560px;
  line-height: 1.75;
}

/* ===== ABOUT ===== */
.about { padding:6rem 0; background:var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}
.about-left-line { width:50px; height:3px; background:var(--red); margin-bottom:2rem; }
.about-text p {
  color: var(--ink-light);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  line-height: 1.85;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.about-feat {
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
  cursor: default;
}
.about-feat:hover {
  border-color: var(--red);
  background: var(--red-subtle);
}
.about-feat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.about-feat h4 { font-size:0.88rem; font-weight:700; margin-bottom:0.25rem; }
.about-feat p { font-size:0.82rem; color:var(--ink-muted); line-height:1.6; margin:0; }

/* ===== SERVICES GRID ===== */
.services { padding:6rem 0; background:var(--off-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
}
.svc-card {
  background: var(--white);
  padding: 2.5rem;
  transition: background var(--transition);
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.svc-card:hover::before { width:100%; }
.svc-card:hover { background:var(--off-white); }
.svc-icon {
  width: 44px; height: 44px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-icon svg {
  width: 28px; height: 28px;
  stroke: var(--red);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.svc-card > p {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.svc-list li {
  font-size: 0.83rem;
  color: var(--ink-light);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.svc-list li:last-child { border-bottom:none; }
.svc-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 1.5rem;
  transition: gap var(--transition);
}
.svc-link:hover { gap:0.7rem; }
.svc-link::after { content:'\2192'; }

/* ===== SERVICE DETAIL PAGE ===== */
.service-detail { padding:5rem 0; background:var(--white); border-bottom:1px solid var(--border); }
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.service-detail-sidebar { position:sticky; top:calc(var(--header-h) + 2rem); }
.service-detail-icon {
  width: 64px; height: 64px;
  background: var(--red-subtle);
  border: 1px solid rgba(196,30,58,0.15);
  display: flex; align-items:center; justify-content:center;
  margin-bottom: 1.5rem;
}
.service-detail-icon svg { width:32px; height:32px; stroke:var(--red); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.service-detail-sidebar h3 { font-size:1.6rem; font-weight:700; margin-bottom:0.75rem; }
.service-detail-sidebar p { font-size:0.9rem; color:var(--ink-muted); line-height:1.75; }
.service-detail-items { list-style:none; margin-top:1.5rem; }
.service-detail-items li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--ink-light);
  display: flex; align-items:center; gap:0.75rem;
}
.service-detail-items li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}
.service-detail-items li:last-child { border-bottom:none; }
.service-detail-content h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.service-detail-content p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}
.service-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.benefit-item {
  padding: 1.25rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
}
.benefit-item h5 { font-size:0.85rem; font-weight:700; margin-bottom:0.3rem; }
.benefit-item p { font-size:0.8rem; color:var(--ink-muted); line-height:1.55; margin:0; }

/* =====================================================
   CLIENTES — banda de logotipos en desplazamiento continuo
   ===================================================== */
.clients {
  padding: 3.5rem 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.clients-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 2.5rem;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  flex: 0 0 auto;
  width: 186px;
  height: 62px;
  margin: 0 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  object-fit: contain;
  /* Silueta monocroma: unifica logotipos de colores y pesos distintos */
  filter: brightness(0);
  opacity: 0.42;
  transition: opacity var(--transition);
}
.marquee-item img.keep-tone { filter: grayscale(1); opacity: 0.5; }
.marquee:hover .marquee-item img { opacity: 0.3; }
.marquee-item:hover img,
.marquee-item:hover img.keep-tone { opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}
@media (max-width: 640px) {
  .clients { padding: 2.5rem 0; }
  .marquee-item { width: 140px; height: 50px; margin: 0 1rem; }
}

/* ===== COVERAGE ===== */
.coverage {
  padding: 6rem 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.coverage::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(ellipse at right, rgba(196,30,58,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.coverage .sec-label { color:var(--red-light); }
.coverage .sec-label::before, .coverage .sec-label::after { background:var(--red-light); }
.coverage .sec-title { color:var(--white); }
.coverage .sec-sub { color:rgba(255,255,255,0.45); }
.cov-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.cov-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 2.5rem;
  transition: border-color var(--transition), background var(--transition);
}
.cov-card:hover {
  border-color: var(--red);
  background: rgba(196,30,58,0.06);
}
.cov-card-icon {
  width: 40px; height: 40px;
  display: flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 1.5rem;
}
.cov-card-icon svg { width:20px; height:20px; stroke:rgba(255,255,255,0.6); fill:none; stroke-width:1.5; }
.cov-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cov-card p { font-size:0.88rem; color:rgba(255,255,255,0.45); line-height:1.75; }

/* ===== WHY US ===== */
.why { padding:6rem 0; background:var(--white); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card { text-align:center; padding:2.5rem 2rem; }
.why-icon {
  width: 68px; height: 68px;
  margin: 0 auto 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  transition: border-color var(--transition), background var(--transition);
}
.why-card:hover .why-icon { border-color:var(--red); background:var(--red-subtle); }
.why-icon svg { width:26px; height:26px; stroke:var(--red); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.why-card h3 { font-size:1.2rem; font-weight:700; margin-bottom:0.5rem; }
.why-card p { font-size:0.88rem; color:var(--ink-muted); line-height:1.75; }

/* ===== STATS STRIP ===== */
.stats-strip {
  padding: 4rem 0;
  background: var(--red);
  color: var(--white);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stats-item-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stats-item-lbl {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ===== TEAM ===== */
.team { padding:6rem 0; background:var(--off-white); }
.team-group + .team-group { margin-top:4rem; }
.team-group-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.partner-card {
  background: var(--white);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.partner-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
  transform: translateY(-3px);
}
.partner-photo {
  aspect-ratio: 1/1;
  background: var(--gray-100);
  display: flex; align-items:center; justify-content:center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.partner-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.partner-photo-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items:center; justify-content:center;
}
.partner-photo-placeholder svg { width:34px; height:34px; stroke:var(--ink-muted); fill:none; stroke-width:1.2; }
.partner-info { padding:1.75rem; }
.partner-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.partner-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}
.partner-bio { font-size:0.84rem; color:var(--ink-light); line-height:1.75; }
.partner-tags { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:1rem; }
.partner-tag {
  font-size: 0.68rem;
  padding: 0.25rem 0.65rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Members */
.members-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.member-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.member-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.member-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--gray-100);
  flex-shrink: 0;
  display: flex; align-items:center; justify-content:center;
  border: 1px solid var(--border);
  overflow: hidden;
}
.member-avatar img { width:100%; height:100%; object-fit:cover; }
.member-avatar svg { width:22px; height:22px; stroke:var(--ink-muted); fill:none; stroke-width:1.2; }
.member-role {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.2rem;
}
.member-name { font-weight:700; font-size:0.95rem; margin-bottom:0.3rem; }
.member-desc { font-size:0.82rem; color:var(--ink-muted); line-height:1.65; }

/* Staff */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.staff-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: border-color var(--transition);
}
.staff-card:hover { border-color:var(--gray-300); }
.staff-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  opacity: 0.7;
}
.staff-name { font-weight:600; font-size:0.9rem; }
.staff-role { font-size:0.75rem; color:var(--ink-muted); }

/* =====================================================
   DIRECTORIO INSTITUCIONAL (sin fotografías)
   Estilo tipográfico: monograma + jerarquía de texto
   ===================================================== */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}
.people-grid--thirds { grid-template-columns: repeat(3, 1fr); }

.person--wide { grid-column: 1 / -1; }

.person {
  background: var(--white);
  padding: 2.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: background var(--transition);
  position: relative;
}
.person::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.person:hover::before { width: 100%; }
.person:hover { background: var(--off-white); }

/* Monograma de iniciales — sustituye a la fotografía */
.person-mono {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--white);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.person:hover .person-mono {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}
.person-mono--lg { width: 76px; height: 76px; font-size: 1.4rem; }

.person-body { flex: 1; min-width: 0; }
.person-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.35rem;
}
.person-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}
.person-name--lg { font-size: 1.4rem; }
.person-suffix {
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}
.person-bio {
  font-size: 0.86rem;
  color: var(--ink-light);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.person-creds { list-style: none; margin: 0 0 1rem; }
.person-creds li {
  font-size: 0.83rem;
  color: var(--ink-light);
  line-height: 1.6;
  padding: 0.35rem 0;
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}
.person-creds li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 0.55rem;
}
.person-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.person-tag {
  font-size: 0.68rem;
  padding: 0.25rem 0.65rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Fila compacta para equipo operativo */
.people-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}
.person-compact {
  background: var(--white);
  padding: 1.35rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.person-compact:hover { background: var(--off-white); }
.person-compact .person-mono {
  width: 42px; height: 42px;
  font-size: 0.85rem;
  border-width: 1px;
}
.person-compact .person-name { font-size: 0.95rem; margin-bottom: 0.1rem; }
.person-compact .person-role { font-size: 0.66rem; margin-bottom: 0; }

/* ===== BARRA DE CREDENCIALES VERIFICABLES ===== */
.creds-strip {
  padding: 3.5rem 0;
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.creds-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(196,30,58,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.creds-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 1;
}
.cred-item {
  background: var(--black);
  padding: 2rem 1.75rem;
  transition: background var(--transition);
}
.cred-item:hover { background: #141414; }
.cred-item-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.cred-item-value span { color: var(--red-light); }
.cred-item-label {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

/* ===== DISCLAIMER TÉCNICO ===== */
.disclaimer {
  border-left: 3px solid var(--red);
  background: var(--gray-50);
  padding: 1.25rem 1.5rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin: 2.5rem 0;
}
.disclaimer strong { color: var(--ink-light); }

/* ===== ARTÍCULO (blog post) ===== */
.article-body {
  font-size: 1rem;
  color: var(--ink-light);
  line-height: 1.9;
}
.article-body > p { margin-bottom: 1.4rem; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 3rem 0 1rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem 0;
  padding-left: 1.4rem;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.6rem; line-height: 1.8; }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article-body blockquote {
  border-left: 3px solid var(--red);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink);
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.article-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.article-author .person-mono { width: 44px; height: 44px; font-size: 0.85rem; }
.article-author-name { font-weight: 700; font-size: 0.9rem; }
.article-author-role { font-size: 0.78rem; color: var(--ink-muted); }
.article-date { font-size: 0.82rem; color: var(--ink-muted); }

.article-toc {
  background: var(--gray-50);
  border: 1px solid var(--border);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.article-toc h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}
.article-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.article-toc li { counter-increment: toc; margin-bottom: 0.5rem; }
.article-toc a {
  font-size: 0.88rem;
  color: var(--ink-light);
  transition: color var(--transition);
  display: flex;
  gap: 0.6rem;
}
.article-toc a::before {
  content: counter(toc) '.';
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
}
.article-toc a:hover { color: var(--red); }

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: #25D366;
  color: #fff;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.34), 0 2px 8px rgba(0,0,0,0.12);
  transition: transform var(--transition), box-shadow var(--transition), padding var(--transition);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.42), 0 3px 10px rgba(0,0,0,0.16);
  color: #fff;
}
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.wa-float-label { white-space: nowrap; }

/* Se aparta cuando el aviso de cookies está visible */
.cookie-banner.show ~ .wa-float { transform: translateY(-8rem); }

@media (max-width: 640px) {
  .wa-float { right: 1rem; bottom: 1rem; padding: 0.85rem; }
  .wa-float-label { display: none; }
  .cookie-banner.show ~ .wa-float { transform: translateY(-11rem); }
}

/* ===== BANNER DE COOKIES ===== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--black);
  color: var(--white);
  padding: 1.5rem 2rem;
  z-index: 1500;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.2);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  flex: 1;
  min-width: 260px;
}
.cookie-text a { color: var(--white); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }

/* ===== TESTIMONIALS ===== */
.testimonials { padding:6rem 0; background:var(--white); }
.test-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.test-card {
  padding: 2.5rem;
  border: 1px solid var(--border);
  position: relative;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.test-card:hover { box-shadow:var(--shadow-md); border-color:var(--gray-200); }
.test-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: 1rem; left: 1.5rem;
}
.test-quote {
  font-size: 0.97rem;
  font-style: italic;
  color: var(--ink-light);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  padding-top: 1.5rem;
}
.test-author { font-weight:700; font-size:0.88rem; }
.test-loc { font-size:0.8rem; color:var(--ink-muted); margin-top:0.15rem; }
.test-stars {
  display: flex; gap:2px;
  margin-bottom: 0.75rem;
}
.test-stars svg { width:14px; height:14px; fill:var(--red); stroke:none; }

/* ===== CONTACT ===== */
.contact { padding:6rem 0; background:var(--off-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: start;
}
.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.contact-info > p { font-size:0.95rem; color:var(--ink-muted); margin-bottom:2.5rem; line-height:1.75; }
.contact-detail { display:flex; align-items:flex-start; gap:1rem; margin-bottom:1.75rem; }
.contact-detail-icon {
  width: 42px; height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  transition: border-color var(--transition), background var(--transition);
}
.contact-detail:hover .contact-detail-icon { border-color:var(--red); background:var(--red-subtle); }
.contact-detail-icon svg { width:18px; height:18px; stroke:var(--red); fill:none; stroke-width:1.5; }
.contact-detail-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}
.contact-detail-value { font-size:0.95rem; font-weight:500; margin-top:0.2rem; }
.contact-detail-value a { transition:color var(--transition); }
.contact-detail-value a:hover { color:var(--red); }
.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.form-group { margin-bottom:1.25rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: var(--ink);
  transition: border-color var(--transition);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color:var(--red); }
.form-group textarea { resize:vertical; min-height:130px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1.4rem;
  padding: 1rem 1.15rem;
  background: var(--gray-50);
  border: 1px solid var(--border);
}
.form-consent input[type="checkbox"] {
  width: 17px; height: 17px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--red);
  cursor: pointer;
}
.form-consent label {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.6;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.form-consent a { color: var(--red); text-decoration: underline; }

.form-submit { width:100%; margin-top:0.5rem; justify-content:center; }
.form-note { font-size:0.75rem; color:var(--ink-muted); margin-top:0.75rem; text-align:center; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.blog-card-thumb {
  aspect-ratio: 16/9;
  background: var(--gray-100);
  overflow: hidden;
  position: relative;
}
.blog-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover .blog-card-thumb img { transform:scale(1.04); }
.blog-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items:center; justify-content:center;
  background: var(--gray-100);
}
.blog-card-thumb-placeholder svg { width:36px; height:36px; stroke:var(--gray-300); fill:none; stroke-width:1; }
.blog-card-body { padding:1.75rem; flex:1; display:flex; flex-direction:column; }
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-card-cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-subtle);
  padding: 0.2rem 0.55rem;
}
.blog-card-date { font-size:0.75rem; color:var(--ink-muted); }
.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.blog-card:hover h3 { color:var(--red); }
.blog-card-excerpt {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.25rem;
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.blog-card-author-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  display: flex; align-items:center; justify-content:center;
  flex-shrink: 0;
  overflow: hidden;
}
.blog-card-author-avatar svg { width:16px; height:16px; stroke:var(--ink-muted); fill:none; stroke-width:1.2; }
.blog-card-author-name { font-size:0.78rem; font-weight:600; }
.blog-card-read {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  transition: gap var(--transition);
}
.blog-card-read:hover { gap:0.6rem; }
.blog-card-read::after { content:'\2192'; font-family:var(--font-body); font-weight:400; }

.blog-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 3rem;
}
.blog-featured-thumb {
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
}
.blog-featured-thumb img {
  width:100%; height:100%;
  object-fit:cover;
  transition:transform 0.6s;
}
.blog-featured:hover .blog-featured-thumb img { transform:scale(1.03); }
.blog-featured-body { padding:2.5rem; }
.blog-featured-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--red);
  padding: 0.25rem 0.65rem;
  margin-bottom: 1rem;
}
.blog-featured-body h2 {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}
.blog-featured:hover h2 { color:var(--red); }
.blog-featured-body p { font-size:0.92rem; color:var(--ink-muted); line-height:1.75; margin-bottom:1.5rem; }

.blog-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3rem;
}
.blog-cat-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.blog-cat-btn:hover,
.blog-cat-btn.active { border-color:var(--red); color:var(--red); background:var(--red-subtle); }
.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
  border: 1px dashed var(--border-strong);
}
.blog-empty svg { width:48px; height:48px; stroke:var(--gray-300); fill:none; stroke-width:1; margin:0 auto 1rem; }
.blog-empty h3 { font-size:1.1rem; font-weight:600; margin-bottom:0.5rem; }
.blog-empty p { font-size:0.88rem; }

/* ===== CTA BAND ===== */
.cta-band {
  padding: 5rem 0;
  background: var(--black);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(196,30,58,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-band-inner { position:relative; z-index:1; }
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.cta-band p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.cta-band-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }

/* ===== FOOTER ===== */
.footer { background:var(--black); color:var(--white); padding:4rem 0 2rem; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-brand { max-width:280px; }
.footer-logo { height:30px; margin-bottom:0.85rem; }
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.75;
  margin-top: 0.5rem;
}
.footer-links h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.25rem;
}
.footer-links a {
  display: block;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.55);
  padding: 0.3rem 0;
  transition: color var(--transition);
}
.footer-links a:hover { color:var(--white); }
.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-social { display:flex; gap:0.75rem; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,0.4);
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.footer-social a:hover {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}
.footer-social svg { width:16px; height:16px; fill:currentColor; }

/* ===== NOTICE / BADGE ===== */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  background: var(--red-subtle);
  color: var(--red);
  border: 1px solid rgba(196,30,58,0.2);
}

/* ===== DIVIDER ===== */
.divider { height:1px; background:var(--border); margin:0; border:none; }

/* ===== RESPONSIVE ===== */
@media (max-width:1024px) {
  .hero-grid { grid-template-columns:1fr 0.85fr; gap:3rem; }
  .about-grid { grid-template-columns:1fr 1.1fr; gap:3rem; }
  .service-detail-grid { grid-template-columns:1fr 1.5fr; gap:3rem; }
  .blog-featured { grid-template-columns:1fr 1fr; }
}

@media (max-width:960px) {
  /* El visual vuelve al flujo normal y se muestra compacto */
  .hero-grid { display:flex; flex-direction:column; align-items:stretch; }
  .hero-content { max-width:none; }
  .hero-visual {
    position:static; width:100%; min-width:0;
    order:-1; margin-bottom:2.5rem; display:block !important;
  }
  .hero-anim { height:auto; aspect-ratio:16/9; padding-left:0; border-left:none; border:1px solid var(--border); }
  .hero-anim::after { display:none; }
  .hero-anim-mark { gap:15px; }
  .ham-bars { gap:9px; }
  .ham-bars span { width:12px; height:72px; }
  .ham-lines { gap:9px; }
  .ham-lines span { width:72px; height:12px; }
  .hero-anim-caption { bottom:0.85rem; font-size:0.58rem; letter-spacing:0.16em; }

  .people-grid, .people-grid--thirds { grid-template-columns:1fr; }
  .people-row { grid-template-columns:1fr 1fr; }
  .creds-grid { grid-template-columns:1fr 1fr; }
  .hero-grid { grid-template-columns:1fr; }
  .hero-visual { display:none; }
  .about-grid { grid-template-columns:1fr; gap:2rem; }
  .services-grid { grid-template-columns:1fr 1fr; }
  .cov-cards { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr 1fr; }
  .partners-grid { grid-template-columns:1fr 1fr; }
  .members-grid { grid-template-columns:1fr; }
  .staff-grid { grid-template-columns:1fr 1fr; }
  .test-grid { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; gap:3rem; }
  .footer-inner { gap:2rem; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .blog-grid { grid-template-columns:1fr 1fr; }
  .blog-featured { grid-template-columns:1fr; }
  .blog-featured-thumb { aspect-ratio:16/7; }
  .service-detail-grid { grid-template-columns:1fr; }
  .service-detail-sidebar { position:static; }
  .service-benefits { grid-template-columns:1fr 1fr; }
}

@media (max-width:640px) {
  .brand { font-size:23px; }
  .people-row { grid-template-columns:1fr; }
  .creds-grid { grid-template-columns:1fr; }
  .person { padding:1.75rem; gap:1.1rem; }
  .person-mono { width:52px; height:52px; font-size:1rem; }
  .cookie-inner { flex-direction:column; align-items:flex-start; gap:1rem; }
  .cookie-actions { width:100%; }
  .cookie-actions .btn { flex:1; justify-content:center; }
  .article-body h2 { font-size:1.3rem; }
  .container { padding:0 1.25rem; }
  .section { padding:4rem 0; }
  .nav { display:none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav.open a {
    font-size: 1.1rem;
    letter-spacing: 0.05em;
  }
  .nav.open .nav-cta { padding:0.8rem 2.5rem; font-size:0.9rem!important; }
  .hamburger { display:flex; }
  .hero { padding:calc(var(--header-h) + 2rem) 0 4rem; }
  .hero-stats { position:relative; bottom:auto; left:auto; margin-top:2rem; gap:1.5rem; flex-wrap:wrap; }
  .services-grid { grid-template-columns:1fr; }
  .about-features { grid-template-columns:1fr; }
  .staff-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .why-grid { grid-template-columns:1fr; }
  .partners-grid { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; gap:2rem; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:1.5rem; }
  .blog-grid { grid-template-columns:1fr; }
  .service-benefits { grid-template-columns:1fr; }
  .cta-band-btns { flex-direction:column; align-items:center; }
  .footer-copy { flex-direction:column; align-items:flex-start; }
  .page-hero h1 { font-size:clamp(1.9rem,6vw,2.5rem); }
}

@media (max-width:400px) {
  .hero-title { font-size:2.4rem; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .hero-stats { padding:1rem 1.5rem; }
}
