/*
Theme Name:   Lyvoom Child
Theme URI:    https://lyvoom.com
Description:  Child theme de Hello Elementor para Lyvoom — Cabecera estilo Apple
Author:       Lyvoom
Author URI:   https://lyvoom.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  lyvoom-child
*/

/* ============================================================
   RESET DEL HEADER NATIVO DE HELLO ELEMENTOR
   ============================================================ */
.site-header,
.site-header .site-navigation,
.site-branding {
  display: none !important;
}

/* ============================================================
   CABECERA LYVOOM — ESTILO APPLE
   ============================================================ */

.lyvoom-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.10);
  z-index: 99999;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.lyvoom-nav.scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(0, 0, 0, 0.16);
}

.lyvoom-nav__inner {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 22px;
}

/* Logo */
.lyvoom-nav__logo {
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #1d1d1f;
  text-transform: uppercase;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.lyvoom-nav__logo:hover {
  opacity: 0.6;
  color: #1d1d1f;
}

/* Links de navegación — escritorio */
.lyvoom-nav__menu {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.lyvoom-nav__menu li {
  margin: 0;
  padding: 0;
}

.lyvoom-nav__menu li a {
  display: block;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 400;
  color: #1d1d1f;
  text-decoration: none;
  letter-spacing: 0.01em;
  opacity: 0.85;
  transition: opacity 0.2s;
  white-space: nowrap;
  line-height: 52px;
}

.lyvoom-nav__menu li a:hover {
  opacity: 0.45;
  color: #1d1d1f;
}

/* Acciones (búsqueda + carrito) */
.lyvoom-nav__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.lyvoom-nav__icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #1d1d1f;
  opacity: 0.85;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: opacity 0.2s;
}

.lyvoom-nav__icon-btn:hover {
  opacity: 0.45;
}

.lyvoom-nav__icon-btn svg {
  width: 16px;
  height: 16px;
}

/* Hamburguesa */
.lyvoom-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.lyvoom-nav__hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #1d1d1f;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.lyvoom-nav__hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.lyvoom-nav__hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.lyvoom-nav__hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   MENÚ MÓVIL — OVERLAY
   ============================================================ */

.lyvoom-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99998;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.lyvoom-mobile-menu.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lyvoom-mobile-menu__inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 8px 22px 40px;
}

.lyvoom-mobile-menu__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.09);
  text-decoration: none;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.2px;
  transition: opacity 0.2s;
}

.lyvoom-mobile-menu__item:hover {
  opacity: 0.5;
  color: #1d1d1f;
}

.lyvoom-mobile-menu__item:last-child {
  border-bottom: none;
}

.lyvoom-mobile-menu__chevron {
  opacity: 0.25;
  flex-shrink: 0;
}

.lyvoom-mobile-menu__actions {
  display: flex;
  gap: 28px;
  padding: 20px 0 0;
  margin-top: 8px;
  border-top: 0.5px solid rgba(0, 0, 0, 0.09);
}

.lyvoom-mobile-menu__action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1d1d1f;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lyvoom-mobile-menu__action-btn:hover {
  opacity: 0.4;
}

/* ============================================================
   AJUSTE DE CONTENIDO (empujar por el header fijo)
   ============================================================ */

body {
  padding-top: 52px !important;
}

/* Compatibilidad con Elementor */
.elementor-section-wrap > .elementor-section:first-child,
.e-con-inner > .e-con:first-child {
  margin-top: 0;
}

/* ============================================================
   RESPONSIVE — MÓVIL (<= 768px)
   ============================================================ */

@media (max-width: 768px) {
  .lyvoom-nav__menu {
    display: none;
  }

  .lyvoom-nav__icon-btn.lyvoom-search-desk {
    display: none;
  }

  .lyvoom-nav__hamburger {
    display: flex;
  }

  .lyvoom-nav__inner {
    height: 48px;
    padding: 0 18px;
  }

  body {
    padding-top: 48px !important;
  }

  .lyvoom-mobile-menu {
    top: 48px;
  }
}

@media (max-width: 480px) {
  .lyvoom-nav__logo {
    font-size: 15px;
  }
}
