/* ═══════════════════════════════════════════════════════
   RVA Servicios Generales — styles.css
   ═══════════════════════════════════════════════════════ */

:root {
  --blue-400: #0072CE;
  --blue-600: #0072CE;
  --blue-700: #005BA4;
  --dark-900: #0f172a;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;

  /* ── Sistema tipográfico ── */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Roboto', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Tipografía de titulares — Montserrat ── */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-title,
.section-title-dark,
.acc-title,
.tl-title,
.footer-head,
.ci-label {
  font-family: var(--font-heading);
  letter-spacing: 0.02em;
}

/* ── Párrafos: aire y legibilidad ── */
p {
  line-height: 1.6;
}
p + p {
  margin-top: 1.5em;
}

/* Descripciones de sección — line-height más generoso */
.section-desc,
.section-desc-dark,
.acc-desc,
.tl-desc,
.hero-sub {
  line-height: 1.72;
  font-family: var(--font-body);
}

/* ─── LAYOUT ─── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 6rem 0; }

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #080f1e;
  display: flex; align-items: center; justify-content: center;
  /* fade-out de .3s cuando se añade .hidden */
  transition: opacity .3s ease, visibility .3s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Contenedor animado — fade-in desde arriba */
.loader-inner {
  text-align: center;
  animation: loaderIn .55s cubic-bezier(.4,0,.2,1) forwards;
}

/* Logo: aparece con suavidad + ligero movimiento vertical */
.loader-logo {
  font-size: 3.25rem; font-weight: 900; color: #0072CE;
  letter-spacing: .22em; opacity: 0;
  animation: logoReveal .75s cubic-bezier(.4,0,.2,1) .1s forwards;
}

/* Barra de carga */
.loader-bar {
  width: 220px; height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 99px; margin: 1.75rem auto 1.1rem;
  overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0;
  border-radius: 99px;
  /* gradiente: azul profundo → #0072CE → azul eléctrico claro */
  background: linear-gradient(90deg, #004a8f 0%, #0072CE 55%, #38bdf8 100%);
  box-shadow: 0 0 10px rgba(0,114,206,.55), 0 0 20px rgba(56,189,248,.2);
  animation: load 1.6s cubic-bezier(.4,0,.2,1) .35s forwards;
}

/* Subtítulo: aparece después del logo */
.loader-sub {
  color: rgba(148,163,184,.55);
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: 0;
  animation: fadeUp .55s ease .75s forwards;
}

@keyframes loaderIn  { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
@keyframes logoReveal{ 0%{opacity:0;transform:translateY(-6px);letter-spacing:.32em}
                       100%{opacity:1;transform:translateY(0);letter-spacing:.22em} }
@keyframes load      { 0%{width:0} 100%{width:100%} }
@keyframes fadeUp    { from{opacity:0;transform:translateY(5px)} to{opacity:1;transform:translateY(0)} }

/* ─── HEADER ─── */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 0;
}
#header.scrolled {
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.1);
}
/* Nav links oscuros sobre header blanco */
#header.scrolled .nav-link {
  color: #334155;
}
#header.scrolled .nav-link:hover {
  color: var(--blue-600);
}
#header.scrolled .mobile-link {
  color: rgba(255,255,255,.8);
}

.header-container {
  max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo-wrap { display: flex; align-items: center; text-decoration: none; }

/* Hero: logo blanco (invertido) sobre fondo oscuro */
.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: filter .3s;
}
/* Al hacer scroll: header blanco → logo en sus colores naturales */
#header.scrolled .header-logo {
  filter: none;
}

/* Footer logo — ver bloque ─── FOOTER ─── más abajo */

/* Nav desktop */
.nav-desktop { display: flex; gap: 2rem; }
.nav-link {
  color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500;
  text-decoration: none; position: relative; padding-bottom: 4px;
  transition: color .2s;
}
.nav-link::after {
  content:''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--blue-400);
  transition: width .3s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* Link activo — visible tanto en header transparente como blanco */
.nav-link.nav-active { color: var(--blue-400); }
.nav-link.nav-active::after { width: 100%; }
#header.scrolled .nav-link.nav-active { color: var(--blue-600); }

/* CTA button */
.btn-cta {
  background: var(--blue-600); color: #fff;
  padding: .6rem 1.25rem; border-radius: 8px;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-cta:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,114,206,.4); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1rem; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: flex; flex-direction: column; gap: .5rem;
  padding: 0 1.5rem;
  max-height: 0; overflow: hidden;
  background: rgba(15,23,42,.98);
  transition: max-height .4s ease, padding .4s ease;
}
.mobile-menu.open { max-height: 400px; padding: 1rem 1.5rem 1.5rem; }
.mobile-link {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .95rem; font-weight: 500; padding: .5rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .2s;
}
.mobile-link:hover { color: var(--blue-400); }

/* ─── HERO ─── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #0b1a2e;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,18,36,.82) 0%, rgba(8,18,36,.55) 50%, rgba(8,18,36,.20) 100%),
    linear-gradient(to top,   rgba(8,18,36,.45) 0%, transparent 38%);
}

.hero-content {
  position: relative; z-index: 10;
  max-width: 680px; margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(0,114,206,.15); border: 1px solid rgba(0,114,206,.3);
  color: var(--blue-400); font-size: .8rem; font-weight: 600;
  padding: .4rem 1rem; border-radius: 99px;
  margin-bottom: 1.5rem; letter-spacing: .05em;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-400);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900; color: #fff;
  line-height: 1.1; letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  animation: fadeUp .8s ease both;
  text-shadow: 0 2px 16px rgba(0,0,0,.55), 0 1px 4px rgba(0,0,0,.4);
}
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,255,255,.92);
  line-height: 1.75; margin-bottom: 1rem;
  animation: fadeUp .8s .15s ease both;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-support {
  font-size: .9rem; color: rgba(255,255,255,.72);
  line-height: 1.6;
  animation: fadeUp .8s .25s ease both;
  text-shadow: 0 1px 6px rgba(0,0,0,.45);
}
.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem;
  animation: fadeUp .8s .35s ease both;
}
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--blue-600); color: #fff;
  padding: .9rem 1.75rem; border-radius: 10px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(0,114,206,.4);
}
.btn-hero-primary:hover { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,114,206,.5); }
.btn-hero-outline {
  display: inline-flex; align-items: center;
  border: 2px solid rgba(255,255,255,.3); color: #fff;
  padding: .9rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.btn-hero-outline:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.07); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; animation: bounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.4);
  border-radius: 12px; display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 3px; height: 8px; background: rgba(255,255,255,.6);
  border-radius: 2px; animation: scrollWheel 2s ease-in-out infinite;
}
@keyframes scrollWheel { 0%,100%{transform:translateY(0);opacity:1} 50%{transform:translateY(6px);opacity:.3} }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ─── SECTION HEADINGS ─── */
.tag {
  display: inline-block;
  background: rgba(0,114,206,.08); color: var(--blue-600);
  border: 1px solid rgba(0,114,206,.2);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  padding: .35rem .9rem; border-radius: 99px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.tag-dark {
  display: inline-block;
  background: rgba(0,114,206,.1); color: #0072CE;
  border: 1px solid rgba(0,114,206,.2);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  padding: .35rem .9rem; border-radius: 99px; text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #0f172a; line-height: 1.3;
  letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.section-title-dark {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; color: #fff; line-height: 1.3;
  letter-spacing: -.02em; margin-bottom: 1.1rem;
}
.section-desc { color: var(--gray-500); line-height: 1.8; font-size: 1rem; }
.section-desc-dark { color: var(--gray-400); line-height: 1.8; font-size: 1rem; margin-bottom: 0; }

/* ─── NOSOTROS ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
/* Stats con iconos grandes */
.stats-icons {
  display: flex; gap: 2rem;
  margin-top: 2.5rem; flex-wrap: wrap;
}
.stat-icon-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 1; min-width: 100px;
}
.stat-svg {
  width: 80px; height: 80px;
  margin-bottom: .9rem;
  transition: transform .3s;
}
.stat-icon-item:hover .stat-svg { transform: translateY(-4px); }
.stat-svg svg { width: 100%; height: 100%; }
.stat-icon-num {
  font-size: 1.6rem; font-weight: 900;
  color: var(--blue-600); line-height: 1;
  margin-bottom: .35rem;
}
.stat-icon-label {
  font-size: .68rem; font-weight: 700;
  color: #475569; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1.4;
}

.about-visual {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,114,206,.16);
  flex-shrink: 0;
}
.about-img-main {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
  aspect-ratio: 4 / 3;
  /* Color grading: tonos fríos, contraste alto, arena a segundo plano */
  filter: contrast(1.28) brightness(0.82) saturate(0.68);
}

/* Overlay azul frío — neutraliza tierra, potencia chalecos naranjas */
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 40, 100, 0.22);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
/* El badge queda sobre el overlay */
.about-badge { z-index: 2; }
.about-badge {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  background: #fff; border-radius: 12px; padding: .9rem 1.1rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  display: flex; flex-direction: column; align-items: center; gap: .2rem;
  border: 1px solid #e2e8f0;
}
.about-badge-num { font-size: 1.75rem; font-weight: 900; color: var(--blue-600); line-height: 1; }
.about-badge-txt { font-size: .7rem; color: var(--gray-500); text-align: center; font-weight: 500; }

/* ─── BRANDS ─── */
.brands-section { background: var(--dark-900); padding: 5rem 0; overflow: hidden; }

/* Header alineado a la izquierda — toque editorial */
.brands-header { text-align: left; max-width: 640px; margin-bottom: 1rem; }

/* Línea divisoria azul */
.brands-divider {
  width: 60px;
  height: 1.5px;
  background: #0056b3;
  margin: 1.25rem 0 .9rem;
  border-radius: 2px;
}

/* Dato de confianza */
.brands-trust {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
  margin: 0;
  text-transform: uppercase;
}

.brands-carousel { margin-top: 3.5rem; overflow: hidden; position: relative; cursor: grab; }
.brands-carousel.is-dragging { cursor: grabbing; user-select: none; }
.brands-carousel::before,
.brands-carousel::after {
  content: ''; position: absolute; top: 0; width: 180px; height: 100%; z-index: 2; pointer-events: none;
}
.brands-carousel::before { left: 0;  background: linear-gradient(to right, var(--dark-900), transparent); }
.brands-carousel::after  { right: 0; background: linear-gradient(to left,  var(--dark-900), transparent); }

.brands-track {
  display: flex;
  gap: 0;
  width: max-content;
  will-change: transform;
}

/* Logo item — libre, sin caja */
.brand-item {
  padding: 1.25rem 3rem;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
/* Resplandor radial técnico en hover */
.brand-item::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,114,206,.22) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
  z-index: 0;
}
.brand-item:hover::before { opacity: 1; }

/* Logos — más grandes, escala de grises → color al hover */
.brand-logo {
  position: relative; z-index: 1;
  height: 44px; width: auto; max-width: 160px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8) opacity(.5);
  transition: filter .45s ease, transform .4s ease;
}
.brand-logo[alt="Secutron"] { height: 58px; max-width: 180px; }
.brand-item:hover .brand-logo {
  filter: grayscale(0) brightness(1.05) opacity(1);
  transform: scale(1.1);
}

/* Sin animación de espera — logos visibles al instante */
.brand-orig { opacity: 1; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SERVICIOS ─── */
#servicios.section {
  padding: 3.5rem 0;
  background: #F1F5F9;
}
#servicios.section > .container {
  max-width: 960px;
  margin: 0 auto;
}

/* ── Encabezado servicios ── */
.svc-header-card {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 2rem;
}
.svc-header-card .tag { margin-bottom: .75rem; }
.svc-header-card .section-title {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  margin-bottom: 0;
}

/* Separador — display:block forzado, color sólido, reveal clip-path */
.svc-divider {
  display: block;
  position: relative;
  z-index: 10;
  width: 100%;
  height: 2px;
  background-color: #0047AB;
  margin: 1.75rem 0 2rem;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2s cubic-bezier(0.22, 1, 0.36, 1);
}
.svc-divider.visible { clip-path: inset(0 0 0 0); }

/* ── Grid de tarjetas ── */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-bottom: 0;
}

/* Tarjetas: base — flex column para que la imagen llene el espacio extra */
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.10);
  transition: box-shadow 0.4s cubic-bezier(0.16,1,0.3,1),
              border-color 0.4s cubic-bezier(0.16,1,0.3,1),
              opacity 0.4s ease,
              transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

/* ── Imagen representativa: crece para cubrir el espacio extra del grid ── */
.card-visual {
  position: relative;
  flex: 1 1 148px;   /* crece (flex-grow:1) desde 148px base — llena el hueco de la fila */
  min-height: 148px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  cursor: pointer;
  transition: flex-basis 0.45s cubic-bezier(0.16,1,0.3,1),
              min-height 0.45s cubic-bezier(0.16,1,0.3,1),
              opacity 0.35s ease;
}
.card-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.08) 0%,
    rgba(0,20,60,.52) 100%);
  filter: brightness(0.82);
}
.card-visual-cta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: .55rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.90);
  background: rgba(0,20,60,.30);
  backdrop-filter: blur(2px);
  transition: background .3s;
}
.svc-card:hover .card-visual-cta { background: rgba(0,71,171,.45); }

/* Al abrir: la imagen colapsa (flex-basis → 0) */
.svc-card.open .card-visual {
  flex-basis: 0;
  min-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Tarjetas inactivas se atenúan levemente cuando hay una abierta */
.svc-grid.has-open .svc-card:not(.open) {
  opacity: .65;
  transform: none;
}

.svc-card:hover {
  border-color: rgba(0,71,171,.28);
  box-shadow: 0 8px 20px -4px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.svc-card.open {
  border-color: #0047AB;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.12), 0 10px 10px -5px rgba(0,0,0,.04);
  opacity: 1 !important;
  transform: none;
}

/* Header: columna centrada — icono → título (solo informativo, no clickable) */
.svc-card .acc-header {
  position: relative;
  z-index: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .6rem;
  padding: 1.5rem 1.5rem 1.25rem;
  cursor: default;
  pointer-events: none;
}
/* En tarjetas inactivas el header ocupa solo su contenido (la imagen cubre el resto) */
.svc-card:not(.open) .acc-header {
  flex-shrink: 0;
}
.svc-card .acc-title-wrap { flex: 0 0 auto; align-items: center; }
.svc-card .acc-title { text-align: center; }
.svc-card .acc-chevron { display: none; }
.svc-card .acc-sub { display: none; }    /* "Ver detalles" eliminado — la imagen es el trigger */

/* ── Sub-acordeones dentro de la tarjeta ── */
.sub-acc { border-top: 1px solid #E2E8F0; }
.sub-acc-hdr {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .65rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  color: #0047AB;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s;
}
.sub-acc-hdr:hover { background: rgba(0,71,171,.03); }
.sub-chevron {
  width: 14px; height: 14px; flex-shrink: 0;
  stroke: #94a3b8;
  transition: transform .25s ease, stroke .2s;
}
.sub-acc.open .sub-chevron { transform: rotate(180deg); stroke: #0047AB; }
.sub-acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.sub-acc.open .sub-acc-body { grid-template-rows: 1fr; }
.sub-acc-content {
  overflow: hidden;
  min-height: 0;
}
.sub-acc-content-inner {
  padding: .25rem 1.5rem 1rem;
}
.svc-card .acc-cta {
  display: block;
  margin: .75rem 1.5rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* Desktop: grid 3 columnas — align-items:stretch para que las tarjetas de la fila sean igual de altas */
@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 1.75rem;
    margin-bottom: 0;
  }
}

/* Mobile: header compacto 16px */
@media (max-width: 1023px) {
  .svc-card .acc-header { padding: 16px; }
  .svc-grid { gap: .75rem; }
  .sub-acc-hdr { padding: .6rem 1rem; }
  .sub-acc-content-inner { padding: .25rem 1rem .85rem; }
  .svc-card .acc-cta { margin: .6rem 1rem 1rem; }
}

/* Descripción */
.svc-header-desc {
  font-family: var(--font-body);
  font-size: .92rem;
  color: #374151;
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 1.25rem;
}

/* Badges — fila única, estáticos */
.svc-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .65rem;
  flex-wrap: nowrap;
}
.svc-badge {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-family: var(--font-heading);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #0047AB;
  background: rgba(0,71,171,.05);
  border: 1px solid rgba(0,71,171,.14);
  border-radius: 999px;
  padding: .28rem .75rem;
  white-space: nowrap;
  transition: opacity .3s ease;
}
.svc-badge:hover { opacity: .9; }
.svc-badge svg {
  width: 11px; height: 11px;
  stroke: #0047AB; flex-shrink: 0;
}

@media (max-width: 640px) {
  .svc-badges { flex-wrap: wrap; gap: .45rem; }
  #servicios.section { padding: 2.5rem 0; }
}

/* ── Bloque visual entre acordeones ── */
.svc-quote-band {
  position: relative;
  width: 100vw;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  height: 280px;
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
  margin-top: 2.5rem; margin-bottom: 2.5rem;
}
/* Gradiente negro hacia arriba — texto legible, foto respira */
.svc-quote-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,0) 60%);
}
.svc-quote-text {
  position: relative; z-index: 1;
  font-family: var(--font-heading);
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: #fff;
  text-align: center;
  line-height: 1.7;
  letter-spacing: .03em;
  margin: 0;
  padding: 0 2rem 2.5rem;
  max-width: 700px;
}

/* ── Acordeones ── */
.acc-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px; overflow: hidden;
  box-shadow: none;
  transition: border-color .3s, box-shadow .3s;
}
.acc-item.open {
  border-color: rgba(0,114,206,.3);
  box-shadow: 0 6px 24px rgba(0,114,206,.1);
}
.acc-header {
  width: 100%; display: flex; align-items: center; gap: 1.25rem;
  padding: 1.25rem 1.75rem; background: none; border: none;
  cursor: pointer; text-align: left; transition: background .2s;
}
.acc-header:hover { background: rgba(0,114,206,.03); }

.acc-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.85); border: 1px solid rgba(0,114,206,.12);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,114,206,.08); transition: transform .3s;
}
.acc-item.open .acc-icon { transform: scale(1.05); }
.acc-icon svg { width: 24px; height: 24px; stroke: var(--c, #0072CE); }

/* Título + micro-copy */
.acc-title-wrap { flex: 1; display: flex; flex-direction: column; gap: .2rem; }
.acc-title { font-size: 1.1rem; font-weight: 700; color: #0047AB; line-height: 1.35; font-family: var(--font-heading); }
.acc-sub   { font-size: .72rem; font-weight: 400; color: #94a3b8; letter-spacing: .03em; }
.acc-item.open .acc-sub { opacity: 0; }

/* Chevron — rotación 180° al abrir */
.acc-chevron {
  width: 20px; height: 20px; flex-shrink: 0;
  stroke: #cbd5e1; transition: transform .35s ease, stroke .25s;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); stroke: var(--blue-600); }

.acc-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-content { overflow: hidden; min-height: 0; }
.acc-inner {
  padding: 1.25rem 1.75rem 2rem;
  border-top: 1px solid rgba(0,114,206,.08);
  display: flex; flex-direction: column; gap: 1.35rem;
  overflow: visible;
}
.acc-desc {
  font-size: 1rem; color: var(--gray-500);
  line-height: 1.7; font-family: var(--font-body);
}

/* Etiquetas y bullets — selectores específicos para no perder contra Tailwind preflight */
.acc-inner .acc-label {
  font-size: .7rem !important;
  font-weight: 700 !important;
  color: #0072CE !important;
  text-transform: uppercase !important;
  letter-spacing: .1em !important;
  display: block !important;
  margin-bottom: .5rem !important;
  line-height: 1.4;
}
.acc-inner .acc-proposal,
.acc-inner .acc-why { display: flex; flex-direction: column; gap: 0; }

.acc-inner .acc-bullets {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.acc-inner .acc-bullets li {
  font-size: 1rem;
  color: var(--gray-500);
  line-height: 1.65;
  padding-left: 1.3rem;
  position: relative;
  list-style: none !important;
  font-family: var(--font-body);
}
.acc-inner .acc-bullets li::before {
  content: '' !important;
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0072CE !important;
  display: block !important;
}
.acc-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--blue-600); font-size: .875rem; font-weight: 600;
  text-decoration: none; align-self: flex-start;
  padding: .55rem 1.25rem; border-radius: 8px;
  background: rgba(0,114,206,.08); border: 1px solid rgba(0,114,206,.18);
  transition: background .2s, border-color .2s, transform .2s;
}
.acc-cta:hover { background: rgba(0,114,206,.15); border-color: rgba(0,114,206,.35); transform: translateX(2px); }

/* Retrocompat. */
.svc-btn { display: inline-flex; align-items: center; color: var(--blue-600); font-size: .875rem; font-weight: 600; text-decoration: none; }

/* ─── GALERÍA ─── */
.gallery-section { background: #f1f5f9; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 220px;
  gap: 1rem;
}
.gallery-item {
  border-radius: 14px; overflow: hidden; position: relative;
  cursor: pointer; transition: transform .3s, box-shadow .3s;
}
.gallery-item:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,.18); }
.gallery-item--wide { grid-column: span 2; }

.gallery-ph {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .75rem; background: var(--gph, linear-gradient(135deg,#0f172a,#005BA4));
  color: rgba(255,255,255,.2);
}
.gallery-ph svg { width: 38px; height: 38px; }
.gallery-ph-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
  display: flex; align-items: flex-end; padding: 1.1rem 1.3rem;
  opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-label-txt {
  color: #fff; font-weight: 600; font-size: .82rem;
  letter-spacing: .02em; line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.gallery-note {
  text-align: center; color: var(--gray-400); font-size: .83rem;
  margin-top: 2rem; font-style: italic; line-height: 1.7;
}

/* ─── CLIENTES — descripción destacada ─── */
.clientes-desc {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.01em;
}
.clientes-desc strong {
  color: #0072CE;
  font-weight: 800;
}

/* ─── SECCIÓN CLIENTES — textura + conectores ─── */
#clientes {
  background-image: url('../img/cliente/fondo.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

/* Overlay suave para legibilidad de logos */
#clientes > .container { position: relative; z-index: 2; }
#clientes > div[id="clientes-header"] { position: relative; z-index: 2; }
#clientes::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.55);
  z-index: 1;
  pointer-events: none;
}


/* ─── CLIENTES — CARRUSEL QUIET LUXURY ─── */

/* Contenedor — auto-scroll + drag */
.cl-carousel {
  overflow: hidden;
  position: relative;
  padding: 2.5rem 0;
  cursor: grab;
  margin-top: 3rem;
}
.cl-carousel.is-dragging { cursor: grabbing; user-select: none; }

/* Fades laterales */
.cl-carousel::before,
.cl-carousel::after {
  content: ''; position: absolute; top: 0;
  width: 140px; height: 100%; z-index: 2; pointer-events: none;
}
.cl-carousel::before { left: 0;  background: linear-gradient(to right, rgba(255,255,255,.8), transparent); }
.cl-carousel::after  { right: 0; background: linear-gradient(to left,  rgba(255,255,255,.8), transparent); }

/* Track */
.cl-track {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  width: max-content;
  will-change: transform;
}

/* Card — Quiet Luxury */
.cl-card {
  flex: 0 0 220px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 1rem 1rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  -webkit-tap-highlight-color: transparent;
}
.cl-card:hover {
  border-color: rgba(0,114,206,.3);
  box-shadow: 0 10px 28px rgba(0,114,206,.1);
  transform: translateY(-4px);
}
.cl-carousel.is-dragging .cl-card { transform: none; transition: none; }

/* Logo box — tamaño fijo igual para todos */
.cl-logo-box {
  width: 180px; height: 110px;
  display: flex; align-items: center; justify-content: center;
}
.cl-img {
  width: 180px; height: 110px;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

/* Nombre — oculto */
.cl-name { display: none; }

/* CTA — siempre visible */
.cl-cta {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: #0072CE;
  opacity: 1;
  transform: translateY(0);
}
.cl-carousel.is-dragging .cl-cta { opacity: 0; }

.cl-hint { display: none; }

/* ─── FLOATING LABELS ─── */
.fl-wrap { position: relative; }
.fl-wrap .finput {
  padding-top: 1.45rem;
  padding-bottom: .5rem;
  line-height: 1.2;
}
.fl-label {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  color: #9ca3af;
  font-weight: 400;
  pointer-events: none;
  transition: top .17s ease, font-size .17s ease, color .17s ease, font-weight .17s ease, transform .17s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 1.8rem);
}
.fl-req { color: #ef4444; margin-left: 2px; }
.fl-wrap .finput:not(:placeholder-shown) ~ .fl-label,
.fl-wrap .finput:focus ~ .fl-label {
  top: .5rem;
  transform: translateY(0);
  font-size: .67rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.fl-wrap .finput:focus ~ .fl-label { color: #0072CE; }
.fl-wrap .finput.error ~ .fl-label  { color: #ef4444; }
.fl-wrap .finput.valid ~ .fl-label  { color: #059669; }

/* ─── MICRO-INTERACCIONES (formulario) ─── */
.fg:has(.finput.error) .flabel { color: #ef4444; }
.fg:has(.finput.valid) .flabel { color: #059669; }

.finput.valid {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16,185,129,.08);
  background: rgba(16,185,129,.015);
}
.finput.valid:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(5,150,105,.1);
}

.fchar {
  font-size: .72rem; color: var(--gray-400);
  text-align: right; margin-top: .2rem;
  transition: color .25s;
}
.fchar.warn  { color: #f59e0b; }
.fchar.limit { color: #ef4444; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-5px); }
  40%,80%  { transform: translateX(5px); }
}
.finput.shake { animation: shake .35s ease; }

/* ─── TIMELINE PROCESO ─── */
.tl-section {
  background: #080f1e;
  padding: 6rem 0;
}

.tl-wrapper {
  position: relative;
  padding-top: .5rem;
}

/* Pista horizontal (fondo gris + fill animado azul) */
.tl-track {
  position: absolute;
  top: 26px; /* mitad del punto */
  left: calc(10% + 26px);
  right: calc(10% + 26px);
  height: 1px;
  background: rgba(0,114,206,.12);
  z-index: 0;
  overflow: visible;
}
.tl-track::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 0;
  background: linear-gradient(90deg, #0072CE 0%, #38bdf8 100%);
  box-shadow: 0 0 12px rgba(0,114,206,.55);
  transition: width 1.6s cubic-bezier(.4,0,.2,1) .2s;
}
.tl-track.drawn::after { width: 100%; }

/* Pasos en fila */
.tl-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* Paso individual */
.tl-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; gap: 1.5rem;
  cursor: default;
}

/* Círculo numerado */
.tl-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: #080f1e;
  border: 1.5px solid rgba(0,114,206,.35);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: transform .32s ease, border-color .32s, box-shadow .32s;
  flex-shrink: 0;
}
.tl-dot::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(0,114,206,.1);
  transition: border-color .32s, transform .32s;
}
.tl-step:hover .tl-dot {
  transform: scale(1.14);
  border-color: #0072CE;
  box-shadow: 0 0 0 5px rgba(0,114,206,.1), 0 0 22px rgba(0,114,206,.3);
}
.tl-step:hover .tl-dot::before {
  border-color: rgba(0,114,206,.28);
  transform: scale(1.08);
}
.tl-num {
  font-size: .72rem; font-weight: 800;
  color: #0072CE; letter-spacing: .1em;
}

/* Tarjeta */
.tl-card {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: .6rem; padding: 0 .75rem;
}

/* Icono */
.tl-icon {
  width: 36px; height: 36px;
  color: rgba(56,189,248,.45);
  transition: color .3s;
}
.tl-icon svg { width: 100%; height: 100%; }
.tl-step:hover .tl-icon { color: #38bdf8; }

.tl-title {
  font-size: .875rem; font-weight: 700;
  color: #f1f5f9; line-height: 1.4;
}
.tl-desc {
  font-size: .775rem;
  color: rgba(148,163,184,.6);
  line-height: 1.7;
  transition: color .3s, opacity .3s;
  max-width: 160px;
}
.tl-step:hover .tl-desc { color: #94a3b8; opacity: 1; }

/* ─── CONTACTO ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.ci-row { display: flex; gap: 1rem; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0,114,206,.08); border: 1px solid rgba(0,114,206,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; stroke: var(--blue-600); }
.ci-label { font-size: .6rem; color: var(--gray-400); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; margin: 0; }
.ci-value { font-size: .82rem; color: #0f172a; font-weight: 500; line-height: 1.4; margin: 0; }

/* Form card */
.form-card {
  background: #fff; border: 1px solid #eaecf0;
  border-radius: 20px; padding: 3rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.05);
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
}
.fg { display: flex; flex-direction: column; gap: .3rem; }
.fg-full { grid-column: 1 / -1; }

/* ─── DROPDOWN SERVICIOS ─── */
.flabel {
  font-size: .72rem; font-weight: 600; color: #6b7280;
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: .35rem;
  display: block;
}
.svc-dropdown { position: relative; }
.svc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .78rem .9rem; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: .9rem; color: #9ca3af; font-family: inherit;
  cursor: pointer; text-align: left;
  transition: border-color .2s, box-shadow .2s, color .2s;
}
.svc-trigger.has-selection { color: #111827; }
.svc-trigger:hover { border-color: #cbd5e1; }
.svc-dropdown.open .svc-trigger,
.svc-trigger:focus {
  outline: none; border-color: #0072CE;
  box-shadow: 0 0 0 2px rgba(0,114,206,.08);
}
.svc-arrow {
  flex-shrink: 0; width: 15px; height: 15px;
  stroke: #9ca3af; transition: transform .2s, stroke .2s;
}
.svc-trigger.has-selection .svc-arrow { stroke: #374151; }
.svc-dropdown.open .svc-arrow { transform: rotate(180deg); }
.svc-display { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.svc-panel {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1); overflow: hidden;
  z-index: 9999; opacity: 0; transform: translateY(-6px);
  visibility: hidden; pointer-events: none;
  transition: opacity .17s ease, transform .17s ease, visibility .17s;
}
.svc-dropdown.open .svc-panel {
  opacity: 1; transform: translateY(0);
  visibility: visible; pointer-events: auto;
}
.svc-opt {
  display: flex; align-items: center; gap: .75rem;
  padding: .78rem 1rem; cursor: pointer;
  font-size: .875rem; color: #374151;
  border-bottom: 1px solid #f8fafc;
  transition: background .13s;
  user-select: none;
}
.svc-opt:last-child { border-bottom: none; }
.svc-opt:hover { background: rgba(0,114,206,.035); }
.svc-checkbox { display: none; }
/* Header del panel — solo se muestra en móvil */
.svc-panel-header {
  display: none;
  align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem .75rem;
  border-bottom: 1px solid #f1f5f9;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.svc-panel-title {
  font-size: .8rem; font-weight: 700; color: #374151;
  text-transform: uppercase; letter-spacing: .06em;
}
.svc-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #6b7280; transition: background .15s, color .15s;
  flex-shrink: 0;
}
.svc-close svg { width: 14px; height: 14px; }
.svc-close:hover { background: #e2e8f0; color: #111827; }

/* Overlay real */
.svc-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 198;
}

.svc-opt-check {
  width: 17px; height: 17px; flex-shrink: 0;
  border: 1.5px solid #d1d5db; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; color: transparent; font-weight: 900;
  transition: border-color .13s, background .13s, color .13s;
  line-height: 1;
}
.svc-opt:has(.svc-checkbox:checked) .svc-opt-check {
  border-color: #0072CE; background: #0072CE; color: #fff;
}
.svc-opt:has(.svc-checkbox:checked) { color: #0072CE; font-weight: 600; }
.svc-opt:has(.svc-checkbox:checked):hover { background: rgba(0,114,206,.04); }

/* Inputs */
.finput {
  border: 1px solid #e2e8f0; border-radius: 10px;
  padding: .78rem .9rem; font-size: .9rem; color: #111827;
  font-family: inherit; width: 100%;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.finput:focus {
  outline: none; border-color: #0072CE;
  box-shadow: 0 0 0 2px rgba(0,114,206,.08);
}
.finput.error { border-color: #ef4444; box-shadow: none; }
.ferror { font-size: .73rem; color: #ef4444; min-height: .9rem; }

.btn-submit {
  width: 100%; background: #0072CE; color: #fff;
  border: none; border-radius: 10px; padding: .9rem 2rem;
  font-size: .975rem; font-weight: 600; font-family: inherit;
  letter-spacing: .03em; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 10px rgba(0,114,206,.22); margin-top: .75rem;
}
.btn-submit:hover { background: #005BA4; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,114,206,.3); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.f-ok {
  margin-top: 1rem; padding: 1rem; border-radius: 8px;
  background: rgba(16,185,129,.08); border: 1px solid rgba(16,185,129,.2);
  color: #065f46; font-size: .875rem; font-weight: 500;
}
.f-err {
  margin-top: 1rem; padding: 1rem; border-radius: 8px;
  background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2);
  color: #991b1b; font-size: .875rem; font-weight: 500;
}

/* ─── BANDA DIVISORA ─── */
.divider-band {
  width: 100%;
  height: 300px;
  position: relative;
  overflow: hidden;
  display: block;
  line-height: 0;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.divider-band__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,20,70,.30);
}

/* ─── FOOTER ─── */
.footer {
  background: #080f1e;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.04);
}

/* Línea de transición luminosa en el tope */
.footer-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,114,206,.3) 40%, rgba(56,189,248,.2) 60%, transparent 100%);
  margin: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr 1.2fr;
  gap: 4.5rem;
  padding: 5rem 0 4.5rem;
}

/* Bloque marca */
.footer-brand { display: flex; flex-direction: column; }
.footer-logo  { height: 38px; width: auto; object-fit: contain; opacity: .75; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer-lema  { color: rgba(210,222,234,.38); font-style: italic; font-size: .8rem; line-height: 1.65; margin-bottom: 2rem; font-family: var(--font-body); }

/* Encabezados de columna */
.footer-head {
  font-size: .72rem; font-weight: 700;
  font-family: var(--font-body);
  color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: .16em;
  margin-bottom: 1.35rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Bloque contacto con íconos */
.footer-contact { display: flex; flex-direction: column; gap: .9rem; }
.fct-row { display: flex; align-items: flex-start; gap: .7rem; }
.fct-icon {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px;
  stroke: rgba(0,114,206,.55);
}
.fct-row span, .fct-row a {
  font-size: .875rem; color: rgba(210,222,234,.62);
  line-height: 1.65; text-decoration: none;
  font-family: var(--font-body);
}
.fct-email {
  color: #0072CE;
  transition: color .2s ease, opacity .2s ease;
}
.fct-email:hover { color: #38bdf8; }
.fct-email:active { opacity: .7; }

/* Listas de enlaces */
.footer-links { list-style: none; display: flex; flex-direction: column; }
.footer-links li { border-bottom: 1px solid rgba(255,255,255,.04); }
.footer-links a {
  display: flex; align-items: center; gap: 0;
  color: rgba(210,222,234,.6);
  text-decoration: none; font-size: .875rem;
  line-height: 1.55; padding: .75rem 0;
  font-family: var(--font-body);
  transition: color .22s ease, transform .22s ease, gap .22s ease;
}
.footer-links a::before {
  content: '';
  width: 0; height: 4px; border-radius: 99px;
  background: #0072CE; flex-shrink: 0; margin-right: 0;
  opacity: 0;
  transition: width .22s ease, opacity .22s ease, margin-right .22s ease;
}
.footer-links a:hover {
  color: rgba(255,255,255,.88);
  transform: translateX(4px);
  gap: .5rem;
}
.footer-links a:hover::before {
  width: 4px; height: 4px; border-radius: 99px;
  opacity: 1; margin-right: .5rem;
}
.footer-links a:active { opacity: .65; }

/* Copyright */
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.75rem 0;
}
.footer-copy-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.footer-copy-inner p { color: rgba(210,222,234,.3); font-size: .75rem; letter-spacing: .04em; font-family: var(--font-body); }
.footer-copy-dot {
  display: inline-block; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(148,163,184,.22); flex-shrink: 0;
}
.footer-copy p br { display: none; }

/* ─── MAPA LEAFLET ─── */
#rva-map {
  height: 230px;
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
  position: relative;
  z-index: 0;
}

/* Marca personalizada */
.rva-marker-pin {
  display: flex; align-items: flex-end; justify-content: center;
  width: 36px; height: 44px;
  filter: drop-shadow(0 3px 8px rgba(0,114,206,.45));
}
.rva-marker-pin svg { width: 36px; height: 44px; }

/* Popup */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: 0 6px 24px rgba(0,0,0,.11) !important;
  border: 1px solid rgba(0,0,0,.07) !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; }
.rva-popup {
  font-family: 'Inter', sans-serif;
  padding: 1rem 1.1rem;
}
.rva-popup strong {
  font-size: .85rem; font-weight: 700; color: #0f172a;
  display: block; margin-bottom: .3rem;
}
.rva-popup p {
  font-size: .78rem; color: #64748b; margin: 0 0 .6rem; line-height: 1.55;
}
.rva-popup a {
  font-size: .75rem; color: #0072CE; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: .25rem;
}
.rva-popup a:hover { color: #005BA4; }

/* Controles del mapa — más discretos */
.leaflet-control-zoom a {
  border-radius: 8px !important; border: 1px solid rgba(0,0,0,.09) !important;
  color: #334155 !important; font-size: .85rem !important;
}
.leaflet-bar { border: none !important; box-shadow: 0 2px 8px rgba(0,0,0,.1) !important; border-radius: 10px !important; }

/* Móvil */
@media (max-width: 768px) {
  #rva-map { height: 200px; margin-top: 1.5rem; }
}

/* ─── BACK TO TOP ─── */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 90;
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--blue-600); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 4px 16px rgba(0,114,206,.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
#back-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-top:hover { background: var(--blue-700); }

/* ─── REVEAL ANIMATION ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ─── */

/* ── 1024px: tablet landscape ── */
@media (max-width: 1024px) {
  .about-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { display: block; order: -1; border-radius: 14px; }
  .about-img-main { aspect-ratio: 16 / 9; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-direction: row; align-items: flex-start; gap: 3rem; }
  .footer-brand > .footer-logo { flex-shrink: 0; }
  .footer-brand .footer-lema   { margin-bottom: 1.25rem; }
  .nav-desktop  { display: none; }
  .hamburger    { display: flex; }
  .btn-cta      { display: none; }
  /* Hamburger visible sobre header blanco */
  #header.scrolled .hamburger span { background: #334155; }
}

/* ── 768px: tablet portrait / móvil grande ── */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }

  /* Hero */
  .hero-content { padding: 6.5rem 1.5rem 3.5rem; }
  .hero-btns { flex-direction: column; }
  .btn-hero-primary,
  .btn-hero-outline { justify-content: center; width: 100%; }

  /* Tipografía — mínimo 16px en cuerpo de texto */
  body, p, li, .acc-desc, .tl-desc, .ci-value,
  .section-desc, .section-desc-dark { font-size: 1rem; }
  .hero-title         { line-height: 1.18; }
  .section-title,
  .section-title-dark { line-height: 1.38; letter-spacing: 0.015em; }
  .section-desc,
  .section-desc-dark  { line-height: 1.85; }
  /* Stats */
  .stats-icons  { gap: 1rem; flex-wrap: wrap; }
  .stat-icon-item { min-width: 90px; flex: 1; }
  .stat-svg     { width: 60px; height: 60px; }

  /* Marcas: fades más pequeños para no ocultar demasiado */
  .brands-carousel::before,
  .brands-carousel::after { width: 50px; }

  /* Timeline — tablet: contraer texto */
  .tl-title  { font-size: .8rem; }
  .tl-desc   { font-size: .72rem; max-width: 120px; }
  .tl-dot    { width: 44px; height: 44px; }
  .tl-track  { top: 22px; left: calc(10% + 22px); right: calc(10% + 22px); }
  .tl-icon   { width: 30px; height: 30px; }

  /* Acordeón */
  .services-accordion { max-width: 100%; }

  /* Header: touch target generoso + padding 20px */
  .acc-header {
    padding: 1.25rem 1.25rem; gap: 1rem;
  }

  /* Body interno: 20px de aire lateral, 16px mínimo */
  .acc-inner {
    padding: 1.25rem 1.25rem 1.75rem;
    gap: 1.25rem; overflow: visible;
  }

  /* Título: Montserrat 18px Bold */
  .acc-title {
    font-size: 1.125rem;
    font-family: var(--font-heading);
    font-weight: 700; line-height: 1.35;
  }

  /* Cuerpo: Roboto 16px, line-height 1.6 */
  .acc-desc {
    font-size: 1rem; line-height: 1.6;
    font-family: var(--font-body);
  }
  .acc-inner .acc-bullets li {
    font-size: 1rem; line-height: 1.65;
    font-family: var(--font-body);
  }

  .acc-icon     { width: 44px; height: 44px; border-radius: 12px; }
  .acc-icon svg { width: 22px; height: 22px; }

  /* Refuerzo etiquetas y bullets en móvil */
  .acc-inner .acc-label {
    font-size: .65rem !important; color: #0072CE !important;
    text-transform: uppercase !important; font-weight: 700 !important;
    display: block !important; letter-spacing: .1em !important;
  }
  .acc-inner .acc-bullets li { padding-left: 1.3rem; position: relative; }
  .acc-inner .acc-bullets li::before {
    content: '' !important; position: absolute;
    left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%;
    background: #0072CE !important; display: block !important;
  }

  /* ── Timeline móvil: rediseño focal ── */
  .tl-section { padding: 3rem 0 5rem; }
  .tl-track { display: none; }

  .tl-steps {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border-left: none;
    position: relative;
    align-items: center;
  }

  /* Hilo conductor vertical centrado */
  .tl-steps::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    transform: translateX(-50%);
    width: 1px;
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(0,114,206,.25) 8%,
      rgba(0,114,206,.25) 92%,
      transparent 100%);
    z-index: 0;
  }

  /* Paso: centrado, estado atenuado por defecto */
  .tl-step,
  .tl-step.reveal,
  .tl-step.reveal.visible {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.25rem;
    padding: 2.25rem 1.25rem;
    border-bottom: none;
    width: 100%;
    position: relative;
    z-index: 1;
    opacity: .28;
    transform: scale(.96);
    transition: opacity .55s ease, transform .55s ease;
  }

  /* Paso activo (IntersectionObserver en JS) */
  .tl-step.tl-active,
  .tl-step.reveal.visible.tl-active {
    opacity: 1;
    transform: scale(1);
  }

  /* Dot: más grande, efecto activo */
  .tl-dot {
    flex-shrink: 0; width: 60px; height: 60px;
    margin-left: 0;
    border-width: 1.5px;
    border-color: rgba(0,114,206,.35);
    background: rgba(0,114,206,.07);
    transition: border-color .55s ease, box-shadow .55s ease, background .55s ease;
  }
  .tl-step.tl-active .tl-dot {
    border-color: #0072CE;
    background: rgba(0,114,206,.14);
    box-shadow: 0 0 0 8px rgba(0,114,206,.07), 0 0 28px rgba(0,114,206,.22);
  }

  .tl-num { font-size: .82rem; }

  /* Card centrado */
  .tl-card {
    align-items: center; text-align: center;
    padding: 0; gap: .8rem;
  }

  /* Ícono: protagonista visual */
  .tl-icon {
    width: 76px; height: 76px;
    color: rgba(0,114,206,.45);
    background: rgba(0,114,206,.06);
    border: 1px solid rgba(0,114,206,.12);
    border-radius: 22px;
    padding: 18px;
    transition: color .55s ease, box-shadow .55s ease, border-color .55s ease;
  }
  .tl-icon svg { stroke-width: 1.3; }
  .tl-step.tl-active .tl-icon {
    color: #0072CE;
    border-color: rgba(0,114,206,.32);
    box-shadow: 0 0 30px rgba(0,114,206,.18), inset 0 0 20px rgba(0,114,206,.04);
  }

  .tl-title { font-size: 1.1rem; font-weight: 700; color: rgba(255,255,255,.88); }
  .tl-desc  { max-width: 270px; font-size: .83rem; line-height: 1.72; }

  /* Formulario */
  .form-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .form-card { padding: 2rem; }
  .svc-panel {
    position: fixed; bottom: 0; left: 0; right: 0; top: auto;
    border-radius: 16px 16px 0 0; max-height: 75vh; overflow-y: auto;
    transform: translateY(100%); visibility: hidden;
    box-shadow: 0 -4px 30px rgba(0,0,0,.15);
  }
  .svc-dropdown.open .svc-panel { transform: translateY(0); visibility: visible; }
  /* Overlay + header del panel en móvil */
  .svc-dropdown.open .svc-overlay { display: block; }
  .svc-panel-header { display: flex; }

  /* Footer */
  .footer-grid        { grid-template-columns: 1fr; gap: 2.5rem; padding: 3.5rem 0 3rem; }
  .footer-brand       { grid-column: auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .6rem; }
  .footer-logo        { height: 58px; margin-bottom: 0; }
  .footer-lema        { text-align: center; margin-bottom: .75rem; font-size: .85rem; }
  /* Encabezado de columna: más legible en móvil */
  .footer-head        {
    text-align: center; width: 100%;
    font-size: .75rem; color: rgba(255,255,255,.55);
    margin-bottom: 1rem;
  }
  /* Contacto */
  .footer-contact     { align-items: center; }
  .fct-row            { display: block; text-align: center; max-width: 280px; }
  .fct-icon           { display: inline; vertical-align: middle; margin-right: .35rem; width: 13px; height: 13px; }
  .fct-row span,
  .fct-row a          { display: inline; font-size: .875rem; }
  /* Enlaces: 14px + touch target amplio (mínimo 44px de altura táctil) */
  .footer-links       { align-items: center; }
  .footer-links a     {
    justify-content: center;
    font-size: .875rem;
    padding: .7rem 0;
    color: rgba(210,222,234,.65);
    min-height: 44px;
  }
  .footer-links a:hover  { transform: none; gap: 0; }
  .footer-links a::before { display: none; }
  /* Copyright: mínimo 12px */
  .footer-copy        { padding: 1.35rem 0; }
  .footer-copy-inner  { gap: .65rem; flex-direction: column; align-items: center; text-align: center; }
  .footer-copy-inner p { font-size: .75rem; color: rgba(210,222,234,.28); }
  .footer-copy-dot    { display: none; }
  .footer-copy p br   { display: inline; }

  /* Botón volver arriba — área segura para móvil */
  #back-top {
    bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + .75rem));
    right: 1.25rem; width: 40px; height: 40px;
  }

  /* Galería */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 180px 180px;
  }
  .gallery-item--wide { grid-column: span 2; }
}

/* ── 480px: móvil pequeño ── */
@media (max-width: 480px) {
  .header-container { padding: 0 1rem; }
  .hero-content { padding: 5.5rem 1rem 3rem; }
  .container { padding: 0 1rem; }
  .form-card { padding: 1.5rem 1.25rem; }

  /* Tipografía */
  .hero-title { line-height: 1.2; }
  .section-title,
  .section-title-dark { line-height: 1.42; font-size: clamp(1.45rem, 7vw, 1.7rem); }

  /* Imagen nosotros — ajuste para pantalla muy pequeña */
  .about-img-main { aspect-ratio: 3 / 2; }
  .about-badge { bottom: 1rem; right: 1rem; padding: .65rem .85rem; }
  .about-badge-num { font-size: 1.4rem; }

  /* Stats — 3 iconos en fila estrecha */
  .stats-icons { gap: .6rem; }
  .stat-icon-item { min-width: 70px; }
  .stat-svg  { width: 52px; height: 52px; }
  .stat-icon-num   { font-size: 1.25rem; }
  .stat-icon-label { font-size: .58rem; letter-spacing: .04em; }

  /* Marcas: compacto en móvil */
  .brands-section { padding: 2.5rem 0; }
  .brands-carousel { margin-top: 1.25rem; }
  .brands-carousel::before,
  .brands-carousel::after { width: 32px; }

  /* Timeline móvil pequeño */
  .tl-dot  { width: 52px; height: 52px; }
  .tl-icon { width: 64px; height: 64px; padding: 15px; border-radius: 18px; }
  .tl-step,
  .tl-step.reveal,
  .tl-step.reveal.visible { padding: 2rem 1rem; gap: 1rem; }
  .tl-title { font-size: 1rem; }
  .tl-desc  { font-size: 1rem; line-height: 1.7; }

  /* Acordeón muy compacto */
  .acc-header { padding: 1rem; gap: .75rem; }
  .acc-icon   { width: 40px; height: 40px; border-radius: 10px; }
  .acc-title  { font-size: .875rem; }
  .acc-inner  { padding: .75rem 1rem 1.25rem; gap: 1rem; overflow: visible; }
  /* Refuerzo etiquetas y bullets en móvil pequeño */
  .acc-inner .acc-label { font-size: .63rem !important; color: #0072CE !important;
    text-transform: uppercase !important; font-weight: 700 !important; display: block !important;
    margin-bottom: .4rem !important; letter-spacing: .08em !important; }
  .acc-inner .acc-bullets { list-style: none !important; padding: 0 !important; margin: 0 !important; }
  .acc-inner .acc-bullets li { font-size: .82rem; padding-left: 1.15rem; position: relative;
    list-style: none !important; color: #6b7280; }
  .acc-inner .acc-bullets li::before { content: '' !important; position: absolute;
    left: 0; top: .6em; width: 5px; height: 5px; border-radius: 50%;
    background: #0072CE !important; display: block !important; }

  /* Servicios dropdown */
  .svc-opt { padding: .85rem 1rem; font-size: .9rem; }
  .form-card { padding: 1.5rem; }

  /* Clientes carousel — móvil */
  .client-logo-slide { width: 160px; height: 90px; }
  .client-slide-logo { max-height: 80px; max-width: 240px; }
  /* Logo visible en viewport → muestra color (efecto scroll) */
  .client-logo-slide.in-view .client-slide-logo { filter: grayscale(0) opacity(1); }
  .client-logo-slide.in-view .client-slide-name  { color: rgba(0,0,0,.5); }

  /* Galería una columna */
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-item { aspect-ratio: 16/9; }
  .gallery-item--wide { grid-column: span 1; }

  /* Formulario */
  .finput { font-size: .875rem; }
  .btn-submit { font-size: .95rem; padding: 1rem 1.5rem; }
}

/* ═══════════════════════════════════════════════
   MODAL — ESTUDIO DE CASO
═══════════════════════════════════════════════ */

/* Hint "Ver proyectos" sobre el logo */
.cs-hint {
  display: block;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #0072CE;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
  margin-top: .5rem;
  pointer-events: none;
}
.client-logo-slide[data-client] {
  cursor: pointer;
  position: relative;
}
.client-logo-slide[data-client]:hover .cs-hint { opacity: 1; transform: translateY(0); }
.client-logo-slide[data-client]:hover .client-slide-logo { filter: grayscale(0) opacity(1); transform: scale(1.06); }

/* Overlay */
.cs-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.cs-overlay[hidden]:not(.cs-open) { display: none !important; }
.cs-overlay.cs-open { opacity: 1; }

.cs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Dialog */
.cs-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.35);
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
  padding: 2.5rem 2.5rem 2rem;
}
.cs-overlay.cs-open .cs-dialog { transform: translateY(0) scale(1); }

/* Botón cerrar */
.cs-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 36px; height: 36px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #374151;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.cs-close:hover { background: #f3f4f6; border-color: #d1d5db; color: #0072CE; }
.cs-close svg { width: 16px; height: 16px; }

/* Header del modal */
.cs-header { margin-bottom: 1.75rem; }
.cs-client-label {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #0072CE;
  margin-bottom: .5rem;
}
.cs-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .6rem;
  letter-spacing: .02em;
  line-height: 1.3;
}
.cs-desc {
  font-family: var(--font-body);
  font-size: .95rem;
  color: #6b7280;
  line-height: 1.7;
}

/* Carrusel de imágenes */
.cs-carousel {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cs-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: 8px;
}
.cs-track {
  display: flex;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
}
.cs-slide {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.cs-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  display: block;
}

/* Flechas */
.cs-arrow {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}
.cs-arrow:hover { background: #0072CE; border-color: #0072CE; color: #fff; box-shadow: 0 4px 16px rgba(0,114,206,.3); }
.cs-arrow:disabled { opacity: .3; cursor: default; pointer-events: none; }
.cs-arrow svg { width: 18px; height: 18px; }

/* Dots */
.cs-dots {
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .25rem;
}
.cs-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .25s;
  padding: 0;
}
.cs-dot.active {
  background: #0072CE;
  transform: scale(1.35);
}

/* Solo 1 imagen — ocultar flechas/dots */
.cs-carousel.cs-single .cs-arrow { display: none; }
.cs-dots:has(.cs-dot:only-child) { display: none; }

/* Scrollbar elegante dentro del dialog */
.cs-dialog::-webkit-scrollbar { width: 4px; }
.cs-dialog::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

/* Mobile */
@media (max-width: 600px) {
  .cs-dialog { padding: 1.5rem 1.25rem 1.5rem; border-radius: 12px; }
  .cs-title { font-size: 1.2rem; }
  .cs-carousel { gap: .6rem; }
  .cs-arrow { width: 36px; height: 36px; }
  .cs-arrow svg { width: 16px; height: 16px; }
}
