/* =====================
   RESET
===================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =====================
   VARIABLES
===================== */
:root {
  --color-bg: #ffffff;
  --color-text: #000000;
}

/* =====================
   BASE
===================== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-family:'Montserrat', sans-serif;
  font-family:'Inter', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

/* =====================
   MEDIA DEFAULT
===================== */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* =====================
   FORM RESET
===================== */
input,
button,
textarea,
select {
  font: inherit;
}

/* =====================
   LINKS & BUTTONS
===================== */
a {
  text-decoration: none;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* ====================================================================================
   DESARROLLO DE LA PÁGINA WEB
==================================================================================== */
.actions a,
.secondary-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-btn i {
  font-size: 16px;
}

/* ================================
   HEADER
================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
}

/* ================================
   TOPBAR
================================ */

.topbar {
  background: #e30613;
  padding: 6px 0;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo-desktop img {
  height: 50px;
  height: 60px;
}

.logo-mobile{
  display: none;
}

.search {
  flex: 1;
  display: flex;
  background: white;
  border-radius: 50px;
  overflow: hidden;
  max-width: 600px;
}

.search input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  outline: none;
}

.search-btn {
  padding: 0 20px;
  background: #e30613;
  color: white;
  font-size: 18px;
}

.actions {
  display: flex;
  gap: 25px;
}

.actions a {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

/* ================================
   SUBBAR
================================ */

.subbar {
  background: #f2f2f2;
  background: #fff;
  background: #ffffff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.subbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
}

.categories-btn {
  font-weight: 600;
}

.secondary-nav {
  display: flex;
  gap: 25px;
}

.secondary-nav a {
  color: #333;
  font-size: 14px;
}

.secondary-nav a.sucursales{
  color:#e30613;
  font-weight:600;
}

/* ================================
   MOBILE
================================ */

.mobile-menu-btn {
  display: none;
  font-size: 22px;
  color: white;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  padding: 80px 20px;
  transition: 0.3s ease;
  z-index: 2000;
}

.mobile-drawer.active {
  left: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1500;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ================================
   RESPONSIVE
================================ */
/*Media querie para dispositivos moviles*/
/* Estilos específicos para pantallas pequeñas */
@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
  }

  .logo-desktop{
    display: none;
  }
  
  .logo-mobile{
    display: flex;
  }

  .logo-mobile img {
    height: 50px;
    height: 50px;
  }
  
}

@media (max-width: 1024px) {

  .actions {
    display: none;
  }

  .secondary-nav {
    display: none;
  }

  .subbar {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .search {
    max-width: 100%;
  }

}

/*-------------------------------------------- Panel de categorias --------------------------------------------*/
/* ===============================
   PANEL CATEGORÍAS
=================================*/

.categories-panel{
  position:fixed;
  top:120px;
  left:0;
  width:100%;
  background:#fff;
  border-top:1px solid #eee;
  box-shadow:0 15px 40px rgba(0,0,0,.12);
  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:.25s ease;
  z-index:999;
}

.categories-panel.show{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

/* wrapper */

.categories-wrapper{
  display:grid;
  grid-template-columns:260px 1fr;
  min-height:380px;
}

/* sidebar */

.categories-sidebar{
  border-right:1px solid #eee;
  padding:20px 0;
  background:#fafafa;
}

.cat-item{
  width:100%;
  padding:14px 24px;
  display:flex;
  justify-content:space-between;
  font-weight:500;
  color:#333;
  transition:.2s;
}

.cat-item:hover,
.cat-item.active{
  background:#eee;
}

/* content */

.categories-content{
  padding:30px 40px;
  display:grid;
}

.cat-content{
  display:none;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.cat-content.active{
  display:grid;
}

.col h4{
  margin-bottom:12px;
  font-size:15px;
}

.col a{
  display:block;
  color:#555;
  padding:4px 0;
  font-size:14px;
}

.col a:hover{
  color:#e30613;
}

/* ===============================
   MOBILE
=================================*/

@media(max-width:1024px){

  .categories-panel{
    top:0;
    height:100vh;
    overflow:auto;
  }

  .categories-wrapper{
    grid-template-columns:1fr;
  }

  .categories-sidebar{
    border-right:none;
  }

  .cat-content{
    grid-template-columns:1fr;
    gap:20px;
    padding-top:10px;
  }

}

/*----------------------------------------------- Main -----------------------------------------------*/
.shipping-bar{
  width:100%;
  background:#4a4a4a;
  color:#fff;
  font-family:system-ui;
  border-bottom:2px solid #dcdcdc;
}

.shipping-wrapper{
  max-width:1200px;
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:40px;
  padding:10px 20px;
}

/* items */

.shipping-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  white-space:nowrap;
}

.shipping-highlight{
  font-weight:600;
}

.truck{
  font-size:16px;
}

/* pasos */

.step{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  color:#4a4a4a;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:600;
}

.shipping-item small{
  font-size:11px;
  opacity:.85;
}

/* ------------------ */
/* MOBILE SLIDER */
/* ------------------ */

@media (max-width:768px){

  .shipping-wrapper{
    overflow-x:auto;
    justify-content:flex-start;
    gap:20px;

    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
  }

  .shipping-item{
    flex:0 0 auto;
    scroll-snap-align:start;
  }

  /* ocultar scrollbar */
  .shipping-wrapper::-webkit-scrollbar{
    display:none;
  }

  .shipping-bar{
    padding-left: 10px;
  }

}

/*---------------------------------------------------------------------------------------------------------------
 Ubicación de las sucursales
---------------------------------------------------------------------------------------------------------------*/

.branches-section{
  padding:60px 20px;
  background:#f8f8f8;
}

.branches-header{
  text-align:center;
  margin-bottom:40px;
}

.branches-header h2{
  font-size:32px;
  margin-bottom:10px;
}

.branches-header p{
  color:#666;
}

/* layout */

.branches-layout{
  display:grid;
  grid-template-columns:350px 1fr;
  gap:30px;
  max-width:1200px;
  margin:auto;
  align-items:start;
}

/* lista */

.branches-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.branch{
  background:white;
  padding:16px;
  border-radius:10px;
  cursor:pointer;
  border:1px solid #eee;
  transition:0.2s;
}

.branch:hover{
  background:#f3f3f3;
}

.branch.active{
  border-color:#ff6a00;
}

.branch h3{
  font-size:16px;
  margin-bottom:5px;
}

.branch p{
  font-size:14px;
  color:#555;
}

/* mapa */

.branches-map{
  position:sticky;
  top:20px;
}

.branches-map iframe{
  width:100%;
  height:500px;
  border:0;
  border-radius:12px;
}

/* TABLET */

@media (max-width:900px){

  .branches-layout{
    grid-template-columns:1fr;
  }

  .branches-map{
    position:relative;
    top:auto;
  }

  .branches-map iframe{
    height:400px;
  }

}

/* MOBILE */

@media (max-width:600px){

  .branches-section{
    padding:40px 15px;
  }

  .branches-header h2{
    font-size:26px;
  }

  .branches-map iframe{
    height:300px;
  }

}

.branches-actions{
display:flex;
justify-content:center;
gap:15px;
margin-bottom:40px;
flex-wrap:wrap;
}

.branches-actions button,
.btn-maps,
.btn-route{

padding:10px 18px;
border:none;
border-radius:8px;
background:#063940;
background: #ff0800;
background: #E30613;
color:white;
cursor:pointer;
font-size:14px;
text-decoration:none;
transition:0.2s;

}

.branches-actions button:hover,
.btn-maps:hover,
.btn-route:hover{
background:#0a4f58;
background: #ff423c;
background: #f3404c;
}





























