/* ==============================================
   KENALIA COLOR THEME – Dark Blue
   Azul 1 (cuerpo/fondo): #0f1829  ← oscuro
   Azul 2 (navbar/footer): #1a2744 ← claro
   ============================================== */

/* ── Fondo general ── */
body {
  background: #0f1829 !important;
}

::-moz-selection { background: #1a2744; color: #fff; }
::selection      { background: #1a2744; color: #fff; }

/* ── Navbar ── */
.site-navbar {
  background: #1a2744 !important;
}

/* ── Footer ── */
.footer {
  background: #1a2744 !important;
}

/* ── Utilidades black → azul ── */
.bg-black,
.bg-text-line {
  background: #1a2744 !important;
  -webkit-box-shadow: 20px 0 0 #1a2744, -20px 0 0 #1a2744 !important;
  box-shadow: 20px 0 0 #1a2744, -20px 0 0 #1a2744 !important;
}

/* ── Botón negro ── */
.btn.btn-black {
  background-color: #1a2744 !important;
  color: #fff !important;
}
.btn.btn-black:hover {
  background-color: #0f1829 !important;
  color: #fff !important;
}

/* ── Línea decorativa de títulos ── */
.site-section-heading:after,
.site-section-heading.text-center:after {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* ── Bloques de historia (nosotros) ── */
.site-block-feature-7 {
  background: #1a2744 !important;
}
.site-block-feature-7 p {
  color: rgba(255, 255, 255, 0.65) !important;
}

/* ── Menú móvil ── */
.site-mobile-menu {
  background: #1a2744 !important;
}
.site-mobile-menu .site-nav-wrap > li > a,
.site-mobile-menu ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* ── Overlay para hover en imágenes ── */
.image-wrap-2:hover:before,
.swiper-container .swiper-slide .image-wrap:hover:before {
  background: rgba(26, 39, 68, 0.55) !important;
}

/* ── Botón "Ver Fotos" ── */
.btn-outline-white:hover {
  background: #fff !important;
  color: #1a2744 !important;
}

/* ── Selección texto ── */
.text-black { color: #fff !important; }

/* ── Swiper prev/next ── */
.swiper-button-prev:before,
.swiper-container-rtl .swiper-button-next:before,
.swiper-button-next:before,
.swiper-container-rtl .swiper-button-prev:before {
  background: rgba(26, 39, 68, 0.7) !important;
}

/* ── Títulos de sección (Ultimos Proyectos, Industrial, etc.) ── */
.site-section-heading {
  font-size: 1.6rem !important;
}
@media (min-width: 768px) {
  .site-section-heading {
    font-size: 2.2rem !important;
  }
}

/* ── Títulos de tarjetas de proyecto ── */
.image-wrap-2 h2,
.image-wrap h2,
h2.mb-3 {
  font-size: 1.35rem !important;
  letter-spacing: 1px;
}

/* ── Logo Proyectos Kenalia más pequeño ── */
.site-navbar a img[src*="Proyectos-Kenalia"],
.site-navbar a img[src*="proyectos-kenalia"] {
  width: 110px !important;
  height: auto !important;
}

/* ── Fuente y color menú principal ── */
.site-navbar .site-navigation .site-menu > li > a {
  font-size: 14px !important;
  letter-spacing: 2.5px !important;
  color: rgba(255, 255, 255, 0.92) !important;
}
.site-navbar .site-navigation .site-menu > li > a:hover,
.site-navbar .site-navigation .site-menu > li.active > a {
  color: #ffffff !important;
}
/* ── Dropdown — fondo y texto ── */
.site-navbar .site-navigation .site-menu .has-children .dropdown,
.site-navbar .site-navigation .site-menu .has-children .dropdown > li.has-children > .dropdown,
.site-navbar .site-navigation .site-menu .has-children .dropdown > li.has-children > ul {
  background: #0f1829 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5) !important;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown a {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.82) !important;
  background: transparent !important;
}
.site-navbar .site-navigation .site-menu .has-children .dropdown a:hover,
.site-navbar .site-navigation .site-menu .has-children .dropdown .active > a {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
}
/* Flecha indicadora del dropdown — hacer invisible para que no se vea blanca */
.site-navbar .site-navigation .site-menu .has-children .dropdown.arrow-top:before,
.site-navbar .site-navigation .site-menu .has-children .dropdown.arrow-top:after {
  border-bottom-color: #0f1829 !important;
}

/* ── Footer — texto más claro ── */
.footer .col-lg-3 p {
  color: rgba(255, 255, 255, 0.78) !important;
}
.footer h6 {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.45) !important;
}
.footer a[href^="https://wa"],
.footer a[href^="mailto"],
.footer a[href^="https://www.kenalia"] {
  font-size: 0.9rem !important;
  color: rgba(255, 255, 255, 0.75) !important;
}

/* ════════════════════════════════════════
   CARDS — Webs del Grupo Kenalia
   ════════════════════════════════════════ */
.kenalia-webs-wrap {
  padding: 22px 20px 14px;
  text-align: center;
}
.kenalia-webs-title {
  color: rgba(255, 255, 255, 0.38) !important;
  font-size: 0.62rem !important;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: 'Josefin Sans', sans-serif;
}
.kenalia-webs-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.kenalia-web-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px 22px;
  text-decoration: none !important;
  color: #fff !important;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  min-width: 290px;
  flex: 1;
  max-width: 340px;
}
.kenalia-web-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  text-decoration: none !important;
  color: #fff !important;
}
.kwc-logo {
  flex-shrink: 0;
  width: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kwc-logo img {
  height: 46px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.kenalia-web-card:hover .kwc-logo img { opacity: 1; }
.kwc-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  text-align: left;
}
.kwc-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Josefin Sans', sans-serif;
  display: block;
}
.kwc-url {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.3px;
  display: block;
}
.kwc-arrow {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.25);
  transition: color 0.2s, transform 0.22s;
  flex-shrink: 0;
}
.kenalia-web-card:hover .kwc-arrow {
  color: rgba(255, 255, 255, 0.75);
  transform: translateX(4px);
}
@media (max-width: 600px) {
  .kenalia-web-card { max-width: 100%; min-width: 100%; }
}

/* ════════════════════════════════════════
   BARRA FLOTANTE REDES SOCIALES — vertical derecha inferior
   ════════════════════════════════════════ */

/* Ocultar iconos del menú superior */
.site-menu[data-class="social"] {
  display: none !important;
}

/* Contenedor horizontal centrado en la parte inferior */
.social-float-bar {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 9990;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  background: rgba(15, 24, 41, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 60px;
  padding: 10px 20px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Separador vertical entre iconos */
.sfb-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
  flex-shrink: 0;
}

/* Cada icono */
.sfb-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.22s, background 0.22s, transform 0.25s;
  flex-shrink: 0;
}

.sfb-item:hover {
  color: #fff !important;
  transform: translateY(-5px) scale(1.12);
  text-decoration: none !important;
}

/* Tooltip aparece ARRIBA del icono */
.sfb-item::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(15, 24, 41, 0.96);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Josefin Sans', sans-serif;
  white-space: nowrap;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.sfb-item:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Colores de marca */
.sfb-instagram:hover { background: linear-gradient(160deg, #833ab4, #fd1d1d, #fcb045); }
.sfb-facebook:hover  { background: #1877F2; }
.sfb-linkedin:hover  { background: #0A66C2; }
.sfb-youtube:hover   { background: #FF0000; }
.sfb-whatsapp:hover  { background: #25D366; }

/* Ocultar en móvil */
@media (max-width: 767px) {
  .social-float-bar { display: none; }
}

/* ════════════════════════════════════════
   FOOTER — ajustes tipografía y logos
   ════════════════════════════════════════ */

/* Texto de columnas (sedes, contacto, tagline) */
.footer .col-lg-3 p,
.footer .col-lg-3 > p {
  font-size: 0.92rem !important;
  line-height: 2.2 !important;
}

/* Títulos de sección */
.footer h6 {
  font-size: 0.72rem !important;
}

/* Links de contacto */
.footer a[href^="https://wa"],
.footer a[href^="mailto"],
.footer a[href^="https://www.kenalia"] {
  font-size: 0.9rem !important;
}

/* Copyright */
.footer [style*="0.62rem"] {
  font-size: 0.72rem !important;
}

/* Logos del grupo en el footer */
.footer img[src*="logo-modular"],
.footer img[src*="logo-renting"],
.footer img[src*="logo-proyectos"],
.footer img[src*="logo-grupo"] {
  height: 38px !important;
}

/* ── LightGallery — fondo azul oscuro en lugar de negro ── */
.lg-backdrop {
  background-color: #0f1829 !important;
}
.lg-outer,
#lg-actual-size,
.lg {
  background-color: #0f1829 !important;
}
.lg-toolbar,
.lg-actions .lg-next,
.lg-actions .lg-prev,
.lg-sub-html {
  background-color: rgba(15, 24, 41, 0.85) !important;
}
.lg-thumb-outer {
  background-color: #0f1829 !important;
}
.lg-thumb-item {
  border-color: rgba(255, 255, 255, 0.15) !important;
}
.lg-thumb-item.active,
.lg-thumb-item:hover {
  border-color: rgba(255, 255, 255, 0.7) !important;
}
