/* ============================================================
   Huejutla.Net — Prototipo v4
   Estilo buscador: foto de fondo, logo centrado, search bar
   ============================================================ */

:root {
  --ambar:       #f5a623;
  --ambar-claro: #ffc857;
  --verde-oscuro: #0d3d27;
  --blanco:      #ffffff;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  overflow: hidden;
}

/* ── Fondo ───────────────────────────────────────────────── */

.page {
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background-image: url('../../images/huejutla-iglesia.jpg');
  background-size: cover;
  background-position: center center;
  display: flex;
  flex-direction: column;
  position: relative;
}

.page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(1px);
}

/* ── Layout ──────────────────────────────────────────────── */

.page-top {
  position: relative;
  z-index: 10;
  padding: 1.4rem 1.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.page-center {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 1rem 3rem;
}

.page-bottom {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Nav links (esquina superior derecha) ────────────────── */

.nav-link {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--blanco);
  background: rgba(255,255,255,0.1);
}

/* ── Logo ────────────────────────────────────────────────── */

.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  color: var(--blanco);
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 0.35rem;
  text-align: center;
  user-select: none;
}

.logo span { color: var(--ambar); }

.logo-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 2.25rem;
}

/* ── Barra de búsqueda ───────────────────────────────────── */

.search-wrap {
  width: 100%;
  max-width: 580px;
  position: relative;
}

.search-bar {
  width: 100%;
  padding: 16px 56px 16px 22px;
  font-size: 1rem;
  font-family: inherit;
  border: none;
  border-radius: 100px;
  outline: none;
  background: rgba(255,255,255,0.96);
  color: #1a1a1a;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: box-shadow 0.2s, background 0.2s;
}

.search-bar::placeholder {
  color: #9ca3af;
}

.search-bar:focus {
  background: var(--blanco);
  box-shadow: 0 6px 32px rgba(0,0,0,0.45);
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--ambar);
  color: var(--verde-oscuro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
  background: var(--ambar-claro);
  transform: translateY(-50%) scale(1.05);
}

/* ── Chips de categorías rápidas ─────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
  max-width: 580px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.chip:hover {
  background: rgba(255,255,255,0.22);
  color: var(--blanco);
  border-color: rgba(255,255,255,0.4);
}

.chip i { font-size: 0.75rem; }

/* ── Footer mínimo ───────────────────────────────────────── */

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-brand span { color: rgba(245,166,35,0.5); }

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-link {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: rgba(255,255,255,0.7); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 767px) {
  html, body { overflow: auto; }
  .page { height: 100svh; }
  .logo { letter-spacing: -2px; }
  .page-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
