/* Restaurants Slider (sin React) */
:root {
  --rs-gap: 24px;
  --rs-item-minw: 260px;
  --rs-item-maxw: 320px;
  --rs-card-radius: 14px;
  --rs-card-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --rs-transition: 500ms ease;
  --rs-accent: #ea580c; /* naranja */
  --rs-green: #22c55e;
  --rs-red: #ef4444;
}

.restaurants-slider-section {
  padding: 48px 0;
  background: #ffffff;
}
.restaurants-slider-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.rs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.rs-title h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #1f2937;
}
.rs-title p {
  margin: 4px 0 0;
  color: #4b5563;
  font-weight: 500;
}
.rs-location {
  background: #f3f4f6;
  color: #374151;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.rs-wrapper {
  position: relative;
}
.rs-viewport {
  overflow: hidden;
  border-radius: 16px;
}
.rs-track {
  display: flex;
  gap: var(--rs-gap);
  will-change: transform;
  transition: transform var(--rs-transition);
  padding: 8px;
}

.rs-item {
  min-width: 24%;
  flex: 0 0 24%;
  max-width: 24%;
}
@media (max-width: 1024px) {
  .rs-item {
    min-width: 33.333%;
    flex-basis: 33.333%;
    max-width: 33.333%;
  }
}
@media (max-width: 768px) {
  .rs-item {
    min-width: 50%;
    flex-basis: 50%;
    max-width: 50%;
  }
}
@media (max-width: 520px) {
  .rs-item {
    min-width: 85%;
    flex-basis: 85%;
    max-width: 85%;
  }
}

.rs-card {
  background: #fff;
  border-radius: var(--rs-card-radius);
  box-shadow: var(--rs-card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 380px; /* Alto fijo para unificar el tamaño */
}
.rs-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.rs-emoji {
  font-size: 56px;
  text-align: center;
  background: #f3f4f6;
  height: 150px; /* altura consistente */
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-emoji.has-img {
  padding: 0;
  height: 150px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.rs-emoji.has-img img {
  display: none;
}
.rs-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.rs-name {
  margin: 0;
  font-weight: 800;
  color: #111827;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  padding: 4px 8px;
  border-radius: 10px;
  font-weight: 700;
  color: #374151;
}
.rs-desc {
  color: #4b5563;
  font-size: 14px;
  margin: 8px 0 12px;
  /* limitar líneas para mantener alto parejo */
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rs-meta {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  margin-bottom: 12px;
}
.rs-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.rs-actions {
  display: flex;
  gap: 8px;
  margin-top: auto; /* empuja acciones al fondo para alto consistente */
}
.rs-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: filter 0.2s ease;
}
.rs-btn:focus {
  outline: 2px solid #111827;
  outline-offset: 2px;
}
.rs-btn.whatsapp {
  background: var(--rs-green);
}
.rs-btn.phone {
  background: var(--rs-red);
}
.rs-btn:hover {
  filter: brightness(0.95);
}

/* Nav */
.rs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #ffffffd9;
  backdrop-filter: blur(6px);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}
.rs-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.rs-prev {
  left: -8px;
}
.rs-next {
  right: -8px;
}

/* Dots */
.rs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.rs-dot {
  width: 24px;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.rs-dot.active {
  width: 40px;
  background: var(--rs-accent);
}

/* Ajustes responsivos del alto fijo */
@media (max-width: 991px) {
  .rs-card {
    height: 360px;
  }
  .rs-emoji,
  .rs-emoji.has-img {
    height: 140px;
  }
}
@media (max-width: 767px) {
  .rs-card {
    height: 340px;
  }
  .rs-emoji,
  .rs-emoji.has-img {
    height: 130px;
  }
}
@media (max-width: 575px) {
  .rs-card {
    height: 320px;
  }
  .rs-emoji,
  .rs-emoji.has-img {
    height: 120px;
  }
}

/* Status/hint */
.rs-status {
  text-align: center;
  font-weight: 700;
  color: #059669;
  margin-top: 8px;
}
.rs-hint {
  text-align: center;
  color: #6b7280;
  font-size: 13px;
  margin-top: 4px;
}
