/* Cuerpo */
html{
	background-color: #fff;
}
body{
	padding-top: 140px;
	padding-bottom: 60px;
	font-family: 'Nunito', sans-serif;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #333333;
}

/* Menú */

.scroll-menu {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.5rem;
  gap: 1rem; /* separación entre items */
}

.scroll-menu .item {
  flex: 0 0 auto;
  text-align: center;
  width: 100px; /* podés subir a 120px si querés más aire */
}

.scroll-menu .item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border-radius: 50%;
}

.scroll-menu .item div {
  font-size: 0.85rem;
  white-space: normal;   /* permite varias líneas */
  word-wrap: break-word; /* corta si es demasiado largo */
  line-height: 1.1rem;
}

.fixed-top-2{
	top: 124px;
}
.disabled{
	pointer-events: none;
	opacity: 0.5;
}
.logo-menu{
	max-width:48px;
}

/* --- Categorías (rubros) --- */
.scroll-menu .item-rub {
  flex: 0 0 auto;
  text-align: center;
  margin: 0 8px;
}

.scroll-menu .item-rub a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
}

.scroll-menu .item-rub img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

/* Rubro activo: borde y escala */
.scroll-menu .item-rub a.active img {
  border-color: #d63384;
  transform: scale(1.1);
}

/* Hover rubro */
.scroll-menu .item-rub a:hover img {
  transform: scale(1.05);
  border-color: #f06292;
}

/* Texto debajo del icono */
.scroll-menu .item-rub div {
  margin-top: 5px;
  font-size: 0.75rem;
  line-height: 1rem;
  max-width: 80px; /* ancho máximo para no romper el círculo */
  word-wrap: break-word;
  text-align: center;
}

/* --- Subcategorías --- */
.scroll-menu .item-sub a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  color: #555;
}

.scroll-menu .item-sub a.active {
  background: #d63384;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.scroll-menu .item-sub a:hover {
  background: #f8bbd0;
  color: #fff !important;
}

.scroll-menu .item-sub span.disabled {
  color: #ccc;
  font-style: italic;
  font-size: 0.85rem;
  cursor: not-allowed;
}


/* Ciudades */

.city-card-link {
  display: block;
}

.city-card {
  border-radius: 15px;
  border: 1px solid #ddd;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.city-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.city-card .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .city-card {
    padding: 2rem 1rem;
  }
}


/*******************/

/* --- General --- */
body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  color: #333;
}

/* --- Título principal --- */
h2 {
  font-weight: 600;
  font-size: 1.8rem;
  color: #444;
  background: -webkit-linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Tarjetas de ciudades --- */
.city-card {
  border: none;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.city-card:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.city-card .card-body {
  padding: 2rem 1rem;
}

.city-card .card-title a {
  font-size: 1.2rem;
  font-weight: 500;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
  color: #fff !important;
  text-decoration: none;
  transition: background 0.3s ease;
}

.city-card .card-title a:hover {
  background: linear-gradient(45deg, #515bd4, #8134af, #dd2a7b, #f58529);
}

/* --- Navbar inferior --- */
.navbar {
  border-top: 1px solid #eee;
  background: #fff !important;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.05);
}

.navbar a {
  color: #555 !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #dd2a7b !important;
}

.social-links a {
  font-size: 1.4rem;
  color: #555;
  transition: color 0.3s ease, transform 0.2s ease;
}

.social-links a:hover {
  color: #d63384; /* rosa tipo Instagram */
  transform: scale(1.2);
}

.navbar.fixed-bottom {
  height: 60px;
}

.navbar .nav-link {
  font-size: 1.5rem;   /* tamaño de íconos */
  color: #666;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-link.active {
  color: #d63384;      /* destacado */
}

.navbar .nav-link:hover {
  color: #000;
  transform: scale(1.2);
}

/* Contacto */

.contact-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.contact-card i {
  flex-shrink: 0;
}

.contact-card span {
  font-size: 0.95rem;
  line-height: 1.2rem;
  text-align: left;
}

/* Compartir */

.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.share-box {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  width: 280px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.share-buttons {
  display: flex;
  justify-content: space-around;
  margin: 15px 0;
}

.share-buttons a {
  font-size: 26px;
  color: #555;
  transition: 0.3s;
}

.share-buttons a:hover {
  transform: scale(1.2);
}

#share-whatsapp { color: #25D366; }
#share-facebook { color: #1877F2; }
#share-x { color: #000; }
#share-copy { color: #6c757d; }
#share-more { color: #0d6efd; }

/* ============================= */
/* ====== VISTA DESKTOP ======= */
/* ============================= */

@media (min-width: 992px) {

  /* Quitamos comportamiento fijo superior */
  .scroll-menu.fixed-top,
  .scroll-menu.fixed-top-2 {
    position: static !important;
  }

  /* Creamos layout lateral */
  body {
    background: #f8f9fa;
  }

  /* Envolvemos visualmente el contenido */
  .container.mt-5 {
    margin-left: 280px;
    padding-top: 30px;
  }

  /* Sidebar contenedora */
  .scroll-menu.bg-light {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    flex-direction: column;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #eaeaea;
    z-index: 999;
  }

  .scroll-menu.bg-white {
    position: fixed;
    left: 0;
    top: 220px;
    width: 260px;
    height: calc(100vh - 220px);
    flex-direction: column;
    background: #fafafa;
    overflow-y: auto;
  }

  /* Rubros vertical */
  .scroll-menu .item {
    width: 100%;
    text-align: left;
  }

  .scroll-menu .item-rub a {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px;
  }

  .scroll-menu .item-rub img {
    width: 40px;
    height: 40px;
  }

  .scroll-menu .item-rub div {
    margin-left: 10px;
    font-size: 0.9rem;
  }

  /* Subrubros estilo lista */
  .item-sub a {
    display: block;
    width: 100%;
  }
}
/* ====== LAYOUT DESKTOP: RUBROS + SUBRUBROS LATERALES ====== */
@media (min-width: 992px) {

  .layout-desktop {
    max-width: 1200px;
    margin: 40px auto 80px auto;
    display: flex;
    gap: 24px;
  }

  .sidebar-categorias {
    width: 260px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
    padding: 16px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    height: fit-content;
    position: sticky;
    top: 80px;
  }

  .sidebar-categorias h6 {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .lista-rubros a {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 999px;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    margin-bottom: 6px;
    transition: all 0.2s ease;
  }

  .lista-rubros a img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 8px;
    object-fit: cover;
  }

  .lista-rubros a:hover {
    background: #f8bbd0;
    color: #222;
  }

  .lista-rubros a.active {
    background: #d63384;
    color: #fff;
  }

  .lista-subrubros a,
  .lista-subrubros span.disabled {
    display: block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    margin-bottom: 4px;
    text-decoration: none;
  }

  .lista-subrubros a {
    color: #555;
    background: #f5f5f5;
    transition: all 0.2s;
  }

  .lista-subrubros a:hover {
    background: #f8bbd0;
    color: #222;
  }

  .lista-subrubros a.active {
    background: #d63384;
    color: #fff;
    font-weight: 600;
  }

  .lista-subrubros span.disabled {
    color: #bbb;
    background: #fafafa;
    font-style: italic;
  }

  .contenido-desktop {
    flex: 1;
  }
}
/* ====== MENÚ INFERIOR: TEXTO ARRIBA SOLO EN DESKTOP ====== */
@media (min-width: 992px) {

  .navbar.fixed-bottom {
    height: 70px;
  }

  .navbar.fixed-bottom .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
  }

  .navbar.fixed-bottom .nav-link i {
    font-size: 1.4rem;
    line-height: 1;
  }

  .navbar.fixed-bottom .nav-link::before {
    display: block;
    margin-bottom: 2px;
  }

  /* 1º link: inicio */
  .navbar.fixed-bottom .nav-link:nth-of-type(2)::before {
    content: "Inicio";
  }

  /* 2º link: contacto */
  .navbar.fixed-bottom .nav-link:nth-of-type(3)::before {
    content: "Contacto";
  }

  /* 3º link: ciudad */
  .navbar.fixed-bottom .nav-link:nth-of-type(4)::before {
    content: "Ciudad";
  }
}
/* ===== MENÚ ARRIBA SOLO EN DESKTOP ===== */
@media (min-width: 992px){

  /* Mover navbar de abajo hacia arriba */
  .navbar.fixed-bottom {
    top: 0;
    bottom: auto;
    position: fixed;
    border-top: none;
    border-bottom: 1px solid #eee;
    height: 70px;
    z-index: 1000;
  }

  /* Espacio para que el contenido no quede debajo */
  body {
    padding-top: 50px !important;
    padding-bottom: 0 !important;
  }
}
@media (min-width: 992px){

  .navbar.fixed-bottom .nav-link {
    flex-direction: row;
    gap: 6px;
    font-size: 0.9rem;
  }

  .navbar.fixed-bottom .nav-link::before {
    margin: 0 4px 0 0;
  }

  .navbar.fixed-bottom .nav-link i {
    font-size: 1rem;
  }
}
/* ===== FIX categorías desktop que se pierden ===== */
@media (min-width: 992px) {

  .layout-desktop {
    display: flex;
    align-items: flex-start; /* IMPORTANTÍSIMO */
  }

  .sidebar-categorias {
    position: sticky;
    top: 90px; /* debajo del menú superior */
    height: calc(100vh - 110px);
    overflow-y: auto;
  }

  .contenido-desktop {
    flex: 1;
  }

}
