/* ═══════════════════════════════════════════════
   Guía FYO — index.css (Etapa 2)
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --orange: #E8650A;
  --yellow: #F5A623;
  --gold: #FFD166;
  --teal: #1DBFA3;
  --navy: #0F1923;
  --cream: #FFF8F0;
  --pink: #FF6B9D;
  --purple: #9B59B6;
  --green: #27AE60;
  --text: #333;
  --muted: #5a7a8a;
  --border: #e8e0d8;
  --radius: 16px;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════ NAV ══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 32px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-paw { font-size: 24px; }
.logo-text {
  font-family: 'Fredoka One', cursive;
  font-size: 22px; color: var(--gold); display: block;
}
.nav-logo small { color: var(--muted); font-size: 11px; font-weight: 600; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link {
  color: #8a9ab0; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--gold); }
.nav-city-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #ccc; padding: 7px 16px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.nav-city-btn:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: var(--teal); }
/* login-btn, user-btn, user-avatar, user-menu → auth.css */
.nav-right { position: relative; }

/* ══════════════ HERO ══════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 60px;
  background: var(--navy); overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(29,191,163,0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(232,101,10,0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(245,166,35,0.08) 0%, transparent 50%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 720px; width: 100%;
}
.hero-tag {
  display: inline-block;
  background: rgba(29,191,163,0.15); border: 1px solid rgba(29,191,163,0.35);
  color: var(--teal); padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 28px;
  animation: fadeDown 0.6s ease both;
}
.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.05; color: white; margin-bottom: 18px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.c1 { color: var(--orange); }
.c2 { color: var(--gold); }
.hero-sub {
  color: #8fa8bc; font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.7; margin-bottom: 36px;
  animation: fadeDown 0.6s 0.2s ease both;
}

/* ── Location Box ── */
.location-box {
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 22px; padding: 28px;
  max-width: 520px; margin: 0 auto 36px;
  backdrop-filter: blur(10px);
  animation: fadeDown 0.6s 0.3s ease both;
}
.loc-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold); margin-bottom: 16px;
}
.loc-auto-btn {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--teal); border: none; color: white;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.loc-auto-btn:hover { background: #17a88e; transform: scale(1.01); }
.loc-auto-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.loc-divider {
  text-align: center; margin: 16px 0; position: relative;
  color: #4a5f72; font-size: 12px; font-weight: 700;
}
.loc-divider::before, .loc-divider::after {
  content: ''; position: absolute; top: 50%;
  width: 38%; height: 1px; background: rgba(255,255,255,0.1);
}
.loc-divider::before { left: 0; }
.loc-divider::after { right: 0; }
.loc-selects {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.loc-select {
  flex: 1; padding: 12px 14px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.07); color: white;
  font-family: 'Nunito', sans-serif; font-size: 0.9rem; font-weight: 600;
  outline: none; cursor: pointer; transition: border-color 0.2s;
}
.loc-select option { background: #1a2535; color: white; }
.loc-select:focus { border-color: var(--teal); }
.loc-select:disabled { opacity: 0.5; cursor: not-allowed; }
.loc-submit {
  width: 100%; padding: 14px; border-radius: 12px;
  background: var(--orange); border: none; color: white;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 1rem;
  cursor: pointer; transition: transform 0.2s, background 0.2s;
}
.loc-submit:hover { background: var(--yellow); color: var(--navy); transform: scale(1.01); }
.loc-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Hero Stats ── */
.hero-stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.5s ease both;
}
.stat-pill {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  color: #5a7a8a; padding: 8px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
}
.stat-pill strong { color: white; }

/* ══════════════ SECTIONS ══════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy); margin-bottom: 8px;
}
.section-sub { font-size: 1rem; color: #888; margin-bottom: 32px; line-height: 1.6; }

/* ══════════════ RUBROS ══════════════ */
.rubros-section { padding: 100px 0 56px; background: var(--cream); }
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.rubro-card {
  background: white; border-radius: 20px; padding: 24px 14px;
  text-align: center; cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-decoration: none; display: block; color: var(--navy);
}
.rubro-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(29,191,163,0.15);
}
.rubro-emoji { font-size: 2.2rem; margin-bottom: 10px; }
.rubro-name { font-size: 13px; font-weight: 800; color: var(--navy); }
.rubro-count { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ══════════════ RESULTS ══════════════ */
.results-section { padding: 100px 0 48px; background: var(--cream); }
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px; flex-wrap: wrap; gap: 12px;
}
.results-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem; color: var(--navy);
}
.back-btn {
  background: var(--navy); color: white; border: none;
  padding: 8px 20px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px;
  cursor: pointer; transition: opacity 0.2s;
}
.back-btn:hover { opacity: 0.85; }
.results-footer { text-align: center; margin-top: 40px; }
.back-btn-big {
  background: var(--navy); color: white; border: none;
  padding: 14px 32px; border-radius: 50px;
  font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 0.95rem;
  cursor: pointer; transition: transform 0.2s;
}
.back-btn-big:hover { transform: scale(1.03); }

/* ── Cards Grid ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Local Card ── */
.local-card {
  background: white; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: all 0.25s; cursor: pointer; position: relative;
  text-decoration: none; display: block; color: var(--navy);
}
.local-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  border: none; color: rgba(255,255,255,0.7); font-size: 18px;
  cursor: pointer; transition: all 0.2s; display: flex;
  align-items: center; justify-content: center;
}
.fav-btn:hover { background: rgba(0,0,0,0.6); color: white; }
.fav-btn.fav-active { background: #ff4757; color: white; }
.card-foto {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: #f0f0f0;
}
.card-logo-wrap {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  background: white;
  padding: 20px;
}
.card-logo {
  max-width: 100%; max-height: 140px; object-fit: contain;
}
.card-foto-placeholder {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #f5f0ff, #e8f8f5);
}
.card-body { padding: 16px; }
.card-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge-plan {
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-gratis { background: #f0f0f0; color: #888; }
.badge-base { background: #e8f4fd; color: #2980b9; }
.badge-fyo { background: linear-gradient(135deg, var(--teal), var(--orange)); color: white; }
.sello-fyo {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy); font-size: 10px; font-weight: 900;
  padding: 3px 10px; border-radius: 50px; letter-spacing: 0.5px;
}
.card-name {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem; color: var(--navy); margin-bottom: 4px;
}
.card-type { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.card-loc { font-size: 13px; color: var(--muted); }
.card-footer {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px; flex-wrap: wrap;
}
.card-voucher {
  background: var(--orange); color: white;
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 50px;
}
.card-wsp {
  background: #25D366; color: white;
  font-size: 11px; font-weight: 800; padding: 4px 12px; border-radius: 50px;
  text-decoration: none;
}
.top-badge {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--navy); font-size: 10px; font-weight: 900;
  padding: 4px 12px; border-radius: 50px;
}

/* ══════════════ CTA ══════════════ */
.cta-section { padding: 64px 0; background: white; }
.cta-box {
  background: var(--navy); border-radius: 22px;
  padding: 48px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.cta-text h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem; color: white; margin-bottom: 10px;
}
.cta-text p { color: #7a8fa8; line-height: 1.6; max-width: 480px; }
.cta-btn {
  background: var(--orange); color: white;
  padding: 16px 32px; border-radius: 50px;
  font-weight: 800; font-size: 1rem; text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(232,101,10,0.35);
  transition: transform 0.2s, background 0.2s;
}
.cta-btn:hover { background: var(--yellow); color: var(--navy); transform: scale(1.04); }

/* ══════════════ FOOTER ══════════════ */
.footer {
  background: #060c12; padding: 24px 20px;
  text-align: center; color: #444; font-size: 13px;
}
.footer a { color: var(--gold); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-cta {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}
.footer-cta-text { color: #8899aa; font-weight: 700; font-size: 0.9rem; margin: 0; }
.footer-cta-btn {
  display: inline-block; padding: 10px 24px; border-radius: 50px;
  background: var(--orange, #E8650A); color: white !important;
  font-weight: 800; font-size: 0.88rem; text-decoration: none !important;
  transition: transform 0.2s, background 0.2s;
}
.footer-cta-btn:hover { background: var(--gold, #F5A623); color: #0F1923 !important; transform: scale(1.03); }

/* auth-overlay, auth-box, auth-tabs, auth-btn, etc. → auth.css */

/* ══════════════ PROFILE ══════════════ */
.profile-page {
  display: none; position: fixed; inset: 0;
  background: var(--cream); z-index: 300;
  overflow-y: auto;
}
.profile-page.active { display: block; }
.profile-hero {
  background: var(--navy); padding: 90px 20px 40px; text-align: center;
}
.profile-inner { max-width: 400px; margin: 0 auto; }
.profile-back {
  background: none; border: 1px solid rgba(255,255,255,0.2);
  color: #aaa; padding: 6px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  margin-bottom: 20px; transition: color 0.2s;
}
.profile-back:hover { color: white; border-color: rgba(255,255,255,0.4); }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--orange); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; margin: 0 auto 12px;
  border: 4px solid rgba(255,255,255,0.15);
}
.profile-hero h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem; color: white; margin-bottom: 4px;
}
.profile-hero p { color: #7a8fa8; font-size: 0.9rem; margin-bottom: 16px; }
.logout-btn {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  color: #aaa; padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.logout-btn:hover { color: white; }

/* ══════════════ COOKIE ══════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy); color: #ccc;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 16px 24px; z-index: 999;
  transform: translateY(100%); transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 14px; margin: 0; flex: 1; }
.cookie-banner a { color: var(--teal); }
.cookie-btns { display: flex; gap: 10px; }
.cookie-btns button {
  padding: 8px 18px; border-radius: 50px; border: 1px solid #555;
  background: transparent; color: #ccc; font-weight: 700; font-size: 13px;
  cursor: pointer; font-family: 'Nunito', sans-serif;
}
.cookie-accept {
  background: var(--teal) !important;
  color: var(--navy) !important;
  border-color: var(--teal) !important;
}

/* ══════════════ EMPTY STATE ══════════════ */
.empty-state { text-align: center; padding: 56px 24px; color: #888; }
.empty-state .es-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state p { font-size: 0.95rem; line-height: 1.6; }

/* ══════════════ ANIMATIONS ══════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 768px) {
  .nav { padding: 10px 16px; }
  .nav-link { display: none; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: 1fr; }
  .loc-selects { flex-direction: column; }
  .cta-box { flex-direction: column; text-align: center; padding: 32px 24px; }
  .results-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero { padding: 80px 16px 40px; }
  .location-box { padding: 20px; }
  .rubros-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
