/* =========================================================
   KUATRO - GLOBAL
   /assets/globales/global.css
========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root{
  --font-sans: Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", sans-serif;
  --ui-scale: .86;
  --nav-max: 1100px;

  --text-dark: #0F172A;
  --text-dark-2: #1E293B;
  --text-light: rgba(255,255,255,.92);
  --text-dark-soft: rgba(15,23,42,.92);

  /* Glass / Nav */
  --glass-dark-bg: rgba(8, 12, 20, .10);
  --glass-dark-border: rgba(255,255,255,.85);
  --shadow-nav: 0 15px 70px rgba(0,0,0,.20);

  --glass-light-bg: rgba(255,255,255,.92);
  --glass-light-border: rgba(0,0,0,.08);
  --shadow-nav-white: 0 18px 50px rgba(0,0,0,.18);

  --accent: #F35109;
}

html, body{ height: 100%; }

body{
  overflow-x: hidden;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main{ overflow-x: hidden; }

html, body, button, input, select, textarea{
  font-family: var(--font-sans) !important;
}

/* =========================================================
   THEME (solo colores)
   NOTA: aquí ya NO se hace swap de logos.
   El swap de logos lo controlas con:
   - desk-light / desk-dark
   - mob-light  / mob-dark
   (en tu header.css)
========================================================= */

/* Si ocupas defaults de tema (por si se te olvida ponerlo) */
body{
  --nav-bg: var(--glass-dark-bg);
  --nav-border: var(--glass-dark-border);
  --nav-shadow: var(--shadow-nav);
  --nav-text: rgba(255,255,255,.78);
}

/* Tema claro */
body.theme-light{
  --nav-bg: rgba(245,245,245,.55);
  --nav-border: rgba(0,0,0,.10);
  --nav-shadow: var(--shadow-nav-white);
  --nav-text: rgba(15,23,42,.82);
}

/* Tema oscuro */
body.theme-dark{
  --nav-bg: var(--glass-dark-bg);
  --nav-border: var(--glass-dark-border);
  --nav-shadow: var(--shadow-nav);
  --nav-text: rgba(255,255,255,.88);
}

/* =========================================================
   KUATRO | Social Floating Bar
========================================================= */
.kuatro-social-float{
  position: fixed !important;
  left: 0px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 99999 !important;
  width: 50px;
  padding: 10px 8px;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 0 22px 22px 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
}

.kuatro-social-float a{ text-decoration: none !important; }

.kuatro-social-float .ks-item{
  width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  color: #0F172A !important;
  font-size: 16px;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.kuatro-social-float .ks-item:hover{
  background: var(--accent) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(243,81,9,.25);
}

.kuatro-social-float .ks-divider{
  width: 70%;
  height: 1px;
  background: rgba(15,23,42,.16);
  opacity: .55;
  margin: 2px 0;
}

.kuatro-social-float .ks-join{
  width: 30px;
  height: 104px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.05);
  transition: background .2s ease, transform .2s ease;
}

.kuatro-social-float .ks-join span{
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: .22em;
  font-weight: 700;
  color: #F35109;
}

.kuatro-social-float .ks-join:hover{
  background: rgba(243,81,9,.12);
  transform: translateY(-1px);
}

@media (max-width: 768px){
  .kuatro-social-float{ display: none !important; }
}

/* =========================================================
   BOTONES FLOTANTES: TELÉFONO + WHATSAPP
========================================================= */
.kuatro-float-actions{
  position: fixed;
  right: 22px;
  bottom: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BOTÓN TELÉFONO */
.kuatro-float-phone{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 26px;
  border-radius: 18px;
  background: #ff6a00;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.kuatro-float-phone:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  background: #e85f00;
  color: #fff;
}

/* BOTÓN WHATSAPP */
.kuatro-float-whatsapp{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 30px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.kuatro-float-whatsapp:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  background: #1ebe5d;
  color: #fff;
}

/* MOBILE */
@media (max-width: 768px){
  .kuatro-float-actions{
    right: 14px;
    bottom: 14px;
    gap: 10px;
  }

  .kuatro-float-phone{
    min-height: 50px;
    padding: 0 18px;
    font-size: 16px;
    border-radius: 14px;
  }

  .kuatro-float-whatsapp{
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
}


/* =========================================================
   FIX FINAL: links siempre oscuros + hover naranja/blanco
   CTA siempre naranja/blanco + hover blanco/naranja
   (Pegar al FINAL de header.css)
========================================================= */

/* 1) Links del nav SIEMPRE en gris oscuro (no blancos) */
.pill-nav .pill-link{
  color: rgba(15,23,42,.86) !important;  /* gris/negro */
}

/* Si hay íconos/flechita del dropdown, que también sea oscuro */
.pill-nav .pill-link,
.pill-nav .pill-link *{
  color: inherit !important;
}

/* 2) Hover / abierto: fondo naranja + letras blancas (SIEMPRE) */
.pill-nav .pill-link:hover,
.pill-nav .nav-item.dropdown.show > .pill-link{
  background: var(--accent) !important;
  color: #fff !important;
}

/* 3) CTA Cotizar: siempre naranja con letras blancas */
.pill-nav .pill-cta{
  background: var(--accent) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.18) !important;
}

/* 4) CTA hover: blanco con letras naranja */
.pill-nav .pill-cta:hover{
  background: rgba(255,255,255,.95) !important;
  color: var(--accent) !important;
}

/* Por si Bootstrap mete estilos raros en focus/active */
.pill-nav .pill-link:focus,
.pill-nav .pill-link:active,
.pill-nav .pill-cta:focus,
.pill-nav .pill-cta:active{
  box-shadow: none !important;
  outline: none !important;
}

/* =========================================================
   FIX DEFINITIVO CTA COTIZAR
========================================================= */

/* Siempre naranja + blanco */
.pill-nav .pill-cta{
  background: var(--accent) !important;
  color: #fff !important;
}

/* Hover blanco + naranja */
.pill-nav .pill-cta:hover{
  background: #ffffff !important;
  color: var(--accent) !important;
}

/* Evita que theme-light lo vuelva negro */
body.theme-light .pill-cta{
  color: #ffffff !important;
}





/* =========================================================
   KUATRO COOKIES BAR
========================================================= */

#kuatro-cookies{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  width: min(92%, 780px);
  z-index: 999999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

#kuatro-cookies.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

#kuatro-cookies.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(16px);
}

.kuatro-cookies-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 16px 18px;
  border-radius: 18px;

  background: rgba(34, 34, 34, 0.62);
  border: 1px solid rgba(255,255,255,.10);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  box-shadow:
    0 18px 50px rgba(0,0,0,.22),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.kuatro-cookies-inner p{
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
}

#kuatro-accept-cookies{
  flex: 0 0 auto;
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(249,115,22,.28);
}

#kuatro-accept-cookies:hover{
  opacity: .96;
  transform: translateY(-1px);
}

/* =========================================================
   KUATRO NOTICE MODAL
========================================================= */

#kuatro-notice{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999999;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(8, 10, 14, .50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .28s ease, visibility .28s ease;
}

#kuatro-notice.is-visible{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#kuatro-notice.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* CARD */

.kuatro-notice-card{
  width: min(92%, 560px);
  padding: 34px;
  border-radius: 24px;

  background: rgba(255,255,255,.78);
  border: 1px solid rgba(255,255,255,.35);

  box-shadow:
    0 30px 80px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.42);

  text-align: center;
  font-family: var(--font-sans, Manrope, Arial, sans-serif);

  position: relative;
  z-index: 2;
}

/* TITLE */

.kuatro-notice-card h3{
  margin: 0 0 12px 0;
  font-size: 28px;
  line-height: 1.1;
  color: #111;
  font-weight: 700;
}

/* TEXT */

.kuatro-notice-card p{
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4b4b4b;
}

/* BUTTON */

#kuatro-notice-close{
  margin-top: 14px;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  background: #f97316;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 24px rgba(249,115,22,.24);
}

#kuatro-notice-close:hover{
  opacity: .96;
  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 767.98px){

  .kuatro-cookies-inner{
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
  }

  #kuatro-accept-cookies{
    width: 100%;
    justify-content: center;
  }

  .kuatro-notice-card{
    width: min(92%, 94vw);
    padding: 28px 20px;
    border-radius: 20px;
  }

  .kuatro-notice-card h3{
    font-size: 24px;
  }

  .kuatro-notice-card p{
    font-size: 14px;
  }

  #kuatro-notice-close{
    width: 100%;
  }
}