:root {
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #121212;
  background-color: #f7f5f1;
  line-height: 1.5;
  --bg: #f7f5f1;
  --panel: #ffffff;
  --stroke: #e6e2da;
  --accent: #f97316;
  --accent-dark: #d45d05;
  --text-light: #6b655c;
  --success: #16a34a;
  --shadow: 0 15px 35px rgba(14, 12, 10, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #1a1a1a;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

header.hero {
  background: radial-gradient(circle at top right, #ffd5a3, #f97316 65%, #9a3412 100%);
  color: #fff7ec;
  padding: 2.5rem clamp(1.5rem, 5vw, 5rem) 4rem;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  padding: 0.65rem 1rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero p {
  max-width: 55ch;
}

.hero-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.hero-stats span {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f97316;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.small {
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
}

.btn.primary {
  background: #fff;
  color: #c2410c;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn.primary:hover {
  transform: translateY(-2px);
}

.btn.disabled,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.btn.ghost {
  border: 1px solid #c2410c;
  color: #c2410c;
  background: transparent;
}

main {
  padding: 3rem clamp(1.5rem, 4vw, 4.25rem) 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

section {
  width: 100%;
}

.filtros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filtros label,
.form-group label {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font: inherit;
  background: #fdfcf9;
}

textarea {
  resize: vertical;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.locales-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.local-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.local-card:hover .card-media img {
  transform: scale(1.04);
}

.price-chip {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.card-head h3 {
  margin: 0.1rem 0;
}

.card-head .type {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  font-weight: 600;
}

.card-head .location {
  font-size: 0.95rem;
  color: var(--text-light);
}

.rating {
  text-align: right;
  font-weight: 700;
}

.rating span {
  color: #facc15;
}

.tags {
  color: var(--text-light);
  font-size: 0.9rem;
}

.menu {
  background: #f7f3ec;
  padding: 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
}

.menu strong {
  display: block;
  margin-bottom: 0.25rem;
}

.card-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.comments {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.comment {
  background: #fdf8f3;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  border: 1px solid #f5d7b0;
}

.comment strong {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comment small {
  color: var(--text-light);
}

.comment-form h4 {
  margin: 0;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.form-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.cercanos {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.manual-location {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.distance-location-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}

.todos-distance {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.distance-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.distance-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.distance-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  background: #fff;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.distance-card .distance-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.distance-card h4 {
  margin: 0;
}

.distance-chip {
  font-weight: 700;
  color: #166534;
}

.distance-card small {
  color: var(--text-light);
}

.distance-card .distance-tags {
  font-size: 0.85rem;
  color: var(--text-light);
}

.distance-card .distance-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nearby-summary {
  font-weight: 600;
  color: #166534;
}

.nearby-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.nearby-card {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 1rem;
  background: #fefcf9;
}

.nearby-card h4 {
  margin: 0;
}

.nearby-card .distance {
  color: #166534;
  font-weight: 700;
}

.registro-section form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.small-print {
  font-size: 0.8rem;
  color: var(--text-light);
}

#autoFeedStatus {
  margin-top: -0.5rem;
}

footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-light);
}

@media (max-width: 720px) {
  header.hero {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .top-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .location-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .manual-location {
    flex-direction: column;
    align-items: stretch;
  }

  .card-head {
    flex-direction: column;
  }

  .distance-location-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
