/* app.css — revisión: sin verde, cian más oscuro, header claro, logo visible */

:root{
  /* Dark base (fondo) */
  --bg:#0b0f18;

  /* Header claro premium (aunque el modo sea oscuro) */
  --headerBg:#ffffff;
  --headerText:#0b1220;
  --headerMuted:#52607c;
  --headerLine:rgba(16,24,40,.10);

  /* Panels */
  --panel:#101827;
  --panel2:#0f172a;

  --cardA: rgba(255,255,255,.04);
  --cardB: rgba(255,255,255,.03);

  --text:#e8eefc;
  --muted:#9aa6c6;
  --line:rgba(255,255,255,.10);

  /* Marca (pleno) */
  --brand:#0ea5a2;   /* cian más oscurito */
  --accent:#ff2d86;  /* magenta */

  --shadow: 0 16px 44px rgba(0,0,0,.45);

  --radius: 18px;
  --radius2: 26px;
  --max: 1140px;

  --chipBg: rgba(255,255,255,.04);
  --searchBg: rgba(255,255,255,.03);

  --btnBg: rgba(255,255,255,.05);
  --btnBgHover: rgba(255,255,255,.07);
  --kbd: rgba(255,255,255,.16);

  /* Botones: texto blanco SIEMPRE */
  --btnText:#ffffff;
}

/* Light mode */
[data-theme="light"]{
  --bg:#f6f8ff;

  /* Header claro (igual) */
  --headerBg:#ffffff;
  --headerText:#0b1220;
  --headerMuted:#52607c;
  --headerLine:rgba(16,24,40,.10);

  --panel:#ffffff;
  --panel2:#fbfcff;

  --cardA: rgba(16,24,40,.04);
  --cardB: rgba(16,24,40,.03);

  --text:#0b1220;
  --muted:#56627a;
  --line:rgba(16,24,40,.12);

  --chipBg: rgba(16,24,40,.04);
  --searchBg: rgba(16,24,40,.035);

  --btnBg: rgba(16,24,40,.05);
  --btnBgHover: rgba(16,24,40,.07);
  --kbd: rgba(16,24,40,.18);

  --btnText:#ffffff;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color:var(--text);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }
.wrap{ max-width:var(--max); margin:0 auto; padding:22px 16px 80px; }

/* Topbar (CLARO) */
.topbar{
  position:sticky; top:0; z-index:40;
  background: var(--headerBg);
  border-bottom:1px solid var(--headerLine);
}
.topbar .inner{
  max-width:var(--max); margin:0 auto; padding:14px 16px;
  display:flex; gap:12px; align-items:center; justify-content:space-between;
}

.brand{ display:flex; align-items:center; gap:10px; min-width: 240px; }
.brand h1{
  margin:0;
  font-size:16px;
  line-height:1.05;
  letter-spacing:.15px;
  font-weight:600;
  color: var(--headerText);
}
.brand small{
  display:block;
  color: var(--headerMuted);
  font-weight:600;
  font-size:11px;
  margin-top:3px;
  letter-spacing:.35px;
  text-transform:uppercase;
}

/* Logo: ahora se VE (imagen real si existe) */
.logo{
  width:38px; height:38px; border-radius:12px;
  background: var(--brand);
  box-shadow: 0 10px 22px rgba(16,24,40,.18);
  position:relative;
  overflow:hidden;
  flex:0 0 auto;
}
.logo img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}
.logo.fallback:after{
  content:"$";
  position:absolute; inset:0;
  display:grid; place-items:center;
  font-weight:800;
  color:#ffffff;
  font-size:18px;
}

.actions{ display:flex; gap:10px; align-items:center; }

/* Botones */
.btn{
  border:1px solid rgba(16,24,40,.14);
  background: rgba(16,24,40,.04);
  color: var(--headerText);
  border-radius:14px;
  padding:10px 12px;
  font-weight:600;
  font-size:12px;
  letter-spacing:.25px;
  display:inline-flex; align-items:center; gap:8px;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}
.btn:hover{ background: rgba(16,24,40,.06); transform: translateY(-1px); }

.btn.primary{
  background: var(--brand);
  border-color: rgba(14,165,162,.45);
  color: var(--btnText);
}
.btn.accent{
  background: var(--accent);
  border-color: rgba(255,45,134,.45);
  color: var(--btnText);
}
.btn.kbd{
  background: transparent;
  border-color: rgba(16,24,40,.20);
  color: var(--headerText);
}

/* Hero */
.hero{
  margin-top:18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:16px;
  align-items:stretch;
}
@media (max-width: 980px){
  .hero{ grid-template-columns:1fr; }
  .brand{ min-width:auto; }
}

/* Cards */
.card{
  background: rgba(255,255,255,.94);
  border:1px solid rgba(16,24,40,.10);
  border-radius: var(--radius2);
  box-shadow: 0 16px 44px rgba(16,24,40,.12);
  color:#0b1220;
}
.heroMain{ padding:18px; position:relative; overflow:hidden; }

.heroTitle{
  margin:0 0 10px;
  font-size:28px;
  letter-spacing:-.6px;
  line-height:1.1;
  font-weight:600;
}
.heroTitle span{
  color: var(--accent);
  font-weight:700;
}

.heroP{
  margin:0 0 14px;
  color:#52607c;
  font-weight:400;
  line-height:1.45;
  max-width: 60ch;
}

.heroBadges{ display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 0; }
.badge{
  border:1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.03);
  border-radius:999px;
  padding:8px 10px;
  font-size:12px;
  font-weight:600;
  display:flex; gap:8px; align-items:center;
  color:#0b1220;
}
.dot{ width:8px; height:8px; border-radius:999px; background:var(--brand); }
.dot.pink{ background:var(--accent); }
/* sin verde */

.heroCtas{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; }

.heroSide{ padding:18px; display:flex; flex-direction:column; gap:12px; }

.search{
  display:flex; gap:10px; align-items:center;
  padding:12px; border-radius:16px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.03);
}
.search input{
  flex:1;
  background:transparent;
  border:none;
  outline:none;
  color:#0b1220;
  font-weight:400;
  font-size:13px;
}

.pill{ display:flex; gap:8px; flex-wrap:wrap; }

.chip{
  border:1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.03);
  padding:8px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:#52607c;
  cursor:pointer;
}
.chip.active{
  color:#ffffff;
  background: var(--brand);
  border-color: rgba(14,165,162,.45);
}

.miniStats{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:auto;
}
.stat{
  border:1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.03);
  border-radius:16px;
  padding:12px;
}
.stat b{ display:block; font-size:16px; letter-spacing:-.4px; font-weight:700; color:#0b1220; }
.stat span{ color:#52607c; font-weight:500; font-size:12px; }

/* Section + grid */
.section{
  margin-top:18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:12px;
  color: rgba(234,240,255,.85);
}
.section h2{
  margin:0;
  font-size:14px;
  letter-spacing:.35px;
  text-transform:uppercase;
  font-weight:600;
}
.section .right{ display:flex; gap:10px; align-items:center; }

.select{
  border:1px solid rgba(16,24,40,.12);
  background: rgba(255,255,255,.92);
  color:#0b1220;
  border-radius:14px;
  padding:10px 12px;
  font-weight:600;
  font-size:12px;
  outline:none;
}

/* Oferta cards */
.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:12px;
}
@media (max-width: 1050px){ .grid{ grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px){ .grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .grid{ grid-template-columns: 1fr; } }

.offer{
  overflow:hidden;
  border-radius: var(--radius);
  border:1px solid rgba(16,24,40,.10);
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 44px rgba(16,24,40,.10);
  cursor:pointer;
  transition: transform .14s ease, border-color .14s ease;
  color:#0b1220;
}
.offer:hover{ transform: translateY(-2px); border-color: rgba(16,24,40,.18); }

.thumb{
  height:150px;
  background: rgba(16,24,40,.04);
  border-bottom:1px solid rgba(16,24,40,.10);
  position:relative;
}

.tag{
  position:absolute; left:12px; top:12px;
  padding:7px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.35px;
  border:1px solid rgba(255,255,255,.10);
  color:#ffffff;
}
.tag.hot{ background: var(--accent); border-color: rgba(255,45,134,.45); }
.tag.new{ background: var(--brand); border-color: rgba(14,165,162,.45); }
.tag.local{ background: rgba(16,24,40,.75); } /* reemplazo del verde */

.offerBody{ padding:12px; }

.title{
  margin:0 0 10px;
  font-size:13px;
  font-weight:600;
  letter-spacing:-.2px;
  line-height:1.2;
  min-height: 32px;
}

.meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.loc{
  color:#52607c;
  font-weight:500;
  font-size:11px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  max-width: 60%;
}

.savings{
  color:#ffffff;
  background: var(--brand); /* sin verde */
  border-radius:999px;
  padding:6px 8px;
  font-weight:700;
  font-size:11px;
  letter-spacing:.2px;
}

.prices{
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(16,24,40,.10);
  background: rgba(16,24,40,.03);
}
.old{
  color: rgba(11,18,32,.55);
  font-weight:500;
  font-size:11px;
  text-decoration:line-through;
}
.newp{
  font-weight:700;
  font-size:14px;
  letter-spacing:-.4px;
}
.newp b{ color: var(--accent); }

/* Toast */
.toast{
  position:fixed; left:16px; bottom:16px; z-index:120;
  background: rgba(16,24,40,.92);
  border:1px solid rgba(255,255,255,.10);
  color:#ffffff;
  border-radius:16px;
  padding:12px 14px;
  font-weight:600;
  font-size:12px;
  display:none;
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
}