/* ======================
   HEADER MOBILE / TABLET
   ====================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #000;
  border-bottom: 1px solid #222;
}

.header-inner {
  max-width: 1110px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.logo img {
  height: 60px;
}

/* ======================
   BOTÓN HAMBURGUESA
   ====================== */
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  animation: pulse 1.6s infinite;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  width: 26px;
  height: 3px;
  background: #fff;
  display: block;
  position: relative;
  transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ======================
   MENÚ OVERLAY (AISLADO)
   ====================== */
.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 320px;
  background: rgba(15,15,15,0.95);
  backdrop-filter: blur(6px);
  z-index: 2500;

  /* CLAVE: el menú se adapta al contenido */
  height: auto;
  padding-bottom: 10px;

  transform: translateX(-100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}

/* SOLO cuando está abierto */
.main-menu.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.35s ease;
}

/* ======================
   OVERLAY OSCURO (SOLO ABIERTO)
   ====================== */
#menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(2px);
  z-index: 2400;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

/* Visible solo cuando el menú está abierto */
.main-menu.open + #menu-overlay {
  opacity: 1;
  visibility: visible;
}

/* ======================
   ITEMS DEL MENÚ
   ====================== */
.main-menu ul {
  margin: 80px 0 0;
  padding: 0;
  list-style: none;
}

.main-menu li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.main-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.main-menu a:hover {
  background: rgba(255,255,255,0.05);
}

/* Corazón */
.main-menu a::before {
  content: "♡";
  color: #ff4d6d;
  font-size: 18px;
}

/* ======================
   OCULTAR SOLO EN PC
   ====================== */
@media (min-width: 1200px) {
  .site-header,
  .main-menu {
    display: none !important;
  }
}


/* ======================
   ANIMACIÓN ☰ → ✕
   ====================== */

/* Estado normal (hamburguesa) */
.menu-toggle .hamburger::before {
  transform: translateY(0) rotate(0);
}

.menu-toggle .hamburger::after {
  transform: translateY(0) rotate(0);
}

/* Estado abierto (cruz) */
.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* =========================
   BOTÓN FLOTANTE ANÚNCIATE
   ========================= */
.boton-flotante {
  position: fixed;
  left: 10px;
  bottom: 10px;

  z-index: 6000; /* por encima de TODO */

  background: rgba(198, 2, 230, 0.75);
  color: #fff;

  padding: 8px 16px 8px 12px;
  border-radius: 10px;

  display: flex;
  align-items: center;
  gap: 10px;

  box-shadow: 0 8px 25px rgba(0,0,0,0.5);

  font-family: Arial, sans-serif;
}

/* Link */
.boton-flotante .link-anunciate {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  white-space: nowrap;
}

/* Botón cerrar */
.cerrar-boton {
  background: #A6A6A6;
  border: none;
  color: #000;

  width: 26px;
  height: 26px;
  border-radius: 50%;

  font-size: 18px;
  font-weight: bold;
  cursor: pointer;

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

/* Hover (PC) */
@media (hover: hover) {
  .boton-flotante:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.65);
  }
}

/* Ajuste móvil */
@media (max-width: 480px) {
  .boton-flotante {
    padding: 10px 14px 10px 12px;
  }

  .boton-flotante .link-anunciate {
    font-size: 13px;
  }
}

