/* V25 · Franjas alternadas con la paleta azul de NSI */
:root {
  --nsi-blue-950: #031a2a;
  --nsi-blue-900: #062b46;
  --nsi-blue-800: #07547e;
  --nsi-blue-700: #087fc6;
  --nsi-blue-100: #eaf6fd;
  --nsi-white: #ffffff;
}

/* Inicio: azul / blanco / azul / blanco */
.home-page .services {
  background: var(--nsi-white);
}

.home-page .clients {
  color: #fff;
  border-block-color: #168bc4;
  background:
    radial-gradient(circle at 82% 15%, rgba(55, 190, 246, .24), transparent 28%),
    linear-gradient(112deg, var(--nsi-blue-900), var(--nsi-blue-800));
}

.home-page .clients h2 {
  color: #fff;
}

.home-page .clients .eyebrow {
  color: #78d9ff;
}

.home-page .clients-carousel .client-logos img {
  background: #fff;
  border-color: rgba(118, 205, 243, .72) !important;
  box-shadow: 0 12px 28px rgba(0, 16, 31, .3);
}

.home-page .contact {
  background: linear-gradient(135deg, #fff 0%, #f4faff 100%);
  border-top-color: #b9dced;
}

/* Nosotros: azul / blanco / azul / blanco / azul / blanco / azul */
.about-site .content-split,
.about-site .sector-detail,
.about-site .page-video {
  background: var(--nsi-white);
  color: #082844;
}

.about-site .principles {
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(77, 199, 250, .23), transparent 28%),
    linear-gradient(118deg, #06426a, #0876ad);
}

.about-site .principles h2 {
  color: #fff;
}

.about-site .principles .eyebrow {
  color: #82ddff;
}

.about-site .principle-card {
  color: #082844;
  background: #fff;
  border-color: #b9dff1;
  box-shadow: 0 14px 32px rgba(0, 24, 45, .22);
}

.about-site .principle-card p {
  color: #36566e;
}

.about-site .sector-detail {
  border-bottom: 1px solid #d6e9f3;
}

.about-site .about-standards {
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(43, 169, 226, .2), transparent 27%),
    linear-gradient(110deg, var(--nsi-blue-950), var(--nsi-blue-900));
}

.about-site .page-video-copy h2 {
  color: #082844;
}

.about-site .page-video-copy p {
  color: #3b5c73;
}

.about-site .page-video .eyebrow {
  color: #087fc6;
}

.about-site .page-video video {
  border: 1px solid #afd7eb;
  box-shadow: 0 18px 42px rgba(4, 45, 72, .16);
}

.about-site .page-cta {
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(52, 187, 244, .22), transparent 28%),
    linear-gradient(105deg, #06314f, #0871a8);
}

/* Servicios: azul / blanco / azul / blanco */
.services-site .service-directory {
  background: var(--nsi-white);
}

.services-site .service-process {
  color: #fff;
  background:
    radial-gradient(circle at 85% 15%, rgba(52, 190, 248, .24), transparent 30%),
    linear-gradient(118deg, var(--nsi-blue-950), #075680);
}

.services-site .service-process h2 {
  color: #fff;
}

.services-site .service-process .eyebrow {
  color: #78d9ff;
}

.services-site .service-process .section-heading p:last-child {
  color: #d8ebf5;
}

.services-site .page-cta {
  color: #082844;
  background: linear-gradient(135deg, #fff, #edf8fe);
  border-top: 1px solid #bedfed;
}

.services-site .page-cta h2 {
  color: #082844;
}

.services-site .page-cta p {
  color: #3d5d73;
}

/* Uniones nítidas entre franjas y lectura cómoda */
.home-page .services,
.home-page .clients,
.home-page .contact,
.about-site main > .section,
.services-site main > .section {
  position: relative;
}

.home-page .clients::before,
.about-site .principles::before,
.about-site .about-standards::before,
.about-site .page-cta::before,
.services-site .service-process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(118, 211, 251, .34);
  border-bottom: 1px solid rgba(1, 28, 48, .34);
}

@media (max-width: 720px) {
  .home-page .clients {
    background: linear-gradient(145deg, #06314f, #086b9d);
  }
}

/* V27 · Fotografías reales y galería de trabajos */
.home-page .service-card .card-image {
  background: #082a43;
}

.home-page .service-card .card-image img {
  object-position: center;
}

.home-page #electrica .card-image img {
  image-rendering: auto;
}

.real-work-showcase {
  margin-top: 46px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid #b9dceb;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(19, 154, 219, .13), transparent 28%),
    linear-gradient(135deg, #f5fbff, #e5f4fc);
}

.real-work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 25px;
}

.real-work-heading h2 {
  color: #082844;
  font-size: 34px;
  scroll-margin-top: 112px;
}

.real-work-heading .eyebrow {
  color: #087fc6;
}

.real-work-heading > p {
  max-width: 500px;
  margin: 0;
  color: #3d5d73;
  font-size: 16px;
}

.real-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.real-work-card {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(125, 192, 223, .72);
  border-radius: 13px;
  background: #082a43;
  box-shadow: 0 12px 26px rgba(5, 46, 73, .14);
}

.real-work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform .35s ease;
}

.real-work-card.climate img {
  object-position: center 28%;
}

.real-work-card.detail img {
  object-position: center;
}

.real-work-card:hover img {
  transform: scale(1.035);
}

.real-work-card::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(2, 22, 36, .94));
  pointer-events: none;
}

.real-work-card figcaption {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: #fff;
}

.real-work-card strong,
.real-work-card span {
  display: block;
}

.real-work-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.real-work-card span {
  margin-top: 4px;
  color: #cce8f6;
  font-size: 13px;
}

@media (max-width: 900px) {
  .real-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .real-work-showcase {
    margin-top: 32px;
    padding: 22px;
  }

  .real-work-heading {
    display: block;
  }

  .real-work-heading > p {
    margin-top: 10px;
  }

  .real-work-grid {
    grid-template-columns: 1fr;
  }

  .real-work-card {
    aspect-ratio: 4 / 3;
  }
}

/* V26 · El proceso informa; la llamada a la acción queda solo en el cierre. */
.services-site .process-contact{justify-content:flex-start}
.services-site .process-contact>div{max-width:780px}

/* V28 · Mayor presencia y lectura uniforme para las empresas atendidas. */
.home-page .clients {
  padding-top: 48px;
  padding-bottom: 48px;
}

.home-page .clients-carousel .client-logos {
  gap: 20px;
}

.home-page .clients-carousel .client-logos img {
  width: 280px;
  flex: 0 0 280px;
  height: 120px;
  padding: 9px 12px;
  border-radius: 14px;
}

.home-page .clients-carousel .client-logos img[src*="andalucita-wide"] {
  padding: 4px 10px;
}

@media (max-width: 900px) {
  .home-page .clients-carousel .client-logos img {
    width: 245px;
    flex-basis: 245px;
    height: 108px;
  }
}

@media (max-width: 560px) {
  .home-page .clients-carousel .client-logos img {
    width: 220px;
    flex-basis: 220px;
    height: 96px;
  }
}

/* V29 · Nico de cuerpo entero responde visualmente al tema consultado. */
.chat-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100svh - 108px);
  display: flex;
  flex-direction: column;
}

.chat-panel[hidden] {
  display: none;
}

.chat-header,
.chat-options,
.chat-form,
.chat-disclaimer,
.nico-stage {
  flex: 0 0 auto;
}

.nico-stage {
  --nico-accent: #1ac7f2;
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  min-height: 146px;
  overflow: hidden;
  padding: 8px 20px 8px 10px;
  border-bottom: 1px solid rgba(61, 176, 229, .3);
  background:
    radial-gradient(circle at 21% 78%, color-mix(in srgb, var(--nico-accent) 34%, transparent), transparent 35%),
    linear-gradient(125deg, #e9f8ff, #f8fcff 62%, #e6f5fc);
}

.nico-stage::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -44px;
  width: 132px;
  height: 132px;
  border: 1px solid color-mix(in srgb, var(--nico-accent) 34%, transparent);
  border-radius: 50%;
}

.nico-stage img {
  position: relative;
  z-index: 1;
  width: 126px;
  height: 132px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 11px 12px rgba(0, 66, 112, .22));
  transform-origin: 52% 88%;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s ease;
}

.nico-stage-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #082d4b;
}

.nico-stage-copy strong {
  font-size: 17px;
  line-height: 1.2;
}

.nico-stage-copy small {
  color: #42667d;
  font-size: 12px;
  line-height: 1.4;
}

.nico-stage[data-topic="electrica"] { --nico-accent: #6e82eb; }
.nico-stage[data-topic="limpieza"] { --nico-accent: #10b9b2; }
.nico-stage[data-topic="clientes"] { --nico-accent: #795ee1; }
.nico-stage[data-topic="cotizacion"],
.nico-stage[data-topic="contacto"] { --nico-accent: #008ee8; }

.nico-stage[data-topic="datos"] img,
.nico-stage[data-topic="electrica"] img { transform: translateX(3px) rotate(1.5deg); }
.nico-stage[data-topic="limpieza"] img { transform: translateY(-2px) rotate(-1.5deg); }
.nico-stage[data-topic="clientes"] img { transform: translateY(-2px) scale(1.025); }
.nico-stage.is-reacting img {
  transform: translateY(-8px) rotate(-2deg) scale(1.035);
  filter: drop-shadow(0 16px 16px color-mix(in srgb, var(--nico-accent) 32%, transparent));
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 102px;
  max-height: 190px;
}

@media (max-width: 560px) {
  .chat-panel {
    bottom: 78px;
    max-height: calc(100svh - 94px);
  }

  .nico-stage {
    grid-template-columns: 102px minmax(0, 1fr);
    min-height: 112px;
    padding: 5px 14px 5px 5px;
  }

  .nico-stage img {
    width: 100px;
    height: 104px;
  }

  .nico-stage-copy strong { font-size: 15px; }
  .nico-stage-copy small { font-size: 11px; }
  .chat-messages { max-height: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .nico-stage img { transition: none; }
  .nico-stage.is-reacting img { transform: none; }
}

/* V30 · La marca conserva su composición y gana presencia con luz institucional. */
body > header {
  background:
    radial-gradient(circle at 8% 48%, rgba(24, 139, 205, .2), transparent 18%),
    linear-gradient(105deg, #021621 0%, #032538 56%, #052f49 100%);
  border-bottom-color: rgba(79, 193, 241, .3);
  box-shadow: 0 10px 30px rgba(0, 20, 34, .16);
}

body > header::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #2fc2f2 12%, #087fc6 36%, rgba(8, 127, 198, .08) 74%, transparent 100%);
}

body > header > .brand {
  position: relative;
  isolation: isolate;
}

body > header > .brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -10px -20px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(ellipse at 24% 50%, rgba(66, 201, 255, .2), rgba(11, 104, 164, .08) 46%, transparent 72%);
  filter: blur(3px);
}

body > header > .brand > img {
  filter: saturate(1.16) brightness(1.08) drop-shadow(0 0 8px rgba(69, 200, 255, .24));
}

body > header .brand-type strong {
  color: #fff;
  text-shadow: 0 0 18px rgba(79, 195, 239, .12);
}

body > header .brand-type > span {
  color: #e9f8ff;
  border-left-color: rgba(96, 201, 242, .72);
}

@media (max-width: 560px) {
  body > header {
    background:
      radial-gradient(circle at 14% 50%, rgba(38, 156, 216, .21), transparent 31%),
      linear-gradient(110deg, #021621, #04304a);
  }

  body > header > .brand::before {
    inset: -8px -13px;
  }
}

/* V31 · Encabezado sobrio: degradado sutil y logotipo sin efectos. */
body > header {
  background: linear-gradient(105deg, #031722 0%, #052230 52%, #082d3d 100%);
  border-bottom: 1px solid rgba(130, 169, 190, .18);
  box-shadow: 0 8px 24px rgba(0, 18, 29, .12);
}

body > header::after,
body > header > .brand::before {
  content: none;
}

body > header > .brand > img {
  filter: none;
}

body > header .brand-type strong {
  color: #fff;
  text-shadow: none;
}

body > header .brand-type > span {
  color: #f2f7fa;
  border-left-color: rgba(208, 225, 234, .48);
}

@media (max-width: 560px) {
  body > header {
    background: linear-gradient(110deg, #031722 0%, #062938 100%);
  }
}

/* V32 · Isotipo original sin contenedor circular añadido por estilos anteriores. */
.brand > img {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}


/* V33 · Nico adopta una especialidad visual según la consulta. */
.nico-stage img {
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), filter .4s ease, opacity .18s ease;
}
.nico-stage.is-switching img {
  opacity: .18;
  transform: translateY(5px) scale(.95);
}
.nico-stage[data-topic="direccion"] { --nico-accent: #27a8ef; }
.nico-stage[data-topic="cobertura"] { --nico-accent: #167bdc; }
.nico-stage[data-topic="datos"] { --nico-accent: #2a89e7; }
.nico-stage[data-topic="soporte"] { --nico-accent: #247ecb; }
@media (prefers-reduced-motion: reduce) {
  .nico-stage.is-switching img { opacity: 1; transform: none; }
}

/* V34 · Sustitución de la escena de soporte por atención telefónica real. */


/* V35 · Cinco servicios y controles de acción tipográficos */
.hero-benefits > div:nth-child(2) {
  color: #ecf3f6;
  border-color: rgba(116, 205, 255, .22);
  background: rgba(1, 25, 42, .55);
  box-shadow: none;
}
.hero-benefits > div:nth-child(2) svg { color: #bce5ff; }

.button,
.nav-contact,
.text-link,
.card-link {
  justify-content: center;
  text-align: center;
  font-family: "Segoe UI Variable Display", "Segoe UI", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
}
.hero-actions .button,
.nav-contact { font-size: 15px; }
.card-link,
.text-link { font-size: 16px; }
.service-card .card-link {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #eaf7ff;
}
.service-card .card-link:hover { background: #d8f0ff; }
.service-feature .text-link {
  align-self: flex-start;
  min-width: 228px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #8ecdea;
  border-radius: 7px;
  background: #eff9ff;
}
.service-feature .text-link:hover { background: #dff3fe; }
.contact-details a { justify-content: flex-start; }
.contact-channel { grid-template-columns: auto 1fr; }
.chat-form button { width: auto; min-width: 76px; padding-inline: 12px; font-size: 13px; font-weight: 800; }

@media (min-width: 1101px) {
  .home-page .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .home-page .service-card { grid-column: span 2; }
  .home-page .service-card:nth-child(4) { grid-column: 2 / span 2; }
  .home-page .service-card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (max-width: 1100px) and (min-width: 681px) {
  .home-page .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .service-card:last-child { grid-column: 1 / -1; width: min(100%, 520px); justify-self: center; }
}
@media (max-width: 680px) {
  .home-page .service-grid { grid-template-columns: 1fr; }
  .service-feature .text-link { width: 100%; }
}


/* V38 · Accesos flotantes más compactos */
.contact-dock {
  right: 20px;
  bottom: 18px;
  gap: 7px;
}
.whatsapp-float,
.chat-launcher {
  min-height: 44px;
  gap: 7px;
  padding: 7px 13px;
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(0, 31, 55, .25);
}
.whatsapp-float svg {
  width: 20px;
  height: 20px;
}
.chat-launcher {
  padding: 5px 13px 5px 6px;
  border-width: 1px;
}
.chat-launcher img,
.chat-launcher .chat-launcher-avatar {
  width: 31px;
  height: 31px;
  border-width: 1px;
}
.chat-launcher span {
  font-size: 13px;
}
.chat-panel { bottom: 124px; }

@media (max-width: 560px) {
  .contact-dock {
    right: 12px;
    bottom: 12px;
    gap: 7px;
  }
  .whatsapp-float,
  .chat-launcher {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 4px;
  }
  .whatsapp-float svg {
    width: 21px;
    height: 21px;
  }
  .chat-launcher img,
  .chat-launcher .chat-launcher-avatar {
    width: 34px;
    height: 34px;
  }
  .chat-panel { bottom: 112px; }
}


/* V39 · WhatsApp y Nico circulares */
.whatsapp-float,
.chat-launcher {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 4px;
  gap: 0;
  border-radius: 50%;
}
.whatsapp-float > span,
.chat-launcher > span:last-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.whatsapp-float svg {
  width: 23px;
  height: 23px;
}
.chat-launcher img,
.chat-launcher .chat-launcher-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
@media (max-width: 560px) {
  .whatsapp-float,
  .chat-launcher {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .chat-launcher img,
  .chat-launcher .chat-launcher-avatar {
    width: 34px;
    height: 34px;
  }
}


/* V41 · Identidad WLS en el crédito */
.site-credit { display:flex; align-items:center; justify-content:flex-end; gap:11px; line-height:1.4; }
.site-credit img { width:48px; height:48px; flex:none; object-fit:contain; border-radius:50%; }
.site-credit span { display:block; }
.site-credit strong { display:block; color:#e6f3fb; font-size:12px; letter-spacing:.08em; }
@media(max-width:560px) { .site-credit { justify-content:flex-start; } .site-credit img { width:44px; height:44px; } }

.site-credit { width:fit-content; margin-left:auto; border-radius:8px; padding:5px 6px; transition:background .18s ease; }
.site-credit:hover { background:rgba(89,191,245,.12); }
.site-credit:focus-visible { outline:3px solid #67caff; outline-offset:2px; }
@media(max-width:560px) { .site-credit { margin-left:0; } }

/* V43 · contacto distinguible y crédito al pie izquierdo */
.whatsapp-float { background:#20bd60; color:#fff; border:2px solid #e7fff0; box-shadow:0 6px 20px rgba(0,70,38,.33); }
.whatsapp-float:hover { background:#159d4e; color:#fff; transform:translateY(-2px); }
.whatsapp-float:focus-visible { outline:3px solid #fff; outline-offset:3px; }
.whatsapp-float svg { width:28px; height:28px; fill:currentColor; stroke:none; }
.site-credit { margin-left:0; margin-right:auto; justify-content:flex-start; text-align:left; margin-top:12px; }
@media(max-width:560px) { .whatsapp-float svg { width:27px; height:27px; } }

/* V44 · crédito WLS solo tipográfico y libre de botones flotantes en móvil */
.site-credit { max-width:100%; padding:6px 0; }
@media(max-width:560px) { footer { padding-bottom:104px; } .site-credit { max-width:calc(100% - 76px); } }
.chat-form > div { grid-template-columns:minmax(0,1fr) 76px; }
.chat-form input { min-width:0; width:100%; box-sizing:border-box; }
