/* ============================
   CardNav (fixed, no scroll-follow)
   ============================ */

.card-nav-container{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: min(90%, 800px);
  z-index: 99999;
  box-sizing: border-box;
  pointer-events: none; /* no bloquea el hero */
}

.card-nav{
  pointer-events: auto; /* el nav sí es clickeable */
  display: block;
  height: 60px;
  padding: 0;
  background-color: #fff;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
  will-change: height;
}

.card-nav-top{
  position: absolute;
  inset: 0;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.45rem 0.55rem 1.1rem;
  z-index: 2;
}

.hamburger-menu{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  gap: 6px;
  background: transparent;
  border: 0;
  padding: 0;
  color: #000;
}

.hamburger-menu:hover .hamburger-line{ opacity: 0.75; }

.hamburger-line{
  width: 30px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: 50% 50%;
  display: block;
}

.hamburger-menu.is-open .hamburger-line:first-child{
  transform: translateY(4px) rotate(45deg);
}
.hamburger-menu.is-open .hamburger-line:last-child{
  transform: translateY(-4px) rotate(-45deg);
}

.logo-container{
  display: flex;
  align-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
}

.logo{
  height: 28px;
  display: block;
}

.card-nav-cta-button{
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: calc(0.75rem - 0.35rem);
  padding: 0 1rem;
  height: 100%;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.card-nav-cta-button:hover{
  background-color: #333;
}

.card-nav-content{
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  padding: 0.5rem;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
}

.card-nav.is-expanded .card-nav-content{
  visibility: visible;
  pointer-events: auto;
}

.nav-card{
  height: 100%;
  flex: 1 1 0;
  min-width: 0;
  border-radius: calc(0.75rem - 0.2rem);
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  gap: 8px;
  user-select: none;
}

.nav-card-label{
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-card-links{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-card-link{
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  transition: opacity 0.25s ease;
}

.nav-card-link:hover{ opacity: 0.75; }

.nav-card-link-icon{
  display: inline-flex;
  align-items: center;
}

/* Mobile */
@media (max-width: 768px){
  .card-nav-container{
    width: 90%;
    top: calc(env(safe-area-inset-top, 0px) + 12px);
  }

  .card-nav-top{
    padding: 0.5rem 1rem;
    justify-content: space-between;
  }

  .logo-container{
    position: static;
    transform: none;
  }

  .card-nav-cta-button{
    display: none;
  }

  .card-nav-content{
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0.5rem;
    bottom: 0;
    justify-content: flex-start;
  }

  .nav-card{
    height: auto;
    min-height: 60px;
    flex: 1 1 auto;
    max-height: none;
  }

  .nav-card-label{ font-size: 18px; }
  .nav-card-link{ font-size: 15px; }
}

/* Estado scrolled (sombra/blur) */
.card-nav.is-scrolled{
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  border-color: rgba(0,0,0,0.08);
}

@supports (backdrop-filter: blur(10px)){
  .card-nav.is-scrolled{
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(10px);
  }
}

/* ============================
   Social buttons (reemplaza CTA)
   ============================ */
.card-nav-social{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.card-nav-social-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  border-radius: 12px;
  background: #111;
  color: #fff;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.card-nav-social-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
  background: #1a1a1a;
}

.card-nav-social-btn:active{
  transform: translateY(0px);
  opacity: 0.95;
}

.card-nav-social-ico{
  width: 22px;
  height: 22px;
  display: block;
}

/* WhatsApp: verde sutil, premium */
.card-nav-social-btn.is-wa{
  background: #0f2a1a; /* oscuro */
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.card-nav-social-btn.is-wa:hover{
  background: #0b3a20;
  box-shadow: 0 18px 42px rgba(0,0,0,0.24);
}

/* Mobile: ocultar CTA original ya no aplica; mantenemos botones */
@media (max-width: 768px){
  .card-nav-social-btn{
    height: 42px;
    width: 42px;
    border-radius: 12px;
  }
}

/* ============================
   Social icons (sin cajas)
   ============================ */
.card-nav-social{
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Botón invisible: solo icono, conserva animación/hover premium */
.card-nav-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px; /* solo para hit-area; NO dibuja caja */
  background: transparent; /* clave */
  color: #0f172a;          /* icono negro/azul oscuro */
  text-decoration: none;
  cursor: pointer;
  user-select: none;

  transition: transform 0.18s ease, filter 0.25s ease, opacity 0.2s ease;
}

/* icono */
.card-nav-icon-svg{
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

/* Hover (sin caja): lift + glow suave (respeta animación) */
.card-nav-icon:hover{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.18));
}

.card-nav-icon:active{
  transform: translateY(0px);
  opacity: 0.95;
}

/* WhatsApp en verde, sin fondo */
.card-nav-icon--wa{
  color: #1BAA5A; /* verde WA */
}
.card-nav-icon--wa:hover{
  filter: drop-shadow(0 10px 18px rgba(27,170,90,0.28));
}

/* Mobile */
@media (max-width: 768px){
  .card-nav-icon{
    width: 42px;
    height: 42px;
  }
  .card-nav-icon-svg{
    width: 24px;
    height: 24px;
  }
}


/* ============================
   Uiverse-style icon buttons (sin cajas visibles)
   ============================ */
.cardnav-icons{
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  height: 100%;
}

.cardnav-icons__item{
  display: inline-block;
}

/* esto es la “base Uiverse” */
.cardnav-iconbtn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* hit-area */
  width: 44px;
  height: 44px;
  padding: 6px;

  /* clave: no caja visible */
  background: transparent;
  border: 0;
  border-radius: 12px;

  cursor: pointer;
  user-select: none;
  text-decoration: none;
  overflow: hidden;

  /* transición tipo Uiverse */
  transition: color 300ms ease, box-shadow 300ms ease, transform 300ms ease, filter 300ms ease;
  color: #0f172a; /* default sobrio */
}

/* svg: se comporta como en Uiverse (fill currentColor) */
.cardnav-iconbtn__svg{
  width: 26px;
  height: 26px;
  display: block;
  fill: currentColor;
}

/* hover: sin fondo, pero con glow como Uiverse */
.cardnav-iconbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.22); /* “shadow-2xl” feeling */
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.18));
}

.cardnav-iconbtn--ig:hover{
  color: #fa7e1e; /* naranja IG */
  box-shadow:
    0 25px 60px rgba(250, 126, 30, 0.22),
    0 18px 42px rgba(214, 41, 118, 0.20),
    0 14px 32px rgba(150, 47, 191, 0.14);
  filter:
    drop-shadow(0 18px 28px rgba(214, 41, 118, 0.20))
    drop-shadow(0 12px 18px rgba(250, 126, 30, 0.12));
}

/* WhatsApp: normal negro, hover verde WhatsApp */
.cardnav-iconbtn--wa{
  color: #0f172a; /* negro/ink (igual al mood de tu shadow base) */
}

.cardnav-iconbtn--wa:hover{
  color: #22c55e; /* verde WhatsApp */
  box-shadow: 0 25px 60px rgba(34, 197, 94, 0.26);
  filter: drop-shadow(0 18px 28px rgba(34, 197, 94, 0.22));
}

/* mobile fine-tune */
@media (max-width: 768px){
  .cardnav-iconbtn{
    width: 42px;
    height: 42px;
  }
  .cardnav-iconbtn__svg{
    width: 24px;
    height: 24px;
  }
}

/* Mobile: ocultar redes */
@media (max-width: 768px){
  .cardnav-icons{
    display: none !important;
  }
}

@media (max-width: 768px) {
    .card-nav:not(.is-scrolled) {
      background-color: var(--color-primary);
      border-color: transparent;
      box-shadow: none;
    }

    .card-nav:not(.is-scrolled) .hamburger-line {
      background-color: #fff;
    }
  }

  .card-nav {
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }

  .hamburger-line {
    transition: background-color 0.3s ease;
  }
