/* RESET */
:root {
  --verde-main: #3fa096;
  --verde-soft: rgba(63, 160, 150, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
}
.cat-item-whatsapp{
    text-decoration:none;
    color:inherit;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.cat-item-whatsapp:hover{
    transform:translateY(-2px);
    transition:.2s ease;
}
/* ================= HERO ================= */
.hero {
  position: relative;
  padding-bottom: 30px;
  width: 100%;
  background-image: url('../../assets/img/volcan_express/comala_background.jpg');
  background-size: cover;
  background-position: center;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(63, 160, 150, 0.75);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 20px;
  margin: 0 auto;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 100px;
}

.tags {
  border: 2px solid orange;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
}

/* IMAGEN HERO */
.hero-img {
  text-align: center;
  margin: 10px 0;
}

.rapidosComoFuego {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 500px;
}

/* BUSCADOR */
.search-container {
  margin-top: 10px;
  width: 100%;
  position: relative;
}

.search-container input {
  width: 100%;
  padding: 14px 20px 14px 50px;
  border-radius: 30px;
  border: none;
  outline: none;
  background: #ffffff;
  color: var(--verde-main);
  font-size: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  color: var(--verde-main);
}

/* FILTROS */
/* FILTROS */
.filters {
  margin-top: 10px;

  display: flex;
  gap: 10px;

  width: 100%;
}

.filters select {
  flex: 1 1 0;
  min-width: 0;

  width: 50%;

  padding: 12px 15px;

  border-radius: 12px;
  border: none;
  outline: none;

  background: #fff;
  color: var(--verde-main);

  font-size: 16px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.1);

  appearance: none;

  /* 👇 evita que Android rompa todo */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ================= CONTENT ================= */
.content {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px 20px 0 0;
  margin-top: -20px;
}

.categories {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.cat-item.active {
  transform: scale(1.05);
  border: 2px solid orange;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

/* ================= CARDS ================= */
.card {
  display: flex;
  gap: 15px;
  align-items: center;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 8px 8px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 12px 12px 25px rgba(0,0,0,0.2);
}

.card:active {
  transform: scale(0.98);
}

.card-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.card-info {
  flex: 1;
}

.card-info h3 {
  margin: 0;
  font-size: 14px;
  color: var(--verde-main);
}

.card-info p {
  margin: 2px 0;
  font-size: 12px;
}

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-menu {
  background: #5bb1a8;
  color: #fff;
  border-radius: 15px;
  padding: 6px 12px;
}
.btn-vermas {
  text-decoration: none;
  text-align: center;

  background: #3fa096;
  color: #fff;

  border-radius: 15px;
  padding: 6px 12px;

  font-size: 15px;

  transition: all 0.2s ease;
}
.btn-menu:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.btn-vermas:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.btn-pedir:hover {
  transform: scale(1.05);
  opacity: 0.9;
}
.btn-pedir {
  background: orange;
  color: #fff;
  border-radius: 15px;
  padding: 6px 12px;
  text-decoration: none;
  text-align: center;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  border-radius: 12px;
  padding: 10px;
}

#menuViewer {
  width: 100%;
  height: 100%;
}

#menuViewer img,
#menuViewer iframe {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= DETALLE ================= */
.detalle-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
}

.detalle-card {
  display: grid;
  grid-template-columns: 1fr 2fr 180px;
  gap: 30px;
}

.detalle-left,
.detalle-right,
.detalle-actions {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.detalle-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.detalle-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ================= MAP ================= */
.map-container {
  max-width: 1100px;
  margin: 30px auto;
  border-radius: 15px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 400px;
}

/* ================= CARRUSEL ================= */
/* ================= RELACIONADOS ================= */

.relacionados-section {
  width: 100%;
  max-width: 1200px;

  margin: 40px auto;
  padding: 0 20px;
}

.relacionados-section h2 {
  margin-bottom: 15px;
  color: #333;
}

/* CONTENEDOR HORIZONTAL */
.relacionados-carousel {
  display: flex;
  gap: 15px;

  overflow-x: auto;
  overflow-y: hidden;

  padding-bottom: 10px;

  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* scrollbar */
.relacionados-carousel::-webkit-scrollbar {
  height: 6px;
}

.relacionados-carousel::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 20px;
}

/* CARD */
.rel-card {
  flex: 0 0 180px;

  background: #fff;
  border-radius: 15px;

  overflow: hidden;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0,0,0,0.12);

  transition: 0.2s ease;
}

.rel-card:hover {
  transform: translateY(-4px);
}

.rel-card img {
  width: 100%;
  height: 120px;

  object-fit: cover;
  display: block;
}

.rel-info {
  padding: 10px;
}

.rel-info h4 {
  margin: 0 0 5px;
  font-size: 14px;
  color: #333;
}

.rel-info p {
  margin: 0;
  font-size: 12px;
  color: #777;
}

/* MOBILE */
@media (max-width: 600px) {


  .filters select {
    width: 100%;
  }
  .rel-card {
    flex: 0 0 150px;
  }

  .rel-card img {
    height: 100px;
  }

  .rel-info h4 {
    font-size: 13px;
  }

  .rel-info p {
    font-size: 11px;
  }

}

/* ================= MOBILE ================= */
@media (max-width: 600px) {

  .card {
    display: grid;
    grid-template-columns: 90px 1fr;
    grid-template-rows: auto auto;
  }

  .card-actions {
    grid-column: 1 / 3;
    justify-content: flex-end;
    flex-direction: row;
  }

  .detalle-card {
    grid-template-columns: 1fr;
  }

  .detalle-actions {
    flex-direction: row;
    justify-content: center;
  }
  .btn-vermas {
    background: #3fa096;
    color: #fff;
    text-decoration: none;
  }
}

/* ================= DESKTOP ================= */
@media (min-width: 768px) {

  .hero-inner {
    max-width: 1200px;
  } 

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  .content {
    max-width: 1200px;
    margin: -40px auto 0 auto;
  }
}