
/* ======================================
   FOOTER PEGADO ABAJO SIN HUECO
====================================== */

html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}
/* ===================================
   RESPONSIVE GLOBAL PROFESIONAL
=================================== */

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Evita desbordes horizontales */
html, body {
  overflow-x: hidden;
}

/* Imágenes siempre adaptables */
img {
  max-width: 100%;
  height: auto;
}

/* Videos siempre adaptables */
video {
  max-width: 100%;
  height: auto;
}

/* Tablets */
@media (max-width: 1024px) {

  .brand-container {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .nav {
    gap: 16px;
  }

}

/* Móviles grandes */
@media (max-width: 768px) {

  .brand-container {
    flex-direction: column;
    gap: 8px;
  }

  .nav {
    position: static;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .grid:not(.grid--premium) {
  grid-template-columns: 1fr;
  }

}

/* Móviles pequeños (320px reales) */
@media (max-width: 480px) {

  .nav__link {
    font-size: 13px;
  }

  .brand-slogan {
    font-size: 8px;
    text-align: center;
  }

  .year {
    font-size: 14px;
  }

}

/* ==============================
   MENÚ SUPERIOR FRANJA ROJA
============================== */

.brand-center {
  text-align: left;
  position: relative;
}

/* ======================================
   MENU INICIO INDEPENDIENTE
====================================== */

.home .top-menu {
  position: absolute;
  top: 2px;      /* mueve arriba/abajo */
  left: 80%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;       /* separación entre links */
  z-index: 25;
}

.home .top-menu a {
  font-size: 4px;     /* tamaño texto */
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

.home .top-menu a:hover {
  color: #E5C46A;
}

/* ==============================
   BUSCADOR EXPLORADOR
============================== */

.explorer-top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.explorer-search button:hover {
  opacity: .8;
  background: rgba(0,0,0,.35);
}

.explorer-back {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.explorer-back:hover {
  opacity: .8;
}

.brand-bar {
  position: relative;
}

/* ==============================
   MOVIMIENTO MANUAL LOGO
============================== */

.brand-logo {
  position: relative;
  top: 5px;     /* mueve arriba/abajo */
  left: -160px;    /* mueve izquierda/derecha */
}

/* ==============================
   MOVIMIENTO MANUAL SLOGAN
============================== */

.brand-slogan {
  position: relative;
  top: -30px;     /* mueve arriba/abajo */
  left: 0px;    /* mueve izquierda/derecha */
}

/* ======================================
   CONTROL UNIVERSAL BUSCADOR
====================================== */
/*MOVIMIENTO MANUAL BUSCADOR*/

.search-control {
  position: absolute;
  top: -15px;      /* mueve arriba/abajo */
  left: 15%;
  transform: translateX(-30%);
  width: -8px;    /* ancho total buscador */
  z-index: 5;
}
/* ======================================
   CARRITO GLOBAL INDEPENDIENTE
====================================== */

.nav__cart {
  position: absolute;
  top: 37px;     /* mueve arriba/abajo */
  right: 50px;    /* mueve izquierda/derecha */
  z-index: 50;
}

/* ======================================
   HERO SISTEMA INDEPENDIENTE
====================================== */

.hero-banner {
  position: relative;
  min-height: 100px; /* en vez de height fijo */
  padding-bottom: 0px; /* espacio real para evitar superposición */
}

.hero-layout {
  position: relative;
  width: 100%;
  height: 100%;
}

/* VIDEO */
.hero-video-box {
  position: absolute;
  top: 12px;      /* mover vertical */
  left: 10px;      /* mover horizontal */
  width: 40%;      /* ancho */
  height: 120px;   /* alto */
  border-radius: 20px;
  overflow: hidden;
}

.hero-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* PUBLICIDAD */

/* ======================================
   CONTROL CUADRO PUBLICIDAD
====================================== */

.hero-ad-box{
  position: absolute;

  /* POSICIÓN (puedes moverlo libremente) */
  top: 20px;
  right: 70px;

  /* TAMAÑO RESPONSIVO (sin “pastilla blanca”) */
  width: min(100px, 50vw);
  height: auto;

  /* IMPORTANTE: siempre clicable encima del resto */
  z-index: 9999;

  /* Quitamos el fondo blanco del contenedor */
  background: transparent;
  padding: 0;
}

/* ======================================
   CONTROL TEXTO PUBLICIDAD
====================================== */
/* MOVEMOS TEXTO DEL SLIDER*/

.hero-ad-box .mini-item span {

  font-size: 8px;      /* tamaño letra */
  font-weight: 520;     /* grosor */
  color: #111111;       /* color texto */
  text-align: center;   /* alineación */
  position: relative;
  top: -5px;    /* mover arriba/abajo */
  left: 0px;   /* mover izquierda/derecha */

  margin-top: 10px;
}

/* MINI SLIDER CONTROL */

.hero-ad-box .mini-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
}

.hero-ad-box .mini-slider-viewport {
  width: 100%;
  height: 320px;
  overflow: hidden;
  flex: 1;
  min-width: 0;
}

.hero-ad-box .mini-btn {
  width: 30px; /*modifica ancho del boton de flechas*/
  height: 30px;/*modifica alto de el boton de las flechas*/
  font-size: 15px; /*modifica el tamaño de las flechas*/
}
/* ======================================
   CONTROL INDEPENDIENTE FLECHAS SLIDER
====================================== */

/* FLECHA IZQUIERDA */
.hero-ad-box .mini-btn.prev {
  position: absolute;

  top: 15%;      /* mover arriba / abajo */
  left: -35px;   /* mover izquierda / derecha */

  transform: translateY(-50%);
  z-index: 20;
}

/* FLECHA DERECHA */
.hero-ad-box .mini-btn.next {
  position: absolute;

  top: 15%;      /* mover arriba / abajo */
  right: -35px;  /* mover izquierda / derecha */

  transform: translateY(-50%);
  z-index: 20;
}


/* DOMICILIOS */
.hero-delivery-box {
  position: absolute;
  bottom: -540px;
  left: 150px;
  /*background: rgba(255,255,255,0.9);*/
  padding: 2px;
  border-radius: 16px;
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centra vertical */
  align-items: center;       /* centra horizontal */
  text-align: center;
}

.hero-delivery-box .hero-info-item {
  margin-bottom: 10px;
  font-size:10px;
}
/* ======================================
   SLIDER IMAGEN ADAPTABLE
====================================== */


.hero-ad-box .mini-item{
  flex: 0 0 100%;   /* <- clave: cada item ocupa 100% del viewport */
  width: 100%;
  height: 100%;
}


.hero-ad-box .mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* llena el cuadro sin deformarse */
}

/* ======================================
   CONTROLES HOME - DESTACADOS (MOVER)
====================================== */

.home .section--premium {
  position: relative;
  top: 0;
  left: 0;
  transform: none;
  width: 100%;
  margin-top: 40px; /* espacio real sin superposición */
}

/* ======================================
   CONTROL HOME - TITULOS DESTACADOS
====================================== */

.home .section-title {
  position: relative;
  top: 0px;
  left: 0px;

  font-size: 15px;   /* tamaño titulo */
}

.home .section-subtitle {
  position: relative;
  top: 0px;
  left: 0px;

  font-size: 10px;   /* tamaño frase */
  transform: scale(1);
}

/* ======================================
   CONTROLES HOME - WHATSAPP (MOVER)
====================================== */

.home .whatsapp-float {
  position: fixed;
  right: 18px;  /* mueve izquierda/derecha */
  bottom: 18px; /* mueve arriba/abajo */
  transform: none;
  padding: 6px 10px;  /* tamaño */
  font-size: 5px;     /* texto */
  border-radius: 999px;
}
