* { box-sizing: border-box; }
:root {
  --bg: #fafafa;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --txt: #0f172a;
  --muted: #4b5563;
  --primary: #e50914;
  --primary-700: #b30710;
  --accent: #ff2d55;
  --glow: 0 0 24px rgba(229, 9, 20, 0.25);
  --nav-pill-w: 165px; /* ancho ligeramente mayor para que no se corte el texto de Conectividad */
  --nav-pill-h: 40px;
  --logo-offset: 0.6rem; /* desplazar el logo hacia la izquierda (ajustado) */
}
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg);
  color: var(--txt); font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; line-height: 1.65;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.site-header .container { width: min(1240px, 96%); }
.noise { position: fixed; inset: -20%; background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.015"/></svg>'); pointer-events: none; z-index: 0; }

/* Side promo (left) used in Web y Marketing page */
/* Position slightly lower (1cm) to avoid overlapping header */
/* Promo lateral: entrada con rebote desde el fondo y después flotación */
.side-promo { position: fixed; top: 72px; left: 12px; transform: translateX(-28px); pointer-events: none; z-index: 4; opacity: 0.98; padding-left: 6px; display: flex; align-items: flex-start; animation: sideBounce .78s cubic-bezier(.22,.9,.32,1) both; }

.side-promo__img { display: block; max-height: 88vh; max-width: 32vw; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,0.16); margin-top: 0; animation: sideFloat 6s ease-in-out 0.9s infinite; }

/* Ajuste extra: reducir ligeramente y bajar 1cm para evitar que tape contenido
   y dejar una pequeña separación también en la parte inferior de la pantalla */
.side-promo__img { max-width: 32vw; max-height: 85vh; margin-top: 1cm; }

@keyframes sideBounce {
  0% {
    transform: translate3d(-120px, 40px, 0) scale(.96);
    opacity: 0;
  }
  45% {
    transform: translate3d(18px, -10px, 0) scale(1.03);
    opacity: 1;
  }
  65% {
    transform: translate3d(-10px, 6px, 0) scale(.995);
  }
  82% {
    transform: translate3d(4px, -3px, 0) scale(1.002);
  }
  100% {
    transform: translate3d(0,0,0) scale(1);
    opacity: 1;
  }
}

@keyframes sideFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1100px) {
  .side-promo { display: none; }
}

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.06); overflow: visible; }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 28px; padding: 14px 0; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: var(--txt); letter-spacing: 0.02em; transform: translateX(calc(-1 * var(--logo-offset))); }
.brand-logo { height: 66px; width: auto; display: block; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(229,9,20,0.18)); transform: scale(1.28); transform-origin: left center; }
.brand-mark { color: var(--primary); text-shadow: var(--glow); font-size: 22px; }
.brand-name { display: none; font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; font-size: 18px; letter-spacing: 0.01em; color: #0b0b0c; text-shadow: 0 1px 0 rgba(255,255,255,0.6), 0 0 20px rgba(229,9,20,0.08); }
.nav-toggle { display: none; background: transparent; color: var(--txt); font-size: 24px; border: 1px solid rgba(255,255,255,0.1); padding: 6px 10px; border-radius: 8px; }
.menu { display: flex; gap: 10px; list-style: none; margin: 0 0 0 auto; padding: 0; align-items: center; }
.menu li { display: flex; }
.menu a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #0f172a; text-decoration: none; padding: 0 8px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.08); background: linear-gradient(180deg, #ffffff, #fafafa); box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 6px 14px rgba(0,0,0,0.04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; font-weight: 600; font-size: 12px; letter-spacing: 0.04em; text-transform: none; width: var(--nav-pill-w); height: var(--nav-pill-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu a:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.85) inset; border-color: rgba(229,9,20,0.35); }
.menu li:last-child { margin-left: 12px; }
/* Botón Contacto mantiene estilo de botón */
.menu .btn { background: linear-gradient(180deg, var(--primary), var(--primary-700)); color: #fff; border-color: rgba(0,0,0,0.1); box-shadow: 0 10px 24px rgba(229,9,20,0.14); font-size: 14px; letter-spacing: 0.02em; }
.menu .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(229,9,20,0.18); }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher select {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.18);
  background: #ffffff;
  font-size: 12px;
  min-width: 115px;
  font-weight: 600;
}

/* Hero */
.hero { position: relative; overflow: clip; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1501183638710-841dd1904471?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  transform: scale(1);
  filter: brightness(0.9) saturate(1.05);
  animation: kenburns 28s ease-in-out infinite alternate;
  z-index: 0;
}
.hero.hero--conectividad::before {
  background-image: url('tipos-de-conexiones-a-internet.jpg?v=2');
}
.hero.hero--hogar::before {
  background-image: url('servicios de hogar.jpeg');
}
.hero.hero--seguridad::before {
  background-image: url('seguridad.webp');
}
.hero.hero--web::before {
  background-image: url('Blue Modern and Simple Technology Logo.png');
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.35) 40%, rgba(255,255,255,0.7)), radial-gradient(1200px 600px at 80% -10%, rgba(229,9,20,.08), transparent);
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 88px 0 56px; }
.hero-copy h1 { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 800; font-size: clamp(38px, 6.4vw, 68px); line-height: 1.06; margin: 0 0 12px; letter-spacing: -0.01em; color: #111827; }
.hero.center .hero-inner { grid-template-columns: 1fr; min-height: calc(100vh - 110px); place-items: center; padding: 96px 0 72px; text-align: center; }
.hero.center .hero-copy { max-width: 920px; }
.hero.center .hero-copy .lead { max-width: 760px; margin-left: auto; margin-right: auto; }
.hero.center::after { background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.45) 40%, rgba(255,255,255,0.75)), radial-gradient(1200px 600px at 80% -10%, rgba(229,9,20,.06), transparent); }
.hero.center .glow { text-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 0 18px rgba(229,9,20,0.16); }
.hero-contact { width: min(1080px, 96%); margin: 0 auto; background: rgba(255,255,255,0.88); border: 1px solid rgba(0,0,0,0.08); border-radius: 16px; padding: 18px; box-shadow: 0 12px 32px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.8) inset; text-align: left; }
.hero-contact .section-title { text-align: left; }
.hero-contact .section-subtitle { text-align: left; }
.hero-title { display: inline-block; padding: 10px 16px; border-radius: 14px; background: linear-gradient(180deg, #ffffff, #f5f5f5); border: 2px solid #0b0b0c; box-shadow: 0 10px 26px rgba(229,9,20,0.14), 0 2px 0 rgba(0,0,0,0.06) inset, 0 0 0 1px rgba(229,9,20,0.35) inset; position: relative; }
.hero-title::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -8px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(229,9,20,0.6)); filter: blur(4px); opacity: 0.6; }
.letter-spaced { letter-spacing: 0.28em; font-weight: 700; text-transform: none; -webkit-text-stroke: 0.6px rgba(0,0,0,0.65); text-shadow: 0 1px 0 rgba(0,0,0,0.35), 0 -1px 0 rgba(0,0,0,0.35), 1px 0 0 rgba(0,0,0,0.35), -1px 0 0 rgba(0,0,0,0.35); }
.glow { text-shadow: 0 0 0 rgba(0,0,0,0), 0 0 18px rgba(229,9,20,0.18); }
.lead { color: #4b5563; font-size: clamp(16px, 2.2vw, 20px); margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { border: 1px solid rgba(0,0,0,0.08); padding: 6px 10px; border-radius: 999px; color: #111827; background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); }
.trust-row { display: flex; gap: 10px; margin-top: 16px; }

.hero-visual { position: relative; min-height: 360px; }
.responsive-video { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.18); border: 1px solid rgba(0,0,0,0.06); background: #000; }
.promo-img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.12); border: 1px solid rgba(0,0,0,0.06); }
.grid-cube { display: none !important; }
.orb, .orb-1, .orb-2 { display: none !important; }
.hero-bottom-gradient { position: absolute; bottom: -1px; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, rgba(229,9,20,0.18), rgba(255,255,255,0)); filter: blur(24px); pointer-events: none; }

/* Sections */
.section { padding: 72px 0; position: relative; }
.section.alt { background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); }
.section-title { font-size: clamp(24px, 3.2vw, 36px); margin: 0 0 12px; }
.section-title { font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; font-weight: 700; letter-spacing: -0.01em; }
.section-subtitle { color: var(--muted); margin: 0 0 28px; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); border: 1px solid rgba(0,0,0,0.06); padding: 22px; border-radius: 16px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: rgba(229,9,20,0.35); }

/* Franjas de servicios para la página de Hogar */
.home-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  /* hacer que las franjas ocupen todo el ancho de la ventana, aunque estén dentro de .container */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 18px;
}
.home-service { position: relative; overflow: hidden; border-radius: 18px; min-height: 220px; display: flex; align-items: center; background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-service::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,23,42,0.82), rgba(15,23,42,0.45)); }
.home-service__content { position: relative; padding: 28px 26px; color: #fff; max-width: 560px; }
.home-service__content h3 { margin: 0 0 4px; font-size: 20px; }
.home-service__content p { margin: 0; font-size: 14px; opacity: 0.96; }

/* Diferentes matices por tipo de servicio, con imagen específica de fondo */
.home-service:nth-child(1) { background-image: linear-gradient(120deg, rgba(234,88,12,0.78), rgba(220,38,38,0.6)), url('imagenes para franjas/Electricidad.jpg'); }
.home-service:nth-child(2) { background-image: linear-gradient(120deg, rgba(37,99,235,0.78), rgba(6,182,212,0.6)), url('imagenes para franjas/Franja de Fontanero.jpeg'); }
.home-service:nth-child(3) { background-image: linear-gradient(120deg, rgba(56,189,248,0.78), rgba(59,130,246,0.6)), url('imagenes para franjas/franja domotica.webp'); }
.home-service:nth-child(4) { background-image: linear-gradient(120deg, rgba(148,163,184,0.85), rgba(55,65,81,0.7)), url('imagenes para franjas/franja reparaciones.jpg'); }
.home-service:nth-child(5) { background-image: linear-gradient(120deg, rgba(16,185,129,0.8), rgba(5,150,105,0.7)), url('imagenes para franjas/Franja de mantenimiento.jpeg'); }

/* Animación de entrada alternando lados para franjas de hogar */
.home-service.reveal {
  /* override del desplazamiento vertical genérico de .reveal */
  transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s ease;
}
.home-service.reveal:nth-child(even) {
  transform: translateX(40px);
}
.home-service.reveal.visible {
  transform: translateX(0);
}

/* Franjas de servicios para la página de Conectividad */
.connect-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 18px;
}
.connect-service {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.connect-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.82), rgba(15,23,42,0.45));
}
.connect-service__content {
  position: relative;
  padding: 28px 26px;
  color: #fff;
  max-width: 560px;
}
.connect-service__content h3 { margin: 0 0 4px; font-size: 20px; }
.connect-service__content p { margin: 0; font-size: 14px; opacity: 0.96; }

/* Matices por tipo de solución de conectividad, con imagen específica de fondo */
.connect-service:nth-child(1) { background-image: linear-gradient(120deg, rgba(59,130,246,0.85), rgba(37,99,235,0.7)), url('imagenes para franjas/wifi 01.png'); }
.connect-service:nth-child(2) { background-image: linear-gradient(120deg, rgba(14,165,233,0.85), rgba(6,182,212,0.7)), url('imagenes para franjas/cableados de red.jpg'); }
.connect-service:nth-child(3) { background-image: linear-gradient(120deg, rgba(56,189,248,0.85), rgba(37,99,235,0.7)), url('imagenes para franjas/racks.png'); }
.connect-service:nth-child(4) { background-image: linear-gradient(120deg, rgba(96,165,250,0.85), rgba(30,64,175,0.75)), url('imagenes para franjas/franja de dmediciones.jpeg'); }
.connect-service:nth-child(5) { background-image: linear-gradient(120deg, rgba(37,99,235,0.9), rgba(15,23,42,0.85)), url('imagenes para franjas/mediciones y potencia.png'); }

/* Animación de entrada alternando lados para franjas de conectividad */
.connect-service.reveal {
  transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s ease;
}
.connect-service.reveal:nth-child(even) {
  transform: translateX(40px);
}
.connect-service.reveal.visible {
  transform: translateX(0);
}

/* Franjas de servicios para la página de Seguridad */
.security-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 18px;
}
.security-service {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 220px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.security-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.82), rgba(15,23,42,0.45));
}
.security-service__content {
  position: relative;
  padding: 28px 26px;
  color: #fff;
  max-width: 560px;
}
.security-service__content h3 { margin: 0 0 4px; font-size: 20px; }
.security-service__content p { margin: 0; font-size: 14px; opacity: 0.96; }

.security-service__actions {
  margin-top: 12px;
}

.security-service__content--with-brands {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
  width: 100%;
  padding: 28px 40px;
  gap: 24px;
}
.security-service__center {
  flex: 1 1 auto;
  text-align: center;
}
.security-brands {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.security-service__content--with-brands .security-service__center h3 {
  font-size: 24px;
}
.security-service__content--with-brands .security-service__center p {
  font-size: 16px;
}
.security-brands--left {
  margin: 0;
  transform: translateX(60px);
}
.security-brands--right {
  margin: 0;
}
.security-brand-logo {
  max-height: 68px;
  width: auto;
  filter: drop-shadow(0 0 4px rgba(0,0,0,0.7));
}
.security-brand-logo--hikvision {
  max-height: 200px;
}
.security-brand-logo--tapo {
  max-height: 200px;
}

@media (max-width: 900px) {
  .security-service__content--with-brands {
    flex-direction: column;
    align-items: center;
  }
  .security-brands {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  /* En móvil los logos deben quedar centrados, sin el desplazamiento lateral */
  .security-brands--left {
    transform: none;
  }
}

.security-service__actions .security-view-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.security-service__actions .security-view-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

/* Imágenes específicas por solución de seguridad */
.security-service:nth-child(1) { /* Cámaras IP */
  background-image: linear-gradient(120deg, rgba(59,130,246,0.9), rgba(15,23,42,0.85)),
    url('imagenes para franjas/franja camaras ip.jpg');
}
.security-service:nth-child(2) { /* Alarmas */
  background-image: linear-gradient(120deg, rgba(248,113,113,0.9), rgba(127,29,29,0.85)),
    url('seguridad.webp');
}
.security-service:nth-child(3) { /* Accesos */
  background-image: linear-gradient(120deg, rgba(96,165,250,0.9), rgba(30,64,175,0.85)),
    url('imagenes para franjas/franja de accesos.png');
}
.security-service:nth-child(4) { /* Videoporteros */
  background-image: linear-gradient(120deg, rgba(129,140,248,0.9), rgba(55,48,163,0.85)),
    url('imagenes para franjas/franja de videoporteros.png');
}
.security-service:nth-child(5) { /* Grabación */
  background-image: linear-gradient(120deg, rgba(148,163,184,0.9), rgba(31,41,55,0.85)),
    url('imagenes para franjas/franja de grabacion.jpg');
}

/* Animación de entrada alternando lados para franjas de seguridad */
.security-service.reveal {
  transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s ease;
}
.security-service.reveal:nth-child(even) {
  transform: translateX(40px);
}
.security-service.reveal.visible {
  transform: translateX(0);
}

.security-gallery {
  margin-top: 72px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 40px;
  padding-right: 96px;
}
.security-gallery__title {
  margin: 0 0 40px;
  text-align: left;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;                 /* título en blanco */
  background-color: #dc2626;      /* franja roja de lado a lado */
  padding: 14px 40px 16px;
  box-shadow: 0 0 14px rgba(220, 38, 38, 0.75); /* ligero efecto "neón" en la franja */
}
.security-gallery__single {
  display: flex;
  flex-direction: row;
  gap: 56px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
}
.security-gallery__media {
  flex: 0 0 260px;
}
.security-gallery__image {
  width: 100%;
  max-width: 260px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 14px 30px rgba(0,0,0,0.35);
}
.security-gallery__thumbs {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.security-gallery__thumb {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.75;
}
.security-gallery__thumb.is-active {
  border-color: #2563eb;
  opacity: 1;
}
.security-gallery__text {
  flex: 0 0 240px;
  margin-top: 2px;
}
.security-gallery__camera-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #dc2626;
  text-decoration: underline;
}
.security-gallery__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  text-align: left;
  color: #000000;
}
.security-gallery__specs li {
  font-weight: 600;
}
.security-gallery__specs strong {
  color: #000000;
}

/* Layout responsive para la galería de cámaras */
@media (max-width: 980px) {
  .security-gallery {
    padding-left: 20px;
    padding-right: 20px;
  }

  .security-gallery__single {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .security-gallery__media,
  .security-gallery__text {
    flex: 0 0 auto;
    width: 100%;
  }
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  column-gap: 40px;
  row-gap: 28px;
  align-items: stretch;
}

.reviews-map {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.16);
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 420px;
}

.reviews-map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.reviews-list {
  padding: 24px;
}

.reviews-list .review {
  margin-bottom: 24px;
}

.reviews-list .review .review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.reviews-list .review .review-header .review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.16);
}

.reviews-list .review .review-header .review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}

.reviews-list .review .review-header .review-meta .review-name {
  margin: 0;
  font-weight: 600;
}

.reviews-list .review .review-header .review-meta .review-service {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.reviews-list .review .review-header .review-meta .review-stars {
  font-size: 0.9rem;
  color: #f59e0b; /* dorado */
}

.reviews-list .review .review-text {
  margin-top: 4px;
}

.reviews-list .review .review-text p {
  margin: 0;
}

.reviews-list .review .review-actions {
  margin-top: 12px;
}

.reviews-list .review .review-actions .review-btn {
  padding: 10px 22px;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 2px solid #ffffff !important;
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.reviews-list .review .review-actions .review-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-map {
    margin-top: 24px;
  }
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(15,23,42,0.04);
  border: 1px solid rgba(15,23,42,0.12);
}
.cart-item__main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-item__thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  flex-shrink: 0;
}
.cart-item__name {
  font-weight: 600;
}
.cart-item__meta {
  font-size: 0.9rem;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  background-color: #ffffff;
  border: 1px solid rgba(15,23,42,0.15);
}
.cart-item__subtotal {
  font-weight: 600;
}
.cart-total {
  margin-top: 12px;
  font-weight: 700;
}

.cart-qty-btn {
  padding: 2px 8px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.2);
  background: #ffffff;
  cursor: pointer;
}
.cart-qty {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}
.cart-remove-btn {
  margin-left: 8px;
  border: none;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.9rem;
}

.security-gallery__price-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.security-gallery__price {
  font-weight: 700;
  font-size: 1.6rem;
}
.security-gallery__price-main {
  font-size: 2.3rem;
  line-height: 1;
}
.security-gallery__price-cents {
  font-size: 1rem;
  vertical-align: super;
  margin-left: 1px;
}
.security-gallery__price-currency {
  font-size: 1.1rem;
  margin-left: 4px;
}

.btn.btn-icon {
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: 2px solid #dc2626;
  border-radius: 999px;
  color: #dc2626;
  box-shadow: 0 0 6px rgba(220,38,38,0.7);
  animation: cartNeonPulse 1.4s ease-in-out infinite;
}
.icon-cart {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

@keyframes cartNeonPulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(220,38,38,0.6), 0 0 10px rgba(220,38,38,0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 10px rgba(220,38,38,0.9), 0 0 18px rgba(220,38,38,0.7);
    transform: scale(1.04);
  }
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 900;
}
.image-lightbox.open {
  display: flex;
}
.image-lightbox__inner {
  position: relative;
}
.image-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.6);
}
.image-lightbox__close {
  position: absolute;
  top: -14px;
  right: -14px;
  border-radius: 999px;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
}

/* Franjas de servicios para la página de Web y Marketing (centradas, no a ancho completo) */
.web-services {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 18px;
}
.web-service {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  min-height: 200px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.web-service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,23,42,0.86), rgba(15,23,42,0.45));
}
.web-service__content {
  position: relative;
  padding: 26px 24px;
  color: #fff;
  max-width: 560px;
}
.web-service__content h3 { margin: 0 0 4px; font-size: 20px; }
.web-service__content p  { margin: 0; font-size: 14px; opacity: 0.96; }

/* Centrar texto dentro de todas las franjas (títulos y descripciones) */
.home-service__content,
.connect-service__content,
.security-service__content,
.web-service__content {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Aumentar tamaño de títulos y descripciones dentro de las franjas */
.home-service__content h3,
.connect-service__content h3,
.security-service__content h3,
.web-service__content h3 {
  font-size: 22px;
}

.home-service__content p,
.connect-service__content p,
.security-service__content p,
.web-service__content p {
  font-size: 15px;
}

/* Matices para servicios de Web y Marketing, con imagen específica de fondo
   (no afecta a la imagen lateral .side-promo) */
.web-service:nth-child(1) { /* Web Corporativa */
  background-image: linear-gradient(120deg, rgba(59,130,246,0.92), rgba(139,92,246,0.85)),
    url('imagenes para franjas/franja web coorporativa.webp');
}
.web-service:nth-child(2) { /* SEO Local */
  background-image: linear-gradient(120deg, rgba(16,185,129,0.92), rgba(5,150,105,0.85)),
    url('imagenes para franjas/franja seo local.jpg');
}
.web-service:nth-child(3) { /* Redes Sociales */
  background-image: linear-gradient(120deg, rgba(249,115,22,0.92), rgba(220,38,38,0.85)),
    url('imagenes para franjas/franja de redes sociales.webp');
}
.web-service:nth-child(4) { /* Branding */
  background-image: linear-gradient(120deg, rgba(244,114,182,0.92), rgba(147,51,234,0.85)),
    url('imagenes para franjas/franja de branding.png');
}

/* Animación de entrada alternando lados para franjas Web & Marketing */
.web-service.reveal {
  transform: translateX(-40px);
  transition: opacity .9s ease, transform .9s ease;
}
.web-service.reveal:nth-child(even) {
  transform: translateX(40px);
}
.web-service.reveal.visible {
  transform: translateX(0);
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel-2); border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 22px; }
.feature-kpi { font-size: 18px; color: #fff; }

.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testimonial { background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); border: 1px solid rgba(0,0,0,0.06); padding: 20px; border-radius: 14px; font-style: italic; color: #1f2937; }

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.16);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-style: normal;
}

.testimonial-name {
  margin: 0;
  font-weight: 600;
}

.testimonial-service {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.testimonial-stars {
  font-size: 0.9rem;
  color: #f59e0b; /* dorado */
}

.testimonial-text {
  margin-top: 4px;
}

.cta-stripe { background: linear-gradient(90deg, rgba(229,9,20,0.12), rgba(0,0,0,0.0)); border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #1f2937; }
.contact-form { background: #ffffff; border: 1px solid rgba(0,0,0,0.06); padding: 18px; border-radius: 16px; display: grid; gap: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.05); }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: #c9c9cf; }
input, select, textarea { width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(0,0,0,0.12); background: #ffffff; color: var(--txt); outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, select:focus, textarea:focus { border-color: rgba(229,9,20,0.6); box-shadow: 0 0 0 3px rgba(229,9,20,0.18); }
.form-hint { color: var(--muted); font-size: 12px; margin: 0; text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 16px; border-radius: 12px; text-decoration: none; color: var(--txt); border: 1px solid rgba(0,0,0,0.10); background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.00)); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); border-color: rgba(229,9,20,0.45); box-shadow: 0 10px 24px rgba(229,9,20,0.12); }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-700)); border-color: rgba(0,0,0,0.1); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.btn-whatsapp { background: linear-gradient(180deg, #25D366, #1ebe5a); border-color: rgba(0,0,0,0.1); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,0.1); }
.btn-whatsapp:hover { box-shadow: 0 14px 30px rgba(37,211,102,0.25); transform: translateY(-2px); }
.btn-outline { border-color: rgba(0,0,0,0.18); }
.btn-ghost { background: transparent; border-color: rgba(0,0,0,0.12); }
.btn-full { width: 100%; padding: 12px 18px; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid rgba(0,0,0,0.06); padding: 26px 0; background: var(--panel); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #6b7280; }
.footer-nav { display: flex; gap: 14px; }
.footer-nav a { color: #374151; text-decoration: none; }
.footer-nav a:hover { color: #111827; }

/* Floating WhatsApp */
.wa-fab { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(37,211,102,0.35); z-index: 60; border: 1px solid rgba(0,0,0,0.06); }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(37,211,102,0.45); }
.wa-fab svg { width: 26px; height: 26px; fill: #fff; display: block; }

.cart-fab {
  position: fixed;
  right: 88px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  display: none;
  place-items: center;
  box-shadow: 0 14px 30px rgba(0,0,0,0.20);
  cursor: pointer;
  z-index: 60;
  position: fixed;
}
.cart-fab svg {
  width: 26px;
  height: 26px;
  fill: #e50914;
}
.cart-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 40px rgba(229,9,20,0.35);
}

/* Animación de "latido" cuando el carrito tiene productos (el botón está visible) */
.cart-fab {
  animation: cartFabPulse 1.5s ease-in-out infinite;
}

.cart-fab__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e50914;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #ffffff;
}

@keyframes cartFabPulse {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 30px rgba(0,0,0,0.20);
  }
  40% {
    transform: translateY(-1px) scale(1.08);
    box-shadow: 0 18px 40px rgba(229,9,20,0.45);
  }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Utilities */
.grid { display: grid; gap: 18px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animations */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { 0% { transform: translate(0,0) rotate(0); } 50% { transform: translate(12px, -8px) rotate(8deg); } 100% { transform: translate(0,0) rotate(0); } }
@keyframes kenburns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1.5%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .services-grid, .features, .testimonials { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Evitar desbordes en pantallas pequeñas */
  .brand { transform: none; }
  .brand-logo { transform: scale(1.1); }
  .hero-contact { padding: 14px; }
}

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: static; left: 0; top: 12px; width: auto; height: auto; padding: 8px 12px; background: #111827; color: #fff; border-radius: 6px; z-index: 10000; }

/* Show brand name on wider screens */
@media (min-width: 980px) {
  .brand-name { display: inline-block; }
}

/* Accessible focus outlines */
.nav-toggle:focus, .menu a:focus, .btn:focus, .modal-close:focus { outline: 3px solid rgba(229,9,20,0.18); outline-offset: 2px; }
@media (max-width: 680px) {
  .menu { position: absolute; right: 4%; top: 76px; background: var(--panel); border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; padding: 10px; display: none; flex-direction: column; align-items: flex-end; width: 240px; box-shadow: 0 12px 28px rgba(0,0,0,0.08); }
  .menu.open { display: flex; }
  .nav-toggle { display: inline-flex; }
  .menu a { width: 100%; height: var(--nav-pill-h); justify-content: flex-end; text-align: right; padding-right: 16px; }
  .services-grid, .features, .testimonials { grid-template-columns: 1fr; }
}

/* Modal promocional */
.modal-backdrop { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.55); backdrop-filter: blur(4px); z-index: 9999; padding: 18px; }
.modal-backdrop.open { display: flex; }
.modal { position: relative; width: auto; max-width: 96vw; max-height: 92vh; background: #ffffff; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,0.35); overflow: hidden; border: 0; box-sizing: border-box; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.modal img { display: block; margin: 0; width: auto; max-width: 100%; max-height: 84vh; height: auto; object-fit: contain; background: #fff; border-radius: 6px; }
.modal--promo {
  background-image: url("assets/paginas-nexus.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0; /* remove extra whitespace so modal fits image exactly */
  border-radius: 12px;
}

@media (max-width: 680px) {
  .modal { padding: 12px; }
  .modal img { max-width: 96%; max-height: 72vh; }
  .modal--promo { background-size: contain; padding: 10px; }
}
.modal-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: none; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,0.2); }
.modal-close:hover { background: rgba(0,0,0,0.75); }

/* Fallback message when modal image cannot load */
.modal-fallback { padding: 24px; color: #1f2937; font-size: 16px; text-align: center; max-width: 88%; }
