/* =========================
   HEADER
========================= */

/* Header general */
.ba-header {
    width: 100%;
    position: static;
    top: 0;
    z-index: 1000;
    height: 160px;
}

/* Parte superior fija */
.ba-header-top {
    position: fixed;
    width: 100%;
    background-color: #6c00d8;
    color: #fff;
    z-index: 101;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.5s ease, opacity 0.5s ease, height 0.5s ease;
    overflow: hidden;
    height: 100px;
}
.ba-header-top .container {
    width: 95%;
    margin: 0 auto;
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.ba-logo {
    height: 80px;
    transition: height 0.3s ease;
}

/* Botones generales */
.ba-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
}

/* Botón cerrar sesión */
.ba-btn.cerrar-sesion {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background: none;
    border: none;
    cursor: pointer;
}
.ba-btn.ingresa a {
    border: 2px solid transparent;
    border-radius: 25px;
}
.ba-btn.ingresa a:hover, .ba-btn.cerrar-sesion:hover {
    color: #fff;
    border: 2px solid #fff !important; 
    border-radius: 25px;
}
/* Iconos perfil y carrito */
.perfil,
.ba-cart-icon img {
    filter: brightness(0) invert(1) drop-shadow(0 0 1px white);
}
.perfil {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
img.bag {
    width: 30px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 5px;
}
img.bag:hover {
    transform: scale(1.2);
}

/* Parte inferior fija */
.ba-header-bottom {
    position: fixed;
    top: 60px;
    width: 100%;
    background-color: #001bbe;
    height: 65px;
    align-content: center;
    z-index: 100;
    transition: top 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.ba-header-bottom.scrolled {
    background-color: rgba(0, 27, 190, 0.7);
    box-shadow: 0 2px 10px rgb(0, 27, 190);
}

/* Navegación */
.ba-nav {
    width: 95%;
    margin: 0 auto;
    padding: 1rem 0;
}
.ba-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    margin: 0;
    flex-wrap: wrap;
    gap: 1rem;
}
.ba-nav ul li {
    align-content: center;
    border-right: 2px solid #fff;
}
.ba-nav a {
    color: #fff;
    text-decoration: none;
    padding: 1px 4rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    
}
.ba-nav a:hover {
    color: #dbd7d7;
}


/* Contenedor menú */
.menu-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 95%;
    margin: 0 auto;
    width: 100%;
    gap: 1rem;
}

/* Icono carrito */
.ba-cart-icon img {
    height: 27px;
    width: auto;
    display: block;
    padding: 0.5rem 1rem;
}
.ba-cart-icon img:hover {
    height: 24px;
    border: 2px solid #fff;
    border-radius: 25px;
}
button.ba-btn.cerrar-sesion {
    margin-top: 0;
}
/* Submenús */
.submenu {
    position: relative;
}
ul.submenu-items {
    display: none;
    position: absolute;
    list-style: none;
    padding-top: 5px;
    margin: 0;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 120px;
    border-radius: 0 0 8px 8px;
    background: #001bbe;
    padding: 5px;
    width: 170px;
}
.submenu-items li a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    text-transform: uppercase;
}
ul.submenu-items a {
    border-right: none;
}

.submenu:hover .submenu-items {
    display: block;
}
ul.submenu-items li
 {
    border-right: 0px;
}
/* Popups */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}
.popup-overlay:target {
    display: flex;
}
.popup-content {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}
.popup-content h2 {
    margin-bottom: 1rem;
    color: #e96d79;
    text-transform: uppercase;
}
.popup-content label {
    display: block;
    text-align: start;
}
.popup-content input {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.popup-btn {
    background-color: #e96d79;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    margin-top: 1.7rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(233, 109, 121, 0.4);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.popup-btn:hover {
    background-color: #d1505d;
    box-shadow: 0 6px 16px rgba(209, 80, 93, 0.5);
}
.close-popup, .cierra-popup {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 27px;
    color: #e96d79;
    text-decoration: none;
    font-weight: bold;
}

/* =========================
   FOOTER
========================= */

.ba-footer {
    background-color: #434242;
    padding: 2rem 0;
    text-align: center;
    color: #FFF;
    border-top: 1px solid #eee;
}
.footer-logo img {
    height: 90px;
    max-width: 100%;
}
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem;
}
.footer-divider .line {
    flex: 1;
    height: 1px;
    background-color: rgb(243, 133, 143);
    margin: 0 10px;
}
.footer-divider .flower {
    font-size: 20px;
    color: rgb(243, 133, 143);
}
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10rem;
    text-align: left;
    padding: 0 1rem;
}
.footer-column {
    flex: 1 1 300px;
    max-width: 500px;
}
.footer-column h3 {
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgb(243, 133, 143);
    display: inline-block;
    padding-bottom: 0.3rem;
    color: #fff;
}
.footer-column p {
    color: #a2a2a2;
    font-size: 0.9rem;
    line-height: 1.5;
}
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul li a {
    position: relative;
    color: #a2a2a2;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: color 0.3s ease;
}
.footer-column ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background-color: #a2a2a2;
    transition: width 0.4s ease;
}
.footer-column ul li a:hover::after {
    width: 100%;
}

/* Video modal */
.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.video-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    background-color: #d9d7d7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.close-video-modal {
    position: absolute;
    top: 0px;
    right: 20px;
    color:  #d1505d;
    font-size: 45px;
    text-decoration: none;
    cursor: pointer;
    z-index: 10;
}

/* Botón Aviso de Privacidad */
.btn-aviso {
    color: #fff;
    border: 2px solid #fff;
    padding: 0.5rem;
    border-radius: 2px;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    white-space: nowrap;
    font-size: 13px;    
}
.btn-aviso:hover {
    background-color: rgba(255,255,255,0.15);
    border-radius: 2px;
}

/* Scroll to top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e96d79;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}
.scroll-to-top img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}
.scroll-to-top:hover img {
    transform: scale(1.2);
}

/* Form inline */
.form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}
.form-group-inline img.login-img {
    width: 24px;
    height: 24px;
}
.form-group-inline label {
    min-width: 90px;
    font-weight: 600;
    color: #e96d79;
}
.form-group-inline input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* ====== BOTÓN HAMBURGUESA ====== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 2001; /* encima del menú */
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.ba-header-top {
  z-index: 3000; /* header top por encima */
  border-bottom: 1px solid #fff;
}
.ba-header-bottom {
  z-index: 2500; /* menu bottom encima del contenido pero debajo del headerTop */
  display: block; /* visible por defecto en escritorio */
}

/* NO eliminar: regla global que evita scroll del body cuando el menu móvil está abierto */
body.menu-open {
  overflow: hidden;
  height: 100vh;
  touch-action: none;
}
/* ====== BOTÓN HAMBURGUESA (base) ====== */
.menu-toggle {
  display: none; /* se mostrará solo en móvil */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 3010; /* encima del header-bottom */
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s ease;
}
/* Transformación a X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
.ba-header__cta {
    flex: none;
}
/* =========================
   RESPONSIVE
========================= */


@media (max-width: 999px) {

    .ba-nav ul {
        gap: 0;
    }
    .ba-cart-icon img {
        height: 24px;
    }
    .ba-cart-icon img:hover {
        height: 21px;
    }
    .ba-nav a {
        padding: 0.5rem 2rem;
    }
}
@media (max-width: 768px) {   
    
    .ba-header {
    height: 80px !important;
}
.ba-nav ul li {
    border-right: 0px;
}
.grid-subgrupos {
    grid-template-columns: repeat(1, 1fr);
}
    .ba-logo {
        height: 60px;
    }
    .ba-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    .ba-btn {
        font-size: 14px;
        padding: 0.4rem 0.8rem;
    }
    .menu-container {
        flex-direction: column;
        align-items: center;
    }
    .ba-cart-icon {
        order: 2;
        margin-top: 1rem;
    }
    .footer-content {
        gap: 2rem;
    }
     /* Mostrar hamburguesa */
   .menu-toggle {
    display: flex;
  }

  /* Contenedor header-top relativo para posicionar hamburguesa en el centro absoluto */
  .ba-header-top .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Centrar el botón (absoluto) en el centro horizontal del header */
  .menu-toggle {
    position: absolute;
    left: 33%;
    top: 30%;
    transform: translate(-50%, -50%);
  }

  /* Ocultar menu-bottom por defecto en móvil (se muestra al agregar .open) */
  .ba-header-bottom {
    display: none; /* cerrado por defecto */
    position: fixed;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    padding: 0.8rem 0;
    /* top será fijado por JavaScript para quedarse exactamente debajo del headerTop */
  }

  .ba-header-bottom.open {
    display: flex;
  }

  /* Layout vertical del nav en móvil */
  .ba-nav ul {
    flex-direction: column;
    gap: 0.6rem;
    padding: 1rem 0;
    justify-content: center;
  }

  /* Asegurar que los enlaces ocupen ancho cómodo */
  .ba-nav a {
    display: block;
    width: calc(100% - 2rem);
    text-align: center;
    margin: 0 auto;
  }
  .menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
    }
 .ba-nav a {
        padding: 0.5rem 1rem;
    }
    img.bag{
    width: 25px;
    }
    .ba-btn.cerrar-sesion {
    font-size: 13px;
    }
    /* Submenú videos en móvil */
.only-movil .submenu-items {
    display: none;
}
.only-movil .submenu.open .submenu-items {
    display: block;
}
}
@media (max-width: 769px) {
    .only-desk {
        display:none;
    }
}
@media (min-width: 769px) {
    .only-movil {
        display: none;
    }
}
@media (max-width: 480px) {
    .ba-logo {
        height: 50px;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-column {
        max-width: 100%;
    }
}


