/* =========================================================
   SERSEVI — SEGURIDAD PRIVADA
   Sistema de diseño: sala de monitoreo / panel de control
   ========================================================= */

:root {
  /* Color */
  --bg-void: #0E1B45;
  --bg-panel: #16265E;
  --bg-panel-2: #1C2F70;.floating-btn.facebook
  --steel: #3A4557;
  --steel-light: #5A6785;
  --amber: #E8A33D;
  --amber-dim: #8A6323;
  --signal: #4ADE80;
  --signal-dim: #1F5138;
  --red-alert: #E85D3D;
  --text-primary: #E9ECF3;
  --text-muted: #8B95AC;
  --text-faint: #5A6480;
  --border: rgba(233, 236, 243, 0.09);
  --border-strong: rgba(233, 236, 243, 0.16);

  /* Type */
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-w: 1200px;
  --radius: 2px;
}

/* Variante de marca: azul marino + verde + blanco — usada en Servicios,
   Sobre Nosotros y Contáctanos (colores del escudo SERSEVI) */
body.brand-green {
  --amber: #4CAF6D;
  --amber-dim: #2E6B3F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--amber);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 600;
  line-height: 1.08;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  max-width: 640px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 480px;
  margin-top: 16px;
  font-size: 16px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

/* status dot */
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-dim);
  flex-shrink: 0;
}
.dot.amber { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-dim); }
@media (prefers-reduced-motion: no-preference) {
  .dot.pulse { animation: pulse 2.2s ease-in-out infinite; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 15px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.btn-primary {
  background: var(--amber);
  color: #1A1305;
  border-color: var(--amber);
  font-weight: 600;
}
.btn-primary:hover { background: #f0af4c; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.3);
}
.navbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}

.nav-cta { justify-self: end; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0A0A0A;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(255, 255, 255, 0.4);
}
.brand-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #1A1A1A;
  letter-spacing: 0.14em;
  margin-left: 4px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  color: #0A0A0A;
  font-weight: 600;
  padding: 6px 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.55), 0 1px 3px rgba(255, 255, 255, 0.4);
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--amber-dim);
  transition: width 0.2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible { color: #000; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav-links a.active { color: #000; }
.nav-links a.active::after { width: 100%; background: var(--amber-dim); }

.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-cta .btn { padding: 11px 20px; }
.navbar .btn-ghost {
  color: #0A0A0A;
  border-color: rgba(10, 10, 10, 0.35);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.navbar .btn-ghost:hover { border-color: var(--amber-dim); color: var(--amber-dim); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(10, 10, 10, 0.35);
  color: #0A0A0A;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  /* La sección toma la misma proporción que la imagen (1920x1080 = 16:9),
     así la foto se ve completa, cubre toda la sección y no se deforma. */
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding-top: 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background-image:
    linear-gradient(180deg, rgba(8, 12, 20, 0) 0%, rgba(8, 12, 20, 0.12) 55%, rgba(8, 12, 20, 0.22) 100%),
    url('assets/inicio.png');
  background-size: cover;            /* nunca estira: mantiene la proporción */
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #080c14;
}

/* Tablet y móvil: la imagen se muestra completa arriba (misma proporción
   16:9, sin recortes ni deformación) y el texto va debajo, sobre fondo sólido. */
@media (max-width: 820px) {
  .hero {
    aspect-ratio: auto;
    min-height: 0;
    padding-top: 56.25vw;            /* alto exacto de la imagen = 9/16 del ancho */
    align-items: flex-start;
    background-size: 100% 100%, 100% auto;  /* degradado | imagen sin estirar */
    background-position: center top;
  }
  .hero-inner { padding-top: 28px; padding-bottom: 44px; }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 40% 80%, black 10%, transparent 75%);
  pointer-events: none;
}
.hero-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, rgba(74, 222, 128, 0.08), transparent);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-scanline { animation: scan 7s linear infinite; }
}
@keyframes scan {
  0% { transform: translateY(-140px); }
  100% { transform: translateY(100vh); }
}

/* =========================================================
   EFECTOS DE FONDO REUTILIZABLES (para dar sensación de
   movimiento/actualidad en Servicios, Sobre Nosotros, Contacto)
   ========================================================= */
.fx-grid { position: relative; overflow: hidden; }
.fx-grid::before {
  content: '';
  position: absolute;
  inset: -70px;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fx-grid::before { animation: grid-pan 16s linear infinite; }
}
@keyframes grid-pan {
  0% { transform: translate(0, 0); }
  100% { transform: translate(64px, 64px); }
}

.fx-scan {
  position: absolute;
  left: 0; right: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(76, 175, 109, 0.10), transparent);
  pointer-events: none;
  z-index: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .fx-scan { animation: scan 11s linear infinite; }
}

.fx-grid > .container { position: relative; z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
}

.hero-copy { max-width: 560px; }
.hero-copy p.eyebrow { margin-bottom: 18px; }
.hero-headline {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.2;
  color: var(--text-primary);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.65);
  max-width: 500px;
}
.hero-headline .accent { color: var(--amber); }

/* status ticker strip — its own section, off the photo */
.ticker {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.ticker-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.ticker-item {
  flex: 1 1 220px;
  padding: 22px 32px;
  border-right: 1px solid var(--border);
  font-family: var(--font-mono);
}
.ticker-item:last-child { border-right: none; }
.ticker-item .n { font-size: 26px; color: var(--amber); }
.ticker-item .t { font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* =========================================================
   SERVICIOS
   ========================================================= */
.servicios { padding: 128px 0; border-bottom: 1px solid var(--border); }

.photo-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.photo-service-card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-void);
}
.photo-service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05) brightness(0.85);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.photo-service-card:hover img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.08) brightness(0.75);
}
.photo-service-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, transparent 30%, rgba(6, 11, 28, 0.55) 65%, rgba(6, 11, 28, 0.92) 100%);
}
.photo-service-overlay h3 {
  font-size: 21px;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.photo-service-overlay p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
  max-width: 360px;
}
.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
}

/* =========================================================
   VIDEO — GARITA EN ACCIÓN
   ========================================================= */
.video-feature { padding: 0 0 128px; }
.video-frame {
  position: relative;
  border: 1px solid var(--border-strong);
  background: #000;
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
.video-frame video {
  width: 100%;
  display: block;
  max-height: 620px;
}

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */
.nosotros { padding: 128px 0; border-bottom: 1px solid var(--border); }
.nosotros-copy { max-width: 760px; margin-bottom: 44px; }
.nosotros-copy p { color: var(--text-muted); margin-bottom: 20px; font-size: 16px; }
.nosotros-copy .lead-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ---- Carrusel múltiple de fotos (Sobre Nosotros) ----
   Ancho y bajo, muestra varias fotos a la vez, con efecto
   de acercamiento al pasar el cursor (estilo Netflix). */
.multi-carousel { position: relative; }
.multi-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 26px 4px;
}
.multi-carousel-viewport::-webkit-scrollbar { display: none; }
.multi-carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.multi-carousel-slide {
  flex: 0 0 260px;
  height: 190px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.multi-carousel-slide:hover {
  transform: scale(1.14);
  z-index: 3;
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.65);
}
.multi-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.03);
}
.multi-carousel-slide .slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(180deg, transparent, rgba(6, 11, 28, 0.85));
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.multi-carousel-slide.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.multi-carousel-slide.placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 30px 30px;
}
.multi-carousel-slide .ph-num {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 40px;
  color: rgba(255, 255, 255, 0.35);
}
.multi-carousel-slide .ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.multi-carousel-slide.ph-1 { background: linear-gradient(135deg, #16265E, #1C2F70); }
.multi-carousel-slide.ph-2 { background: linear-gradient(135deg, #1C2F70, #2E6B3F); }
.multi-carousel-slide.ph-3 { background: linear-gradient(135deg, #0E1B45, #2E6B3F); }
.multi-carousel-slide.ph-4 { background: linear-gradient(135deg, #2E6B3F, #16265E); }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(6, 11, 28, 0.6);
  backdrop-filter: blur(4px);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.carousel-btn:hover { border-color: var(--amber); color: var(--amber); background: rgba(6, 11, 28, 0.8); }
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }

/* =========================================================
   CLIENTES
   ========================================================= */
/* =========================================================
   BLOQUES DE IMAGEN + TEXTO (dentro de Sobre Nosotros)
   ========================================================= */
.inline-split { padding: 96px 0; border-bottom: 1px solid var(--border); }
.inline-split.alt { background: var(--bg-panel); }
.inline-split-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.inline-split-layout.reverse { grid-template-columns: 1.15fr 0.85fr; }
.inline-split-layout.reverse .inline-split-media { order: -1; }
.inline-split-copy h3 { font-size: 28px; margin: 6px 0 16px; }
.inline-split-copy p { color: var(--text-muted); font-size: 15.5px; max-width: 440px; }
.inline-split-media img {
  width: 100%;
  display: block;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
.inline-split-media img.diagram-img {
  background: #F4F5F8;
  padding: 24px;
  box-sizing: border-box;
}

/* Marco unificado: hace que la fotografía/diagrama se vea integrada
   al diseño de la página en vez de flotar suelta sobre el fondo. */
.inline-split-media.framed {
  padding: 14px;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
.inline-split-media.framed img {
  box-shadow: none;
}
.inline-split-media.framed img.diagram-img {
  padding: 20px;
}

.media-collage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: repeat(3, 140px);
  gap: 10px;
  overflow: hidden;
  padding: 14px;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
.media-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-strong);
  filter: saturate(0.92) contrast(1.03);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.media-collage img:hover {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.06);
  z-index: 2;
}
.media-collage .collage-main { grid-row: 1 / 4; }

/* =========================================================
   CLIENTES
   ========================================================= */
.logo-showcase {
  background: #F4F5F8;
  border: 1px solid var(--border-strong);
  padding: 40px;
  margin-bottom: 64px;
  position: relative;
  z-index: 1;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  align-items: center;
}
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.logo-cell img {
  width: 100%;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  display: block;
  filter: grayscale(0.15);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.logo-cell:hover img { transform: scale(1.08); filter: grayscale(0); }

/* efecto de aparición al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.clientes { padding: 128px 0; border-bottom: 1px solid var(--border); background: var(--bg-panel); }

.testimonial {
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  padding: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: flex-start;
}
.testimonial .mark {
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--amber);
  line-height: 0.7;
}
.testimonial blockquote {
  font-size: 19px;
  line-height: 1.5;
  margin-bottom: 20px;
  max-width: 640px;
}
.testimonial cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contacto { padding: 128px 0; }
.contacto-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  position: relative;
  z-index: 1;
}
/* ---- Tarjetas de información (Contáctanos) ---- */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}
.contact-card {
  background: var(--bg-void);
  padding: 32px 26px;
  transition: background 0.25s ease;
}
.contact-card:hover { background: var(--bg-panel); }
.contact-card .icon { width: 32px; height: 32px; color: var(--amber); margin-bottom: 20px; }
.contact-card .lab {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.contact-card .val { font-size: 16px; }
.contact-card .val a:hover { color: var(--amber); }

.contacto-bottom-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.map-embed {
  min-height: 360px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  filter: grayscale(0.15) contrast(1.05);
}
.map-embed iframe { display: block; width: 100%; height: 100%; min-height: 360px; }

.contacto-side { display: flex; flex-direction: column; justify-content: center; min-height: 360px; }

.emergency-box {
  border: 1px solid var(--red-alert);
  background: rgba(232, 93, 61, 0.07);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.emergency-box .dot { background: var(--red-alert); box-shadow: 0 0 0 3px rgba(232,93,61,0.25); }
.emergency-box .lab { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); letter-spacing: 0.08em; text-transform: uppercase; }
.emergency-box .num { font-family: var(--font-mono); font-size: 20px; color: var(--red-alert); }

/* ---- Botones flotantes (WhatsApp / Facebook) ---- */
.floating-social {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.65); }
.floating-btn.whatsapp { background: #25D366; }
.floating-btn.facebook { background: #1877F2; }
.floating-btn.instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.contacto-agent {
  position: relative;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.6);
}
.contacto-agent img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.contacto-agent:hover img { transform: scale(1.05); }
.contacto-agent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 11, 28, 0.75) 100%);
  pointer-events: none;
}
.contacto-agent-chip {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 11, 28, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-strong);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.form-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-void);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 16px;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--signal);
  margin-top: 16px;
}
.form-success.show { display: flex; }

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-inner .brand { font-size: 16px; }
.footer-links { display: flex; gap: 28px; font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a:hover { color: var(--amber); }
.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .photo-service-grid { grid-template-columns: 1fr; }
  .contacto-layout, .inline-split-layout { grid-template-columns: 1fr; }
  .multi-carousel-slide { flex-basis: 220px; height: 165px; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial { grid-template-columns: 1fr; }
  .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-bottom-row { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: flex; }
  .ticker-item { flex: 1 1 50%; }
  .photo-service-card { aspect-ratio: 16 / 10; }
  .media-collage { grid-template-rows: repeat(3, 90px); padding: 10px; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 40px; }
  .floating-social { right: 16px; bottom: 16px; }
  .floating-btn { width: 46px; height: 46px; }
  .navbar-inner { display: flex; justify-content: space-between; }
}

/* Mobile nav drawer */
.mobile-drawer {
  position: fixed;
  inset: 76px 0 0 0;
  background: rgba(238, 240, 245, 0.98);
  backdrop-filter: blur(10px);
  z-index: 99;
  padding: 32px;
  display: none;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 18px 4px;
  border-bottom: 1px solid rgba(10, 15, 26, 0.1);
  color: var(--bg-void);
  font-size: 15px;
}
.mobile-drawer .btn { margin-top: 12px; align-self: flex-start; }



/* =========================================================
   HISTORIA DEL FUNDADOR (Inicio)
   ========================================================= */
.founder { padding: 112px 0; border-bottom: 1px solid var(--border); }
.founder-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.founder-inner .eyebrow { justify-content: center; }
.founder-photo {
  position: relative;
  width: min(100%, 460px);
  margin: 28px auto 36px;
  padding: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.founder-photo::before, .founder-photo::after {
  content: '';
  position: absolute;
  width: 34px; height: 34px;
  border: 2px solid var(--amber);
  pointer-events: none;
}
.founder-photo::before { top: -9px; left: -9px; border-right: none; border-bottom: none; }
.founder-photo::after { bottom: -9px; right: -9px; border-left: none; border-top: none; }
.founder-photo img {
  width: 100%;
  display: block;
  border: 1px solid var(--border-strong);
}
.founder-name { font-size: 22px; margin-bottom: 4px; }
.founder-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 26px;
}
.founder-text p { color: var(--text-muted); font-size: 16.5px; line-height: 1.7; margin-bottom: 16px; }

/* =========================================================
   HISTORIA SERSEVI — TEXTO, SUCURSALES E IMÁGENES
   ========================================================= */

/* Texto histórico justificado */
.founder-text {
  text-align: left;
}

.founder-text p {
  text-align: justify;
  text-justify: inter-word;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 22px;
  overflow-wrap: break-word;
}

/* Título de sucursales */
.history-subtitle {
  font-size: 23px;
  color: var(--text-primary);
  text-align: left;
  margin: 36px 0 18px;
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

/* Lista de sucursales con viñetas */
.history-branches {
  list-style: disc;
  padding-left: 28px;
  margin: 16px 0 28px;
  text-align: left;
}

.history-branches li {
  display: list-item;
  color: var(--text-muted);
  line-height: 1.8;
  padding-left: 5px;
  margin-bottom: 9px;
}

.history-branches li::marker {
  color: var(--amber);
}

.history-branches strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Segunda imagen: conserva el marco de la primera */
.founder-photo-secondary {
  margin-top: 34px;
  margin-bottom: 38px;
}

/* Efecto visual al pasar el cursor */
.founder-photo img {
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.4s ease;
}

.founder-photo:hover img {
  transform: scale(1.025);
  filter: saturate(1.05) contrast(1.04);
}

/* Ajustes para celulares */
@media (max-width: 720px) {
  .founder {
    padding: 80px 0;
  }

  .founder-text p {
    font-size: 15px;
    line-height: 1.8;
  }

  .founder-photo {
    width: 100%;
    padding: 10px;
    margin-top: 24px;
    margin-bottom: 30px;
  }

  .history-subtitle {
    font-size: 20px;
  }

  .history-branches {
    padding-left: 24px;
  }
}

/* =========================================================
   VIDEO EN FACEBOOK (Servicios)
   ========================================================= */
.fb-video-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.fb-video-copy .section-title { margin-bottom: 4px; }
.fb-video-actions { margin-top: 28px; }
.fb-video-actions .btn svg { flex-shrink: 0; }

.fb-video-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
}
.fb-play {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #0A0A0A;
  background: var(--amber);
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-play::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--amber);
  opacity: 0.55;
}
@media (prefers-reduced-motion: no-preference) {
  .fb-play::before { animation: fb-ring 2.4s ease-out infinite; }
}
@keyframes fb-ring {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}
.fb-video-visual:hover .fb-play,
.fb-video-visual:focus-visible .fb-play { transform: scale(1.1); }
.fb-video-visual:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.fb-video-chip {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(6, 11, 28, 0.65);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
}

@media (max-width: 980px) {
  .fb-video-card { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 720px) {
  .fb-play { width: 52px; height: 52px; right: 18px; bottom: 18px; }
  .fb-video-chip { left: 18px; bottom: 18px; }
}

.fb-video-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fb-video-visual:hover .fb-video-thumb { transform: scale(1.03); }
.fb-video-chip { background: rgba(6, 11, 28, 0.8); }
