/* Ajustes propios de ITULUM. Se carga después de style.css. */

/* ---- Computadora (menú horizontal, desde 992px) ---- */
@media (min-width: 992px) {
  /* Logo blanco */
  .rd-navbar-static .rd-navbar-brand img {
    filter: none;
  }
  /* Letras del menú en blanco */
  .rd-navbar-static .rd-navbar-nav > li > a,
  .rd-navbar-static .rd-navbar-nav > li > .rd-navbar-submenu-toggle::after {
    color: #fff;
  }
  /* Al pasar el mouse o en la página actual: azul claro para que se note */
  .rd-navbar-static .rd-navbar-nav > li.active > a,
  .rd-navbar-static .rd-navbar-nav > li.focus > a,
  .rd-navbar-static .rd-navbar-nav > li.opened > a,
  .rd-navbar-static .rd-navbar-nav > li > a:hover {
    color: #44bef1;
  }
  /* Menú en una sola fila: menos espacio entre opciones */
  .rd-navbar-static.rd-navbar-light .rd-navbar-nav-wrap .rd-navbar-nav > li + li { margin-left: 22px; }
  .rd-navbar-static.rd-navbar-light .rd-navbar-nav-wrap .rd-navbar-nav { padding-left: 10px; padding-right: 10px; }
  .rd-navbar-static .rd-navbar-nav > li > a { white-space: nowrap; }
  /* Barra fija al hacer scroll: mismo fondo oscuro para que se vea lo blanco */
  .rd-navbar-static.rd-navbar--is-stuck,
  .rd-navbar-static.rd-navbar--is-clone {
    background: #323946;
  }
}

/* ---- Celular y tablet (menú desplegable, menos de 992px) ---- */
@media (max-width: 991px) {
  /* Logo negro */
  .rd-navbar-fixed .rd-navbar-brand img {
    filter: none;
  }
}

/* ---- Selector de idioma 🌐 ES | EN ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .05em;
  white-space: nowrap;
}
.lang-switch .fa-globe { font-size: 15px; color: #229dd1; }
.lang-switch a { color: #9aa0a6; text-decoration: none; transition: color .2s; }
.lang-switch a:hover, .lang-switch a:focus { color: #229dd1; }
.lang-switch .lang-current { color: #333; }
.lang-switch .lang-sep { color: #ccc; font-weight: 400; }

/* Computadora: en la barra gris superior, a la izquierda de las redes sociales */
.rd-navbar-aside .block-right { display: flex; align-items: center; gap: 22px; }
.rd-navbar-aside .block-right .list-inline { margin-top: 0; margin-bottom: 0; }
.lang-switch-mobile { display: none; }

/* Celular y tablet: en la barra blanca del logo, junto al botón de tres puntos */
@media (max-width: 991px) {
  .rd-navbar-aside .block-right .lang-switch { display: none; }
  .rd-navbar-fixed .lang-switch-mobile {
    display: inline-flex;
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    font-size: 14px;
  }
}

/* ---- Botón flotante de WhatsApp (reemplaza el chat de Zendesk) ---- */
.whatsapp-flotante {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-flotante:hover,
.whatsapp-flotante:focus {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
@media (max-width: 767px) {
  .whatsapp-flotante { right: 14px; bottom: 14px; width: 52px; height: 52px; font-size: 28px; }
}

/* ---- Imagen principal de las páginas internas: más pequeña, sin recortar ---- */
.post-info > figure img {
  width: auto;
  max-width: 100%;
  max-height: 280px;
  height: auto;
}
@media (max-width: 767px) {
  .post-info > figure img { max-height: 200px; }
}


/* ---- Botón azul "ir arriba": encima del botón de WhatsApp, no detrás ---- */
.ui-to-top { bottom: 92px; right: 24px; -webkit-transform: translateY(200px); transform: translateY(200px); }
.ui-to-top.active { -webkit-transform: translateY(0); transform: translateY(0); }
@media (max-width: 767px) {
  .ui-to-top { bottom: 80px; right: 15px; }
}

/* ---- Logos de marcas en carruseles: mismo tamaño, sin deformarse ---- */
.owl-carousel img.logo-marca {
  width: 170px;
  height: 75px;
  object-fit: contain;
  margin: 0 auto;
  mix-blend-mode: multiply; /* el fondo blanco de algunos logos se funde con el gris */
}

/* ---- Galería de fotos dentro de las páginas de servicio ---- */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.galeria-fotos figure { margin: 0; }
.galeria-fotos img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f4f6f8;
  border-radius: 6px;
}
.galeria-fotos figcaption { margin-top: 8px; font-size: 14px; color: #777; }
@media (max-width: 575px) {
  .galeria-fotos { grid-template-columns: 1fr; }
}

/* ---- Fotos integradas al texto: bloques intercalados izquierda / derecha ---- */
.bloque-foto { display: flow-root; margin-bottom: 26px; }        /* cada bloque contiene su foto */
.bloque-foto > ul, .bloque-foto > p { display: flow-root; }       /* listas y párrafos se acomodan junto a la foto */
.foto-texto { width: 200px; margin: 4px 0 12px; }
.foto-texto.foto-izq { float: left;  margin-right: 28px; }
.foto-texto.foto-der { float: right; margin-left: 28px; }
.foto-texto img {
  display: block;
  width: 200px;
  height: 200px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8ebef;
  border-radius: 6px;
}
.foto-texto figcaption { margin-top: 6px; font-size: 13px; line-height: 1.4; color: #777; }
@media (max-width: 575px) {
  .foto-texto.foto-izq, .foto-texto.foto-der { float: none; margin: 0 auto 16px; }
}
.foto-texto.foto-cubrir img { object-fit: cover; }   /* fotos horizontales: recorte al centro para igualar el tamaño */
.foto-texto video { display: block; width: 200px; height: 200px; object-fit: cover; border: 1px solid #e8ebef; border-radius: 6px; background: #eef2f4; }
@media (max-width: 575px) { .foto-texto video { width: 100%; height: auto; aspect-ratio: 1 / 1; } }

/* ---- Logo de la marca dentro de una página de servicio (p. ej. AUFIT en aire acondicionado) ---- */
.logo-marca-pagina { float: right; width: 220px; margin: 6px 0 18px 28px; text-align: center; }
.logo-marca-pagina img { display: block; width: 100%; height: auto; }
.logo-marca-pagina figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: #777; }
@media (max-width: 575px) {
  .logo-marca-pagina { float: none; width: 180px; margin: 0 0 22px; text-align: left; }
}
/* Logo de marca usado como imagen de una tarjeta de servicio */
.service-image img.logo-tarjeta { width: 170px; height: 110px; object-fit: contain; }
/* En la página de Servicios ocupa el mismo espacio que las fotos de las otras tarjetas */
.service-image img.logo-tarjeta-grande { width: 100%; max-width: 270px; height: 180px; padding: 0 45px; box-sizing: border-box; background: #f7f8fa; border-radius: 4px; }

/* ================= Itulum Energía ================= */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }


/* Tarjetas de servicio con foto: mismo tamaño */
.service-image img { width: 100%; height: 180px; object-fit: cover; }

/* Galería de proyectos */
.proj-note { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 30px; background: #fff3cf; color: #323946; font-size: 13px; }
.proj-filters { display: flex; flex-wrap: wrap; }
.proj-filter { border: 1px solid #323946; background: transparent; color: #323946; border-radius: 30px; padding: 8px 18px; margin: 0 8px 8px 0; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.proj-filter:hover, .proj-filter.active { background: #229dd1; border-color: #229dd1; color: #fff; }
.proj-grid { display: flex; flex-wrap: wrap; margin: 20px -12px 0; }
.proj-wrap { width: 33.333%; padding: 12px; display: flex; }
@media (max-width: 991px) { .proj-wrap { width: 50%; } }
@media (max-width: 575px) { .proj-wrap { width: 100%; } }
.proj-card { border: 1px solid #e5e5e5; background: #fff; display: flex; flex-direction: column; width: 100%; }
.proj-visual { background: #323946; height: 170px; display: flex; align-items: center; justify-content: center; }
.proj-visual svg { width: 110px; height: 82px; }
.proj-body { padding: 20px 22px 24px; }
.proj-tag { display: block; margin-bottom: 8px; color: #229dd1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.proj-body h4 { margin-bottom: 8px; }
.proj-body p { font-size: 14px; margin: 0; }

/* Paquetes de precios */
.pack-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.pack-cell { width: 33.333%; padding: 0 12px 24px; display: flex; }
.pack-grid-2 > .pack-cell { width: 50%; }
@media (max-width: 991px) { .pack-cell, .pack-grid-2 > .pack-cell { width: 50%; } }
@media (max-width: 575px) { .pack-cell, .pack-grid-2 > .pack-cell { width: 100%; } }
.pack { border: 1px solid #e5e5e5; border-top: 4px solid #229dd1; background: #fff; width: 100%; display: flex; flex-direction: column; text-align: left; }
.pack-head { padding: 20px 22px 12px; background: #f6f9fb; }
.pack-tag { display: block; color: #229dd1; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.pack-head h4 { margin: 0 0 4px; font-weight: 900; }
.pack-sub { margin: 0; font-size: 14px; color: #6b7280; }
.pack-body { padding: 14px 22px 4px; flex: 1; }
.pack-body ul { margin: 0 0 12px; padding: 0; }
.pack-body li { font-size: 14px; }
.pack-eq { font-size: 13px; color: #323946; background: #eaf5fb; padding: 7px 10px; margin: 0 0 14px; }
.pack-foot { padding: 14px 22px 22px; border-top: 1px solid #eee; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.pack-price { font-size: 26px; font-weight: 900; color: #323946; line-height: 1; }
.pack-cur { font-size: 12px; color: #6b7280; margin-left: 4px; }
.how { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 8px; }
.how li { counter-increment: s; position: relative; padding: 4px 0 14px 48px; }
.how li:before { content: counter(s); position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%; background: #229dd1; color: #fff; text-align: center; line-height: 32px; font-weight: 700; }
.how b { display: block; color: #323946; }
.callout { border-left: 4px solid #229dd1; background: #f4f8fb; padding: 14px 18px; margin: 22px 0; }
.callout p { margin: 0; }
.sys-photo { margin: 24px 0; }
.sys-photo img { width: 100%; height: auto; max-height: 440px; object-fit: cover; }
.sys-cap { font-size: 13px; color: #6b7280; margin-top: 6px; }
.sys-gallery { display: flex; flex-wrap: wrap; margin: 6px -8px 0; }
.sys-gallery figure { width: 33.333%; padding: 8px; margin: 0; }
.sys-gallery img { width: 100%; height: 200px; object-fit: cover; }
@media (max-width: 575px) { .sys-gallery figure { width: 100%; } }
.side-links { list-style: none; margin: 14px 0 0; padding: 0; }
.side-links li { padding: 9px 0; border-bottom: 1px solid #e5e5e5; }
.table-wrap { overflow-x: auto; margin: 10px 0 28px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.price-table th { background: #323946; color: #fff; font-weight: 700; font-size: 13px; }
.price-table td.pr { font-weight: 900; color: #323946; white-space: nowrap; }
.faq-item { border-bottom: 1px solid #e5e5e5; padding: 18px 0; }
.faq-item h4 { margin: 0 0 8px; }
.faq-item p { margin: 0; }


@media (max-width: 575px) {
  .rd-navbar-brand img { height: 30px; width: auto; }
}

/* Proyectos con fotos reales (panel de control) */
.proj-photo { display: block; position: relative; background: #323946; }
.proj-photo img { display: block; width: 100%; height: 190px; object-fit: cover; }
.proj-count { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.proj-loc { font-size: 13px; color: #6b7280; margin: 0 0 6px; }
.pr-sub { font-size: 12px; color: #6b7280; font-weight: 400; }
.lb { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.9); align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 10px 16px; }
.lb-x { top: 6px; right: 10px; } .lb-prev { left: 4px; top: 50%; } .lb-next { right: 4px; top: 50%; }
