/* ═══════════════════════════════════════════════════════════
   INVAXOR — CSS Mobile-First
   Breakpoints:
     base:    0px    → mobile (diseño base)
     tablet:  768px  → @media (min-width: 768px)
     desktop: 1024px → @media (min-width: 1024px)
═══════════════════════════════════════════════════════════ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { max-width: 100%; display: block; }

/* ── VARIABLES ── */
:root {
  --blue:       #2563EB;
  --blue-dark:  #1D4ED8;
  --blue-light: #EFF6FF;
  --navy:       #0F172A;
  --gray-900:   #1E293B;
  --gray-700:   #334155;
  --gray-500:   #64748B;
  --gray-400:   #94A3B8;
  --gray-200:   #E2E8F0;
  --gray-100:   #F1F5F9;
  --gray-50:    #F8FAFC;
  --white:      #ffffff;
  --font:       'Inter', sans-serif;

  /* Tipografía con clamp — escala automática entre móvil y desktop */
  --text-hero:  clamp(22px, 5.5vw, 46px);
  --text-h2:    clamp(18px, 4vw,   40px);
  --text-h3:    clamp(15px, 2.5vw, 22px);
  --text-h4:    clamp(13px, 2vw,   17px);
  --text-base:  clamp(13px, 1.5vw, 15px);
  --text-sm:    clamp(11px, 1.3vw, 13px);
  --text-xs:    clamp(10px, 1.2vw, 12px);

  /* Espaciado con clamp */
  --sp-xs:  clamp(6px,  1.5vw, 12px);
  --sp-sm:  clamp(10px, 2vw,   20px);
  --sp-md:  clamp(16px, 3vw,   32px);
  --sp-lg:  clamp(24px, 5vw,   60px);
  --sp-xl:  clamp(32px, 6vw,   80px);
  --sp-2xl: clamp(40px, 8vw,  120px);

  /* Radio de borde */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
}
.site-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(15,23,42,0.04);
  overflow-x: hidden;
}

/* ── SECTIONS ── */
.section { display: none; }
.section.active { display: block; }

/* ─────────────────────────────────────────
   BOTONES
───────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white);
  font-size: var(--text-base); font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-sm);
  cursor: pointer; border: none; text-decoration: none;
  transition: background 0.2s; white-space: nowrap;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); color: var(--gray-700);
  font-size: var(--text-base); font-weight: 600;
  padding: 12px 22px; border-radius: var(--r-sm);
  cursor: pointer; border: 1.5px solid var(--gray-200);
  text-decoration: none; transition: all 0.2s; white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--white); color: var(--navy);
  font-size: var(--text-base); font-weight: 700;
  padding: 12px 22px; border-radius: var(--r-sm);
  cursor: pointer; border: none;
  text-decoration: none; transition: all 0.2s;
}
.btn-white:hover { background: var(--gray-50); transform: translateY(-1px); }
.arrow-svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ─────────────────────────────────────────
   LABELS / BREADCRUMB
───────────────────────────────────────── */
.breadcrumb {
  font-size: var(--text-xs); font-weight: 600;
  color: var(--gray-500); letter-spacing: 0.5px;
  margin-bottom: var(--sp-sm);
}
.breadcrumb span { color: var(--blue); }
.section-label {
  font-size: var(--text-xs); font-weight: 700;
  color: var(--blue); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 10px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 700;
  color: var(--blue); letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--blue-light);
  padding: 5px 14px; border-radius: 20px;
  margin-bottom: var(--sp-sm);
}

/* ─────────────────────────────────────────
   NAV — mobile base (fixed)
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-md);
  height: 60px;
}
.nav-logo { display: flex; align-items: center; cursor: pointer; }
.nav-logo img { height: 34px; width: auto; }

/* Nav links — ocultos en mobile, visibles en desktop */
.nav-links { display: none; }
.nav-cta   { display: none; }
.nav-tienda { display: none; }

/* Hamburger */
.hamburger-btn {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 6px; border-radius: var(--r-sm);
  transition: background 0.2s;
}
.hamburger-btn:hover { background: var(--gray-100); }
.hamburger-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-nav-overlay {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(15,23,42,0.5); z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: all; }
.mobile-nav-menu {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 8px 24px rgba(15,23,42,0.12);
  padding: 8px 0 16px;
}
.mobile-nav-menu a {
  display: block;
  font-size: 16px; font-weight: 500; color: var(--gray-700);
  text-decoration: none; padding: 14px 24px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  transition: background 0.15s, color 0.15s;
}
.mobile-nav-menu a:last-child { border-bottom: none; }
.mobile-nav-menu a:hover { background: var(--gray-50); color: var(--blue); }
.mobile-nav-menu a.active { color: var(--blue); font-weight: 600; }
.mobile-nav-menu .mobile-tienda { color: var(--blue); font-weight: 600; }
.mobile-nav-menu .mobile-cta {
  margin: 12px 16px 0;
  background: var(--blue); color: var(--white) !important;
  border-radius: var(--r-sm); text-align: center;
  font-weight: 600; border-bottom: none;
}
.mobile-nav-menu .mobile-cta:hover { background: var(--blue-dark); }

/* Compensar nav fixed */
.section.active { padding-top: 60px; }

/* ─────────────────────────────────────────
   HOME HERO — mobile
───────────────────────────────────────── */
.hero { display: flex; flex-direction: column; }
.hero-left {
  padding: var(--sp-lg) var(--sp-md);
  display: flex; flex-direction: column;
  justify-content: flex-start;
  background: var(--white);
  order: 1; /* texto debajo de la imagen en móvil */
}
/* Hero image: visible en mobile con altura limitada */
.hero-right {
  display: block; position: relative; overflow: hidden;
  height: clamp(200px, 50vw, 320px);
  order: 0; /* imagen arriba del texto en móvil */
}
.hero-bg {
  position: absolute; inset: 0;
  background: #f7f9fc;
}
.hero-img-placeholder {
  position: absolute; inset: 0;
  background:
    url('assets/home-hero.webp?v=20260915b') 68% center/cover no-repeat;
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 800; color: var(--navy);
  line-height: 1.1; margin-bottom: var(--sp-sm);
  letter-spacing: -1px;
}
.hero-title span { color: var(--blue); }
.hero-sub,
.hero-desc {
  font-size: var(--text-base);
  color: var(--gray-500); line-height: 1.65;
  margin-bottom: var(--sp-md); max-width: 560px;
}
.hero-desc strong { color: var(--gray-700); font-weight: 600; }
.hero-btns {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.hero-buttons {
  display: flex; flex-direction: column;
  gap: 10px; align-items: stretch;
}
.hero-buttons .btn-primary,
.hero-buttons .btn-secondary { width: 100%; }

/* ─────────────────────────────────────────
   TRUST BAR — mobile
───────────────────────────────────────── */
.trust-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-200);
  padding: var(--sp-md) var(--sp-md);
  gap: 0;
}
.trust-item {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 8px; padding: var(--sp-sm) var(--sp-xs);
  border-bottom: 1px solid var(--gray-200);
}
.trust-item:nth-child(odd)  { border-right: 1px solid var(--gray-200); }
.trust-item:nth-last-child(-n+2) { border-bottom: none; }
.trust-icon { width: 52px; height: 52px; object-fit: cover; object-position: center; flex-shrink: 0; }
.trust-item h4 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.trust-item p  { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.4; }

/* ─────────────────────────────────────────
   HOME SOLUTIONS — mobile
───────────────────────────────────────── */
.home-solutions { padding: var(--sp-xl) var(--sp-md); background: var(--white); }
.section-header { text-align: center; margin-bottom: var(--sp-lg); }
.section-header h2 { font-size: var(--text-h2); font-weight: 800; color: var(--navy); letter-spacing: -0.5px; margin-bottom: 12px; }
.section-header p  { font-size: var(--text-base); color: var(--gray-500); max-width: 580px; margin: 0 auto; }
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: var(--sp-sm);
}
.sol-card {
  border: 1.5px solid #E7EDF6; border-radius: var(--r-xl);
  padding: var(--sp-md) var(--sp-sm);
  background: linear-gradient(180deg,#fff 0%,#fcfdfe 100%);
  box-shadow: 0 10px 30px rgba(15,23,42,0.04);
  transition: all 0.2s; cursor: pointer;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.sol-card:hover { border-color: #D7E4F7; box-shadow: 0 16px 36px rgba(37,99,235,0.08); transform: translateY(-3px); }
.sol-card-icon { width: clamp(56px,10vw,88px); height: clamp(56px,10vw,88px); margin: 0 auto var(--sp-sm); object-fit: contain; }
.sol-card h3 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.25; }
.sol-card p  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }

/* ─────────────────────────────────────────
   HOME JOURNEY — mobile first
───────────────────────────────────────── */
.home-journey { padding: 26px var(--sp-md) var(--sp-lg); background: var(--white); }
.journey-cards { display: grid; gap: 14px; }
.journey-card { min-height: 278px; position: relative; overflow: hidden; border-radius: 18px; cursor: pointer; isolation: isolate; background: var(--navy); box-shadow: 0 12px 28px rgba(0,35,87,.08); }
.journey-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.journey-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; z-index: -2; }
.journey-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,21,50,.05) 20%, rgba(0,23,57,.20) 45%, rgba(0,23,57,.88) 100%); }
.journey-content { position: absolute; left: 22px; right: 48px; bottom: 20px; color: var(--white); }
.journey-content h3 { margin: 0 0 8px; color: var(--white); font-size: 25px; line-height: 1.13; letter-spacing: -.25px; }
.journey-content p { margin: 0; max-width: 390px; color: rgba(255,255,255,.94); font-size: 15px; line-height: 1.48; }
.journey-arrow { position: absolute; right: 18px; bottom: 22px; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; color: var(--white); font-size: 18px; transition: transform .2s ease, background .2s ease; }
.journey-benefits { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
.journey-benefit { min-height: 160px; padding: 20px 16px 18px; border-bottom: 1px solid var(--gray-200); }
.journey-benefit:nth-child(odd) { border-right: 1px solid var(--gray-200); }
.journey-benefit img { display: block; width: 43px; height: 43px; object-fit: contain; margin-bottom: 13px; }
.journey-benefit h3 { margin: 0 0 7px; color: var(--navy); font-size: 15px; line-height: 1.25; }
.journey-benefit p { margin: 0; color: var(--gray-500); font-size: 13px; line-height: 1.5; }
@media (hover:hover) {
  .journey-card:hover .journey-photo { transform: scale(1.035); }
  .journey-card:hover .journey-arrow { transform: translateX(3px); background: rgba(255,255,255,.16); }
}

/* ─────────────────────────────────────────
   PAGE HERO (compartido: todas las secciones)
───────────────────────────────────────── */
.page-hero,
.domo-hero,
.marcas-hero,
.blog-hero,
.contacto-hero {
  display: flex; flex-direction: column;
}
.page-hero-left,
.domo-hero   > .page-hero-left,
.marcas-hero > .page-hero-left,
.blog-hero   > .page-hero-left,
.contacto-hero > .page-hero-left {
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
  display: flex; flex-direction: column;
  justify-content: flex-start; background: var(--white);
  order: 1;
}
.page-hero-right,
.domo-hero-right,
.marcas-hero-right,
.blog-hero-right {
  height: clamp(160px, 35vw, 300px);
  order: 0; /* imagen arriba en mobile */
  overflow: hidden;
}
/* contacto-right: contiene formulario, no imagen fija */
.contacto-right {
  order: 0;
  padding: var(--sp-lg) var(--sp-md);
  background: var(--gray-50);
}
.page-hero-img { width: 100%; height: 100%; background-size: cover; background-position: center; }
.page-hero-left h1,
.page-hero-left h2 {
  font-size: var(--text-h2); font-weight: 800;
  color: var(--navy); line-height: 1.15;
  letter-spacing: -0.5px; margin-bottom: 10px;
}
.page-hero-left h2::after {
  content: ''; display: block;
  width: clamp(48px,8vw,80px); height: 3px;
  background: #93c5fd; border-radius: 2px;
  margin-top: 12px; margin-bottom: 14px;
}
.page-hero-left p {
  font-size: var(--text-base); color: var(--gray-500);
  line-height: 1.65; max-width: 520px;
}

/* ─────────────────────────────────────────
   SECTOR CARDS (Particulares + Empresas)
───────────────────────────────────────── */
.section-inner-pad { padding: var(--sp-md) var(--sp-md) var(--sp-xs); }
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-sm);
  padding: 0 var(--sp-md) var(--sp-xl);
}
.sector-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: all 0.2s;
}
.sector-card:hover { box-shadow: 0 8px 32px rgba(37,99,235,0.12); transform: translateY(-3px); }
.sector-img { height: clamp(100px,22vw,160px); overflow: hidden; position: relative; }
.sector-img-bg { width: 100%; height: 100%; object-fit: cover; }
.sector-img-overlay {
  position: absolute; bottom: 10px; left: 10px;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.sector-img-overlay svg { width: 18px; height: 18px; color: var(--blue); }
.sector-body { padding: clamp(10px,2.5vw,18px); }
.sector-body h3 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.3; }
.sector-body p  { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.45; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.saber-mas { font-size: var(--text-xs); font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; cursor: pointer; }
.saber-mas svg { width: 12px; height: 12px; }

/* Soluciones full (Particulares/Empresas segunda fila) */
.sols-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: var(--sp-sm); padding: 0 var(--sp-md) var(--sp-md);
}
.sols-full-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-lg);
  padding: var(--sp-md); display: flex; flex-direction: column; gap: 8px;
}
.sols-full-card h3 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); }
.sols-full-card p  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.55; }

/* Trust sectores */
.sectores-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0; margin: 0 var(--sp-md) var(--sp-xl);
  padding: var(--sp-md); border-radius: var(--r-lg);
  background: var(--gray-50); border: 1px solid var(--gray-200);
}
.sectores-trust-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: var(--sp-xs) var(--sp-sm);
  gap: 4px;
}
.sectores-trust-item:nth-child(odd) { border-right: 1px solid var(--gray-200); }
.sectores-trust-item strong { font-size: var(--text-h4); font-weight: 800; color: var(--navy); }
.sectores-trust-item span   { font-size: var(--text-xs); color: var(--gray-500); }

/* ─────────────────────────────────────────
   DOMÓTICA
───────────────────────────────────────── */
.domo-hero-right {
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
}
.domo-pills { display: none; } /* oculto en mobile */

.domo-why { padding: var(--sp-xl) var(--sp-md); background: var(--white); }
.domo-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: var(--sp-md);
}
.domo-why-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.domo-why-card svg { width: 28px; height: 28px; color: var(--blue); }
.domo-why-card h4 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); }
.domo-why-card p  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.6; }

.domo-control { padding: var(--sp-xl) var(--sp-md); }
.domo-control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: var(--sp-sm);
}
.domo-ctrl-card {
  border-radius: var(--r-lg); overflow: hidden;
  border: 1.5px solid var(--gray-200);
  cursor: pointer; transition: all 0.2s;
}
.domo-ctrl-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.domo-ctrl-img { height: clamp(70px,15vw,120px); overflow: hidden; }
.domo-ctrl-img div { width: 100%; height: 100%; background-size: cover; background-position: center; }
.domo-ctrl-body { padding: clamp(8px,2vw,14px); }
.domo-ctrl-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.domo-ctrl-icon svg { width: 13px; height: 13px; color: var(--blue); }
.domo-ctrl-body h4 { font-size: var(--text-xs); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.domo-ctrl-body p  { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.4; }

/* Flip cards */
.domo-flip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: var(--sp-sm);
  padding: 0 var(--sp-md) var(--sp-xl);
}
.flip-card { height: clamp(140px,28vw,220px); perspective: 1000px; cursor: pointer; }
.flip-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s ease; border-radius: var(--r-lg); }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front,
.flip-card-back { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--r-lg); overflow: hidden; }
.flip-card-front img { width: 100%; height: 100%; object-fit: cover; }
.flip-card-front-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px; background: linear-gradient(transparent,rgba(15,23,42,0.75)); }
.flip-card-front-overlay h4 { font-size: var(--text-sm); font-weight: 700; color: white; }
.flip-card-back { background: var(--blue); transform: rotateY(180deg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--sp-md); text-align: center; }
.flip-card-back svg  { width: 30px; height: 30px; stroke: rgba(255,255,255,0.85); margin-bottom: 10px; flex-shrink: 0; }
.flip-card-back h4   { font-size: var(--text-sm); font-weight: 700; color: white; margin-bottom: 6px; }
.flip-card-back p    { font-size: var(--text-xs); color: rgba(255,255,255,0.88); line-height: 1.55; }

/* ─────────────────────────────────────────
   MARCAS
───────────────────────────────────────── */
.marcas-hero-right {
  display: flex; flex-direction: column; overflow: hidden;
}
.marcas-hero-right .ajax-img {
  flex: 1; min-height: 0;
  background: url('assets/ajax-devices-white.jpg') center/cover no-repeat;
}
.ajax-bar {
  flex-shrink: 0; position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  background: #f8fafc; border-top: 1px solid var(--gray-200);
}
.ajax-btn {
  position: absolute; right: 16px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-xs); font-weight: 600; color: var(--blue);
  background: white; border: 1px solid var(--blue);
  padding: 4px 9px; border-radius: 6px; cursor: pointer;
  text-decoration: none; transition: all 0.2s;
}
.ajax-btn:hover { background: var(--blue); color: white; }

.marcas-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,180px),1fr));
  gap: var(--sp-sm);
}
.marca-badge { display: flex; align-items: flex-start; gap: 10px; }
.marca-badge svg { width: 28px; height: 28px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.marca-badge h4 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.marca-badge p  { font-size: var(--text-xs); color: var(--gray-500); }

.marcas-trust-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-md) var(--sp-md);
  margin-top: var(--sp-md);
  gap: 0;
}
.marcas-trust-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 6px;
  padding: var(--sp-sm) var(--sp-xs);
  border-bottom: 1px solid var(--gray-200);
}
.marcas-trust-item:nth-child(odd)   { border-right: 1px solid var(--gray-200); }
.marcas-trust-item:nth-last-child(-n+2) { border-bottom: none; }
.marcas-trust-item svg    { width: 20px; height: 20px; color: var(--blue); }
.marcas-trust-item strong { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.marcas-trust-item span   { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.4; }

.brands-grid-section { padding: var(--sp-lg) var(--sp-md) var(--sp-xl); }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%,90px),1fr));
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}
.brand-tile {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-md);
  padding: clamp(8px,2vw,16px) clamp(6px,1.5vw,14px);
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(56px,12vw,80px);
  transition: border-color 0.2s;
}
.brand-tile img { height: clamp(28px,6vw,50px); width: auto; max-width: 100%; object-fit: contain; }
.brand-tile img[alt="IMOU"] { height: clamp(18px,4vw,32px); }

.brands-cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-md);
  padding: var(--sp-md) 0 0;
  border-top: 1px solid var(--gray-200);
}
.brands-cta-left {
  display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0;
}
.brands-cta-left h3 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.brands-cta-bar p { font-size: var(--text-sm); color: var(--gray-500); }
.brands-cta-bar .btn-primary { font-size: var(--text-sm); padding: 9px 18px; flex-shrink: 0; }
.brands-cta-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brands-cta-icon svg { width: 18px; height: 18px; color: var(--blue); }

/* ─────────────────────────────────────────
   BLOG
───────────────────────────────────────── */
.blog-hero-right { background: url('assets/blog-hero-cabecera.jpg') center/cover; overflow: hidden; }
.blog-search { margin-left: auto; position: relative; flex-shrink: 0; }
.blog-search input {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  padding: 8px 14px 8px 34px; font-size: var(--text-sm);
  color: var(--gray-700); outline: none; font-family: var(--font);
  width: clamp(120px, 30vw, 200px);
}
.blog-search input:focus { border-color: var(--blue); }
.blog-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--gray-400); pointer-events: none; }
.blog-filters {
  display: flex; align-items: center; gap: 8px;
  padding: var(--sp-md) var(--sp-md) 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-filters::-webkit-scrollbar { display: none; }
.blog-filter-btn,
.filter-btn {
  font-size: var(--text-xs); font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-700); cursor: pointer;
  transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.blog-filter-btn.active, .blog-filter-btn:hover,
.filter-btn.active, .filter-btn:hover {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-md) var(--sp-xl);
}
.blog-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; transition: all 0.2s; background: var(--white);
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(37,99,235,0.1); transform: translateY(-2px); }
.blog-img { height: clamp(160px,30vw,200px); overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.3s; }
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: var(--sp-md); }
.blog-cat { font-size: var(--text-xs); font-weight: 700; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.blog-body h3 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.blog-body p  { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.55; margin-bottom: 12px; }
.blog-meta { display: flex; align-items: center; gap: 12px; font-size: var(--text-xs); color: var(--gray-400); }
.blog-meta span { display: flex; align-items: center; gap: 4px; }
.blog-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.blog-arrow { margin-left: auto; color: var(--blue); }
.blog-arrow svg { width: 16px; height: 16px; }
/* Newsletter: barra horizontal compacta */
.newsletter-bar {
  margin: 0 var(--sp-md) var(--sp-xl);
  background: var(--gray-50); border: 1.5px solid var(--gray-200);
  border-radius: 12px; padding: 14px 20px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.newsletter-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.newsletter-icon svg { width: 18px; height: 18px; color: var(--blue); }
.newsletter-text { flex: 1; min-width: 160px; }
.newsletter-text h3 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.newsletter-text p { font-size: var(--text-xs); color: var(--gray-500); margin-top: 1px; }
.newsletter-form { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.newsletter-form input {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  padding: 9px 14px; font-size: var(--text-sm);
  font-family: var(--font); outline: none; width: 200px;
}
.newsletter-form input:focus { border-color: var(--blue); }

/* ─────────────────────────────────────────
   CONTACTO
───────────────────────────────────────── */
.contacto-right { background: url('assets/contacto-hero-bg.jpg') center/cover; }
.contacto-icons { display: flex; flex-direction: column; gap: 18px; margin-bottom: var(--sp-md); }
.contacto-icon-item { display: flex; align-items: flex-start; gap: 12px; }
.contacto-icon-item svg { width: 28px; height: 28px; color: var(--blue); stroke: var(--blue); flex-shrink: 0; margin-top: 2px; }
.contacto-icon-item h4 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.contacto-icon-item p { font-size: var(--text-sm); color: var(--gray-500); }
.contacto-form-wrap {
  background: var(--white); border-radius: var(--r-xl);
  padding: var(--sp-md);
  box-shadow: 0 8px 32px rgba(15,23,42,0.10);
  width: 100%;
}
.contact-form-box h3 { font-size: var(--text-h3); font-weight: 700; color: var(--navy); margin-bottom: var(--sp-md); }
.contacto-direct {
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.contacto-direct-header { text-align: center; margin-bottom: var(--sp-sm); }
.contacto-direct-header h2 { font-size: var(--text-h3); font-weight: 800; color: var(--navy); }
.direct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 14px;
}
.direct-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--r-md); padding: 11px 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.direct-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.direct-card svg { width: 18px; height: 18px; color: var(--blue); overflow: visible; flex-shrink: 0; }
.direct-card h4 { font-size: var(--text-xs); font-weight: 700; color: var(--navy); }
.direct-card p { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.3; }
.direct-card a { font-size: var(--text-xs); color: var(--blue); font-weight: 600; text-decoration: none; }
.contacto-why { padding: var(--sp-lg) var(--sp-md); background: var(--white); }
/* En móvil: ocultar título, sección-label y párrafo — solo visible el botón */
.contacto-why .section-label,
.contacto-why h2,
.contacto-why > p { display: none; }
@media (min-width: 768px) {
  .contacto-why .section-label,
  .contacto-why h2,
  .contacto-why > p { display: block; }
}
.contacto-bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.contacto-why { display: flex; flex-direction: column; }
.contacto-why .why-grid { flex: 1; }
.contacto-pro { display: flex; flex-direction: column; }
.contacto-form-section { padding: var(--sp-xl) var(--sp-md); }
.contacto-form-section h2 { font-size: var(--text-h2); font-weight: 800; color: var(--navy); margin-bottom: var(--sp-sm); }
.form-group { margin-bottom: var(--sp-sm); }
.form-group label { display: block; font-size: var(--text-sm); font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--r-sm);
  font-size: var(--text-base); font-family: var(--font); outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-sm); }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input { width: auto; margin-top: 3px; }
.form-check label { font-size: var(--text-sm); color: var(--gray-500); }
.form-check a { color: var(--blue); }

.direct-card {
  border: 1.5px solid var(--gray-200); border-radius: var(--r-lg);
  padding: var(--sp-md); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; transition: all 0.2s; color: var(--gray-900);
}
.direct-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.direct-card svg  { width: 28px; height: 28px; color: var(--blue); }
.direct-card h4   { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.direct-card span { font-size: var(--text-xs); color: var(--gray-500); }

.contacto-why { padding: var(--sp-xl) var(--sp-md); background: var(--gray-50); }
.contacto-why h2 { font-size: var(--text-h3); font-weight: 800; color: var(--navy); margin-bottom: var(--sp-md); }
/* why-grid oculto en móvil, visible desde tablet */
.why-grid { display: none; }
.btn-llamar { display: flex; width: fit-content; margin: 0 auto; white-space: nowrap; }
@media (min-width: 768px) {
  .why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%,200px),1fr));
    gap: var(--sp-sm); margin-top: var(--sp-sm);
  }
}
.why-item { display: flex; gap: 12px; align-items: flex-start; }
.why-item svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
.why-item h4 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-item p  { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.5; }
.why-card { display: flex; flex-direction: column; gap: 8px; }
.why-card svg { width: 24px; height: 24px; color: var(--blue); flex-shrink: 0; }
.why-card h4 { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.why-card p  { font-size: var(--text-xs); color: var(--gray-500); line-height: 1.5; }

.contacto-pro-overlay {
  background: var(--navy); padding: var(--sp-xl) var(--sp-md);
  display: flex; flex-direction: column; justify-content: center;
}
.contacto-pro-overlay h2 { font-size: var(--text-h3); font-weight: 800; color: var(--white); margin-bottom: var(--sp-sm); }
.contacto-pro-overlay p  { font-size: var(--text-base); color: rgba(255,255,255,0.7); line-height: 1.65; margin-bottom: var(--sp-md); }

/* ─────────────────────────────────────────
   MODALES
───────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.6); z-index: 1000;
  align-items: center; justify-content: center;
  padding: var(--sp-sm);
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: var(--r-xl);
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
  position: relative;
}
.modal-legal { width: min(100%, 680px); }
.modal-article { width: min(100%, 740px); max-height: 88vh; }
.modal-photo { height: clamp(140px,30vw,200px); overflow: hidden; position: relative; }
.modal-photo img { width: 100%; height: 100%; object-fit: cover; }
.modal-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,rgba(15,23,42,0) 40%,rgba(15,23,42,0.6) 100%);
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(15,23,42,0.5); color: white;
  border: none; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  z-index: 10; transition: background 0.2s;
}
.modal-close:hover { background: rgba(15,23,42,0.8); }
.modal-body { padding: clamp(20px,4vw,36px) clamp(16px,4vw,40px) clamp(24px,4vw,40px); }
.modal-body h2 { font-size: var(--text-h3); font-weight: 800; color: var(--navy); margin-bottom: var(--sp-xs); }
.modal-body > p { font-size: var(--text-base); color: var(--gray-500); line-height: 1.65; margin-bottom: var(--sp-md); }
.modal-points { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--sp-md); }
.modal-points li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--text-base); color: var(--gray-700); line-height: 1.5;
}
.modal-points li::before {
  content: ''; width: 20px; height: 20px; flex-shrink: 0;
  background: var(--blue-light); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 70%; background-position: center; background-repeat: no-repeat;
  margin-top: 2px;
}
.modal-footer {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding-top: var(--sp-sm); border-top: 1px solid var(--gray-200);
}
.modal-footer .btn-primary,
.modal-footer .btn-secondary { flex: 1; min-width: 140px; }

/* Modal artículo blog */
.modal-article .modal-body { padding: clamp(20px,4vw,36px) clamp(16px,4vw,40px) clamp(24px,4vw,40px); }
.modal-article .article-meta { display: flex; align-items: center; gap: 14px; font-size: var(--text-xs); color: var(--gray-400); margin-bottom: 16px; margin-top: 4px; flex-wrap: wrap; }
.modal-article .article-meta span { display: flex; align-items: center; gap: 4px; }
.modal-article .article-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.modal-article .article-cta { background: #eff6ff; border-radius: var(--r-lg); padding: var(--sp-md); margin-top: var(--sp-lg); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-sm); flex-wrap: wrap; }
.modal-article .article-cta p { font-size: var(--text-base); font-weight: 600; color: var(--navy); margin: 0; }
.article-body h2 { font-size: var(--text-h4); font-weight: 700; color: var(--navy); margin: var(--sp-md) 0 var(--sp-xs); }
.article-body p  { font-size: var(--text-base); color: var(--gray-700); line-height: 1.7; margin-bottom: var(--sp-sm); }
.article-body ul { padding-left: var(--sp-md); margin-bottom: var(--sp-sm); }
.article-body li { font-size: var(--text-base); color: var(--gray-700); line-height: 1.65; margin-bottom: 6px; }
.article-body strong { color: var(--navy); }

/* ─────────────────────────────────────────
   BOTONES FLOTANTES
───────────────────────────────────────── */
.float-group {
  position: fixed; bottom: 20px; right: 20px; z-index: 198;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.float-ayuda {
  background: var(--navy); color: white;
  font-size: 11px; font-weight: 600; font-family: var(--font);
  padding: 5px 10px; border-radius: 20px;
  white-space: nowrap; pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.float-icons { display: flex; gap: 10px; justify-content: center; }
.float-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  text-decoration: none;
}
.float-btn:hover { transform: scale(1.1); }
.float-btn svg { width: 22px; height: 22px; flex-shrink: 0; color: white; fill: white; }
.float-wa  { background: #25D366; }
.float-tg  { background: #229ED9; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: var(--sp-lg) var(--sp-md);
  display: flex; flex-direction: column;
  align-items: center; gap: var(--sp-sm);
}
.footer-social { display: flex; align-items: center; gap: 18px; }
.footer-social a { opacity: 0.8; transition: opacity 0.2s; }
.footer-social a:hover { opacity: 1; }
.footer-bottom {
  display: flex; flex-direction: column-reverse;
  align-items: center; gap: var(--sp-sm);
  width: 100%; text-align: center;
}
.footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: var(--sp-sm);
}
.footer-links a {
  font-size: var(--text-xs); color: var(--gray-500);
  text-decoration: none; cursor: pointer;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom > span {
  font-size: var(--text-xs); color: var(--gray-400);
}

/* ─────────────────────────────────────────
   TABLET — min-width: 768px
───────────────────────────────────────── */
@media (min-width: 768px) {
  /* Nav */
  nav { height: 64px; padding: 0 var(--sp-lg); }
  .nav-logo img { height: 42px; }
  .hamburger-btn, .mobile-nav-overlay { display: none !important; }
  .nav-links {
    display: flex; align-items: center; gap: 4px;
  }
  .nav-links a {
    font-size: 13px; font-weight: 500; color: var(--gray-700);
    text-decoration: none; padding: 6px 11px; border-radius: 6px;
    cursor: pointer; transition: color 0.2s; position: relative;
  }
  .nav-links a:hover { color: var(--blue); }
  .nav-links a.active { color: var(--blue); }
  .nav-links a.active::after {
    content: ''; position: absolute; bottom: -1px; left: 11px; right: 11px;
    height: 2px; background: var(--blue); border-radius: 2px;
  }
  .nav-tienda {
    display: block;
    color: var(--blue); font-weight: 600; font-size: 13px;
    text-decoration: none; white-space: nowrap;
  }
  .nav-cta {
    display: flex; align-items: center; gap: 8px;
    background: var(--white); color: var(--blue);
    border: 1.5px solid var(--blue);
    font-size: 13px; font-weight: 700; line-height: 1;
    padding: 9px 18px; border-radius: var(--r-sm);
    cursor: pointer; text-decoration: none; transition: all 0.2s;
    white-space: nowrap;
  }
  .nav-cta:hover { background: var(--blue); color: var(--white); }

  /* Compensar nav altura */
  .section.active { padding-top: 64px; }

  /* Hero */
  .hero { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-left { order: 0; }
  .hero-right { display: block; min-height: 360px; order: 0; height: auto; }
  /* Recupera gradiente lateral en tablet/desktop */
  .hero-img-placeholder {
    background:
      linear-gradient(90deg,
        rgba(255,255,255,0.99) 0%,
        rgba(255,255,255,0.94) 12%,
        rgba(255,255,255,0.70) 25%,
        rgba(255,255,255,0.30) 35%,
        rgba(255,255,255,0) 45%),
      url('assets/home-hero.webp?v=20260915b') 68% center/cover no-repeat;
  }
  .hero-buttons { flex-direction: row; align-items: center; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: auto; }

  /* Home journey */
  .home-journey { padding: 26px var(--sp-lg) 38px; }
  .journey-cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
  .journey-card { min-height: 260px; }
  .journey-content { left: 18px; right: 42px; bottom: 18px; }
  .journey-content h3 { font-size: 21px; }
  .journey-content p { font-size: 14px; }
  .journey-benefits { grid-template-columns: repeat(5,1fr); }
  .journey-benefit { min-height: 142px; padding: 18px 13px; border-bottom: 0; border-right: 1px solid var(--gray-200); }
  .journey-benefit:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .journey-benefit:last-child { border-right: 0; }
  .journey-benefit img { width: 40px; height: 40px; }
  .journey-benefit h3 { font-size: 14px; }
  .journey-benefit p { font-size: 12px; }

  /* Trust bar */
  .trust-bar {
    grid-template-columns: repeat(4,1fr);
    padding: var(--sp-lg) var(--sp-xl);
  }
  .trust-item {
    flex-direction: row; text-align: left;
    align-items: flex-start; gap: 14px;
    border-bottom: none;
    padding: 0 var(--sp-md);
    border-right: 1px solid var(--gray-200);
  }
  .trust-item:nth-child(odd)  { border-right: 1px solid var(--gray-200); }
  .trust-item:last-child       { border-right: none; }
  .trust-item:nth-last-child(-n+2) { border-bottom: none; }
  .trust-icon { width: 60px; height: 60px; }

  /* Solutions */
  .solutions-grid { grid-template-columns: repeat(2,1fr); }

  /* Page heroes */
  .page-hero,
  .domo-hero, .marcas-hero, .blog-hero {
    display: grid; grid-template-columns: 1fr 1fr;
    height: 320px;
  }
  .contacto-hero {
    display: grid; grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .page-hero-left,
  .domo-hero > .page-hero-left,
  .marcas-hero > .page-hero-left,
  .blog-hero > .page-hero-left,
  .contacto-hero > .page-hero-left {
    order: 0;
  }
  .page-hero-right, .domo-hero-right, .marcas-hero-right,
  .blog-hero-right { order: 0; height: auto; }
  /* contacto-right en tablet: bg imagen + form centrado */
  .contacto-right {
    position: relative; overflow: hidden;
    background: url('assets/contacto-hero-bg.jpg') center/cover;
    display: flex; align-items: center; justify-content: center;
    padding: 40px 32px;
  }
  .contacto-right::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgb(255,255,255) 0%, rgba(255,255,255,0.7) 30%, rgba(255,255,255,0) 55%);
  }
  .contacto-form-wrap {
    position: relative; z-index: 1;
    padding: 32px 28px;
    box-shadow: 0 24px 64px rgba(15,23,42,0.25);
    max-width: 400px;
  }

  /* Domo pills visible */
  .domo-pills { display: block; }

  /* Sectores */
  .sectores-grid { grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); }
  .sectores-trust { grid-template-columns: repeat(4,1fr); }
  .sectores-trust-item:nth-child(odd) { border-right: none; }
  .sectores-trust-item { border-right: 1px solid var(--gray-200); }
  .sectores-trust-item:last-child { border-right: none; }

  /* Marcas trust */
  .marcas-trust-band { grid-template-columns: repeat(4,1fr); }
  .marcas-trust-item { flex-direction: row; text-align: left; border-bottom: none; }
  .marcas-trust-item:nth-child(odd) { border-right: none; }
  .marcas-trust-item { border-right: 1px solid var(--gray-200); }
  .marcas-trust-item:last-child { border-right: none; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  .newsletter-form { flex-wrap: nowrap; }
  .newsletter-form input { width: 220px; }

  /* Contacto */
  .form-row { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-bottom {
    flex-direction: row; justify-content: space-between;
    text-align: left;
  }
  .footer-links { flex-wrap: nowrap; }
}

/* ─────────────────────────────────────────
   DESKTOP — min-width: 1024px
───────────────────────────────────────── */
@media (min-width: 1024px) {
  body { padding: 0 20px 40px; }

  nav {
    position: sticky;
    height: 74px; padding: 0 40px;
  }
  .nav-logo img { height: 50px; }
  .nav-links a { font-size: 14px; padding: 6px 14px; }
  .nav-cta { font-size: 13px; padding: 9px 18px; }
  .nav-tienda { font-size: 14px; }

  .section.active { padding-top: 0; }

  /* Hero */
  .hero { grid-template-columns: minmax(0,0.94fr) minmax(0,1.06fr); }
  .hero-left { padding: 70px 60px 60px 80px; }
  .hero-buttons { flex-direction: row; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: auto; }

  /* Home journey */
  .home-journey { padding: 34px 80px 44px; }
  .journey-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .journey-card { min-height: 285px; border-radius: 14px; }
  .journey-content { left: 26px; right: 52px; bottom: 24px; }
  .journey-content h3 { font-size: 26px; }
  .journey-content p { font-size: 15px; }
  .journey-benefits { grid-template-columns: repeat(5, 1fr); margin-top: 22px; }
  .journey-benefit { min-height: 138px; padding: 20px 20px 16px; border-bottom: 0; border-right: 1px solid var(--gray-200); }
  .journey-benefit:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .journey-benefit:last-child { border-right: 0; }
  .journey-benefit img { width: 46px; height: 46px; }
  .journey-benefit h3 { font-size: 15px; }
  .journey-benefit p { font-size: 13px; }

  /* Trust bar */
  .trust-bar { padding: 32px 80px; }
  .trust-item { padding: 0 24px; }
  .trust-icon { width: 72px; height: 72px; }

  /* Solutions */
  .home-solutions { padding: 80px 80px; }
  .solutions-grid { grid-template-columns: repeat(4,1fr); gap: 24px; }
  .sol-card { padding: 34px 26px 30px; }

  /* Page heroes */
  .page-hero,
  .domo-hero, .marcas-hero, .blog-hero {
    height: 380px;
  }
  .contacto-hero { height: auto; }
  .page-hero-left { padding: 60px 60px 60px 80px; }
  .contacto-hero > .page-hero-left { padding: 60px 60px 60px 80px; }
  .page-hero-left h1, .page-hero-left h2 { font-size: var(--text-h2); }

  /* Section inner pad */
  .section-inner-pad { padding: 60px 80px 24px; }

  /* Sectores */
  .sectores-grid { grid-template-columns: repeat(5,1fr); padding: 0 80px 80px; gap: 20px; }
  .sectores-trust { margin: 0 80px 80px; padding: 32px 40px; grid-template-columns: repeat(4,1fr) auto; }
  .sector-img { height: 160px; }
  .sector-body { padding: 18px; }
  .sector-body p { -webkit-line-clamp: unset; }

  /* Sols full */
  .sols-full-grid { grid-template-columns: repeat(4,1fr); padding: 0 80px; }

  /* Domo */
  .domo-why { padding: 80px 80px; }
  .domo-why-grid { grid-template-columns: repeat(4,1fr); }
  .domo-control { padding: 80px 80px; }
  .domo-control-grid { grid-template-columns: repeat(6,1fr); }
  .domo-ctrl-img { height: 120px; }
  .domo-ctrl-body { padding: 14px; }
  .domo-flip-grid { grid-template-columns: repeat(4,1fr); padding: 0 80px 80px; gap: 20px; }
  .flip-card { height: 220px; }
  /* Domo pills */
  .domo-pills { display: block; }
  .dp-1 { top: 14%; left: 10%; }
  .dp-2 { top: 14%; right: 8%; }
  .dp-3 { bottom: 30%; left: 18%; }
  .dp-4 { bottom: 14%; right: 10%; }
  .domo-pill { position: absolute; background: var(--white); border-radius: 12px; padding: 12px 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 10px; min-width: 160px; }
  .domo-pill-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--blue-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .domo-pill-icon svg { width: 17px; height: 17px; color: var(--blue); }
  .domo-pill h5 { font-size: 13px; font-weight: 700; color: var(--navy); }
  .domo-pill p  { font-size: 11px; color: var(--gray-500); }

  /* Marcas */
  .marcas-hero { grid-template-columns: 1fr 1fr; height: 380px; }
  .marcas-trust-band { padding: 20px 80px 12px; }
  .marcas-trust-item { padding: 0 32px; }
  .brands-grid-section { padding: 48px 80px 60px; }
  .brands-grid { grid-template-columns: repeat(5,1fr); gap: 20px; }
  .brand-tile { padding: 16px 14px; min-height: 80px; }
  .brand-tile img { height: 50px; }
  .brand-tile img[alt="IMOU"] { height: 32px; }

  /* Blog */
  .blog-grid { grid-template-columns: repeat(4,1fr); }
  .blog-filters { padding: var(--sp-md) 80px 0; }
  .blog-grid { padding: var(--sp-md) 80px var(--sp-xl); }
  .newsletter-bar { margin: 0 80px var(--sp-xl); padding: 14px 28px; }

  /* Contacto */
  .contacto-bottom { grid-template-columns: 55fr 45fr; }
  .contacto-direct { padding: var(--sp-lg) 80px; }
  .direct-grid { grid-template-columns: repeat(4,1fr); }
  .contacto-why { padding: var(--sp-md) 80px var(--sp-xl); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .btn-llamar { display: flex; width: fit-content; margin: var(--sp-lg) auto 0; }
  .contacto-pro-overlay { padding: var(--sp-xl) 60px; }

  /* Footer */
  footer { padding: 24px 40px; }
}

/* ---- botones: la flecha SVG no debe saltar de línea ---- */
/* botones de fichas: ancho del texto y centrados */
.service-page .modal-footer{display:flex;justify-content:center;margin-top:28px}
.service-page .modal-footer .btn-primary,
.service-page .service-cta .btn-primary,
.service-page .article-cta .btn-primary{flex:0 0 auto;width:auto;display:inline-flex;align-items:center;justify-content:center}
.service-page .service-cta{text-align:center}
.service-page .article-cta{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px}
/* pie siempre abajo aunque el contenido sea corto */
.site-shell{min-height:100vh;display:flex;flex-direction:column}
.site-shell > .section{flex:1 0 auto;width:100%}
.site-shell > footer{margin-top:auto}
/* H1 visible solo para buscadores y lectores de pantalla */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* tarjetas clicables */
.sector-card{cursor:pointer}
/* tipografía del contenido migrado (copiada de las fichas originales) */
.service-page .service-body h2{font-size:var(--text-h3);font-weight:800;color:var(--navy);margin:0 0 var(--sp-xs)}
.service-page .service-body > p{font-size:var(--text-base);color:var(--gray-500);line-height:1.65;margin-bottom:var(--sp-md)}
.service-page .service-body p{font-size:var(--text-base);color:var(--gray-700);line-height:1.7;margin-bottom:var(--sp-sm)}
.service-page .service-body ul{list-style:none;display:flex;flex-direction:column;gap:10px;margin-bottom:var(--sp-md);padding:0}
.service-page .service-body li{display:flex;align-items:flex-start;gap:10px;font-size:var(--text-base);color:var(--gray-700);line-height:1.5}
.service-page .service-body li::before{content:'';width:20px;height:20px;flex-shrink:0;background:var(--blue-light);border-radius:50%;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");background-size:70%;background-position:center;background-repeat:no-repeat;margin-top:2px}
.service-page .service-body strong{color:var(--navy)}
.service-page .article-body h2{font-size:var(--text-h4);font-weight:700;color:var(--navy);margin:var(--sp-md) 0 var(--sp-xs)}
.service-page .article-body p{font-size:var(--text-base);color:var(--gray-700);line-height:1.7;margin-bottom:var(--sp-sm)}
.service-page .article-body ul{padding-left:var(--sp-md);margin-bottom:var(--sp-sm)}
.service-page .article-body li{font-size:var(--text-base);color:var(--gray-700);line-height:1.65;margin-bottom:6px}
.service-page .article-body strong{color:var(--navy)}
/* lectura en página completa (ajustada a tamaño de lectura normal) */
.service-page .blog-cat{font-size:13px;letter-spacing:1px}
.service-page .article-meta,.service-page .article-meta span{font-size:clamp(13px,1.2vw,14px)}
.service-page .service-body > p{font-size:clamp(16px,1.5vw,17px);line-height:1.6;margin-bottom:var(--sp-sm)}
.service-page .service-body h2{font-size:clamp(22px,2.4vw,26px);line-height:1.25;margin-bottom:var(--sp-xs)}
.service-page .service-body p,.service-page .service-body li{font-size:clamp(15px,1.3vw,16px);line-height:1.6}
.service-page .article-body h2{font-size:clamp(20px,2vw,24px);line-height:1.3;margin-top:32px}
.service-page .article-body p,.service-page .article-body li{font-size:clamp(15px,1.3vw,16px);line-height:1.6}
/* cabecera de sección en escritorio: mismo margen en todas las secciones (como particulares y empresas) */
@media (min-width:1024px){
  .domo-hero > .page-hero-left,.marcas-hero > .page-hero-left,.blog-hero > .page-hero-left{padding:60px 60px 60px 80px}
}
/* subtítulos de fichas de servicio */
.service-page .service-body h3{font-size:clamp(18px,1.8vw,20px);font-weight:700;color:var(--navy);line-height:1.3;margin:32px 0 12px}
/* páginas legales */
.legal-page .legal-body{max-width:820px;margin:0 auto;padding:48px 24px}
.legal-page h1{font-size:clamp(26px,3vw,32px);font-weight:800;color:var(--navy);line-height:1.2;margin-bottom:24px}
.legal-page h2{font-size:clamp(19px,2vw,22px);font-weight:700;color:var(--navy);margin:32px 0 12px}
.legal-page h3{font-size:clamp(16px,1.5vw,17px);font-weight:700;color:var(--navy);margin:24px 0 8px}
.legal-page p,.legal-page li{font-size:clamp(15px,1.3vw,16px);color:var(--gray-700);line-height:1.6;margin-bottom:12px}
.legal-page ul{padding-left:var(--sp-md);margin-bottom:12px}
.legal-page strong{color:var(--navy)}
/* el menú (sticky en escritorio, fijo en móvil, como el original) necesita que el contenedor no tenga scroll propio */
.site-shell{overflow-x:clip}
/* sin flechas en los botones */
.arrow-svg{display:none !important}

/* ---- fichas convertidas en páginas (provisional, revisar) ---- */
.service-page .service-photo{position:relative;height:280px;overflow:hidden;border-radius:16px;margin-bottom:28px}
.service-page .service-photo img{width:100%;height:100%;object-fit:cover;display:block}
.service-page .service-body{max-width:820px;margin:0 auto;padding:48px 24px}
.service-page .service-cta{margin-top:28px}
.service-page .btn-primary{display:inline-block}
.service-page svg{width:18px;height:18px;max-width:100%;flex-shrink:0}
.service-page .article-meta{display:flex;align-items:center;gap:14px;font-size:var(--text-xs);color:var(--gray-400);margin-bottom:16px}
.service-page .article-meta span{display:flex;align-items:center;gap:4px}
.service-page .article-meta svg{width:13px;height:13px}
.service-page .article-body h2{margin-top:32px}
.service-page .article-body p{margin-bottom:16px;line-height:1.7}
.service-page .btn-primary{white-space:nowrap}
.service-page .btn-primary svg{display:inline-block;vertical-align:middle;width:15px;height:15px;margin-left:6px}

/* logo Ksenia: mismo peso visual que el resto de marcas */
.brand-tile img[alt="Ksenia"] { height: clamp(22px,4.5vw,36px); }
