/* ============================================================
   TuriGuaica — Estilos principales
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Inter:wght@400;500;600&display=swap');

:root {
  --verde:       #1B4332;
  --verde-mid:   #2D6A4F;
  --verde-light: #D8F3DC;
  --dorado:      #C9A84C;
  --dorado-light:#FFF8E7;
  --crema:       #F9F6EF;
  --carbon:      #1A1A1A;
  --gris:        #6B7280;
  --borde:       #E5E0D8;
  --radio:       12px;
  --sombra:      0 2px 12px rgba(0,0,0,0.08);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--crema);
  color: var(--carbon);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
  background: var(--verde);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-brand span { color: var(--dorado); }
.navbar-links { display: flex; gap: 1.25rem; align-items: center; }
.navbar-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.navbar-links a:hover { color: var(--dorado); }
.btn-registro {
  background: var(--dorado);
  color: #fff !important;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* ── HERO ── */
.hero {
  background: var(--verde);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,
    rgba(201,168,76,.04) 0, rgba(201,168,76,.04) 1px,
    transparent 1px, transparent 22px);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--dorado);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: .75rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .5rem;
}
.hero-title em { color: var(--dorado); font-style: normal; }
.hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  margin-bottom: 2rem;
}

/* ── BUSCADOR ── */
.search-wrap {
  max-width: 540px;
  margin: 0 auto 1.5rem;
  display: flex;
  background: #fff;
  border-radius: 40px;
  padding: 5px 5px 5px 18px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  background: transparent;
  color: var(--carbon);
}
.search-wrap button {
  background: var(--dorado);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* ── FILTROS ── */
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-pill {
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.85);
  background: transparent;
  transition: all .2s;
  font-family: 'Inter', sans-serif;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #fff;
}

/* ── MAIN ── */
.main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem; }

/* ── STATS ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 2rem;
}
.stat-card {
  background: #fff;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  padding: 1.1rem;
  text-align: center;
  box-shadow: var(--sombra);
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--verde);
  font-weight: 600;
  line-height: 1;
}
.stat-label { font-size: 11px; color: var(--gris); margin-top: 4px; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--verde-mid);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--verde-light);
}

/* ── GRID DE CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin-bottom: 2.5rem;
}

.place-card {
  background: #fff;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--sombra);
}
.place-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  position: relative;
}
.card-parish-badge {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  color: #fff;
}
.card-verified {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 14px;
}
.card-body { padding: 12px 14px 14px; }
.card-cat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--carbon);
  margin-bottom: 5px;
  line-height: 1.3;
}
.card-desc {
  font-size: 12px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-stars { color: var(--dorado); font-size: 12px; }
.card-price { font-size: 12px; font-weight: 500; color: var(--verde-mid); }
.no-results { color: var(--gris); font-size: 14px; grid-column: 1/-1; padding: 2rem; text-align: center; }

/* ── MAPA PLACEHOLDER ── */
.map-section {
  background: var(--verde-light);
  border-radius: var(--radio);
  border: 1px solid #b7e4c7;
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.map-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--verde);
  margin: .75rem 0 .5rem;
}
.map-section p { font-size: 13px; color: var(--verde-mid); margin-bottom: 1.25rem; }
.map-pins { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.map-pin { font-size: 11px; padding: 4px 12px; border-radius: 12px; background: #fff; border: 1px solid #b7e4c7; color: var(--verde-mid); font-weight: 500; }

/* ── BANNER REGISTRO ── */
.register-banner {
  background: var(--verde);
  border-radius: var(--radio);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.register-banner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: #fff;
  margin-bottom: 4px;
}
.register-banner p { font-size: 13px; color: rgba(255,255,255,.65); }
.btn-dorado {
  background: var(--dorado);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--borde);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #999;
  line-height: 1;
}
.modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.modal-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 8px;
}
.modal-info { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #444; margin-bottom: 8px; }
.modal-icon { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.modal-actions { display: flex; gap: 8px; margin-top: 1.25rem; }
.modal-actions a, .modal-actions button {
  flex: 1;
  padding: 9px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border: 1px solid var(--borde);
  background: #fff;
  color: var(--carbon);
  text-align: center;
}
.modal-actions .primary {
  background: var(--verde);
  color: #fff;
  border-color: var(--verde);
}
.horarios-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: .5rem; }
.hora-item { text-align: center; font-size: 10px; }
.hora-dia { font-weight: 600; color: var(--gris); margin-bottom: 2px; }
.hora-val { color: var(--verde-mid); }
.hora-cerrado { color: #ccc; }

/* ── FOOTER ── */
.footer {
  background: var(--verde);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.5rem;
  font-size: 12px;
  margin-top: 2rem;
}
.footer strong { color: var(--dorado); }

/* ── LOADER ── */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;
  grid-column: 1/-1;
}
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--verde-light);
  border-top-color: var(--verde);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .stats-row { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .stat-num { font-size: 22px; }
  .register-banner { flex-direction: column; text-align: center; }
  .navbar-links { display: none; }
}
