:root{
  --bg:#07080c;
  --surface:#111218;
  --surface-2:#1a1c25;
  --text:#f5f7fb;
  --muted:#aab0be;
  --primary:#ff1f2d;
  --primary-2:#c00012;
  --accent:#ff4954;
  --border:#2a2d37;
  --shadow:0 18px 45px rgba(0,0,0,.35);
}

[data-theme="light"]{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-2:#f0f2f8;
  --text:#151823;
  --muted:#657086;
  --primary:#e31224;
  --primary-2:#ff3042;
  --accent:#ff3042;
  --border:#dfe3ee;
  --shadow:0 14px 36px rgba(17,24,35,.08);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}

body{
  min-height:100vh;
  padding-bottom:86px;
}

button,input,select,a{
  font:inherit;
}

a{
  text-decoration:none;
}

img{
  max-width:100%;
  display:block;
}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  min-height:56px;
  background:rgba(10,10,14,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}

[data-theme="light"] .topbar{
  background:rgba(255,255,255,.94);
}

.brand{
  display:flex;
  align-items:center;
  min-width:0;
  flex:1;
}

.brand-logo{
  height:32px;
  width:auto;
  max-width:220px;
  object-fit:contain;
  object-position:left center;
  display:block;
}

.top-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-shrink:0;
}

.install-button,
#refreshButton,
.card-read,
.notify-button{
  border:none;
  background:linear-gradient(135deg,var(--primary),var(--primary-2));
  color:#fff;
  border-radius:14px;
  padding:11px 15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:var(--shadow);
}

.ghost-button,
.favorite-button,
.close-button{
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  cursor:pointer;
}

.hero-link{
  border:1px solid rgba(255,255,255,.18);
  color:#fff;
  background:rgba(255,255,255,.08);
  border-radius:14px;
  padding:11px 15px;
  font-weight:700;
}

[data-theme="light"] .hero-link{
  border-color:#f3b6bc;
  background:#fff;
  color:var(--primary);
}

.install-button.hidden{
  display:none;
}

.app-shell{
  max-width:1140px;
  margin:0 auto;
  padding:16px;
}

/* ocultamos el hero grande */
.hero{
  display:grid;
  grid-template-columns:1.25fr 1fr;
  gap:18px;
  align-items:stretch;
  background:linear-gradient(135deg,#12070a,#24090d 55%, #47030b);
  color:#fff;
  padding:22px;
  border-radius:28px;
  box-shadow:var(--shadow);
  margin:20px 0 18px; /* 👈 AUMENTAMOS */
  border:1px solid rgba(255,60,72,.15);
  overflow:hidden;
  position:relative;
  z-index:1;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
}

.live-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  align-self:flex-start;
  background:rgba(255,35,50,.12);
  border:1px solid rgba(255,56,68,.25);
  padding:7px 12px;
  border-radius:999px;
  font-weight:700;
  margin-bottom:10px;
  color:#ff818b;
}

.hero h1{
  margin:0 0 10px;
  font-size:2rem;
  line-height:1.14;
  max-width:760px;
}

.hero p{
  margin:0;
  opacity:.96;
  max-width:700px;
  line-height:1.6;
  color:#f0dbe0;
}

.hero-buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.notify-status{
  margin-top:14px;
  font-size:.95rem;
  color:#ffb9bf;
}

.hero-brand-panel{
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  padding:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:220px;
  overflow:hidden;
}

.hero-splash{
  width:100%;
  height:auto;
  max-height:360px;
  object-fit:contain;
  object-position:center;
  border-radius:18px;
}

.ticker-wrap{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:12px;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  padding:14px 16px;
  box-shadow:var(--shadow);
  margin-bottom:14px;
}

.ticker-title{
  font-weight:800;
  color:var(--accent);
}

.ticker{
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.controls{
  display:grid;
  grid-template-columns:1.6fr 1fr;
  gap:12px;
  margin-bottom:12px;
}

.controls input,
.controls select{
  width:100%;
  padding:13px 14px;
  border-radius:16px;
  border:1px solid var(--border);
  background:var(--surface);
  color:var(--text);
}

.tabs{
  display:flex;
  gap:10px;
  margin:10px 0 6px;
  flex-wrap:wrap;
}

.tab{
  border:none;
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--border);
  padding:10px 14px;
  border-radius:999px;
  cursor:pointer;
  font-weight:700;
}

.tab.active{
  background:rgba(255,40,55,.12);
  color:#ff6a76;
  border-color:rgba(255,40,55,.2);
}

.status{
  color:var(--muted);
  margin:12px 2px 16px;
}

.articles{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:16px;
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
  display:flex;
  flex-direction:column;
  min-height:100%;
}

.card-image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  background:#1d1f29;
}

.card-content{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}

.card-topline{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}

.category-badge{
  align-self:flex-start;
  background:rgba(255,40,55,.1);
  color:#ff7882;
  padding:6px 10px;
  border-radius:999px;
  font-size:.83rem;
  font-weight:700;
}

.favorite-button.active{
  color:#ffd257;
}

.card-title{
  margin:0;
  font-size:1.08rem;
  line-height:1.35;
}

.card-excerpt{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.card-meta{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.card-date{
  font-size:.9rem;
  color:var(--muted);
}

.card-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.card-link{
  color:#ff6673;
  font-weight:700;
}

.empty-state,
.about-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  padding:22px;
  box-shadow:var(--shadow);
}

.about-logo{
  width:100%;
  max-width:420px;
  height:auto;
  object-fit:contain;
  object-position:left center;
  margin-bottom:10px;
}

.about-card ul{
  margin:10px 0 0 18px;
  color:var(--muted);
}

.view{
  display:none;
}

.view.active{
  display:block;
}

.modal.hidden{
  display:none;
}

.modal{
  position:fixed;
  inset:0;
  z-index:50;
  display:grid;
  place-items:center;
  padding:14px;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.7);
}

.modal-panel{
  position:relative;
  z-index:2;
  width:min(920px,100%);
  max-height:88vh;
  overflow:auto;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.close-button{
  position:sticky;
  top:14px;
  float:right;
  margin:14px;
}

.modal-content{
  padding:0 22px 28px;
}

.modal-hero-image{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  border-radius:18px;
  margin-top:8px;
}

.modal-title{
  margin:16px 0 6px;
  font-size:1.65rem;
  line-height:1.2;
}

.modal-meta{
  color:var(--muted);
  margin-bottom:16px;
}

.modal-body{
  line-height:1.7;
}

.modal-body img{
  max-width:100%;
  height:auto;
  border-radius:16px;
}

.share-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.share-link{
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:#ff6a76;
  font-weight:700;
}

.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  z-index:35;
  display:none;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding:10px 12px;
  background:rgba(8,8,12,.96);
  backdrop-filter:blur(14px);
  border-top:1px solid var(--border);
}

[data-theme="light"] .bottom-nav{
  background:rgba(255,255,255,.96);
}

.bottom-nav-item{
  border:none;
  background:transparent;
  color:var(--muted);
  padding:10px 8px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  font-weight:700;
  cursor:pointer;
}

.bottom-nav-item.active{
  background:rgba(255,40,55,.1);
  color:#ff6a76;
}

@media (max-width: 900px){
  .hero{
    grid-template-columns:1fr;
  }

  .hero-brand-panel{
    order:-1;
  }

  .hero-splash{
    max-height:240px;
  }
}

@media (max-width: 800px){
  .topbar{
    padding:6px 10px;
    min-height:52px;
  }

  .brand-logo{
  height:28px;
  max-width:180px;
}

  .top-actions{
    gap:8px;
    flex-shrink:0;
  }

  .ghost-button{
    width:42px;
    height:42px;
    border-radius:14px;
  }

  .controls{
    grid-template-columns:1fr;
  }

  .tabs{
    display:none;
  }

  .bottom-nav{
    display:grid;
  }

  .app-shell{
    padding:12px;
  }
}

.store-buttons-pro{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
}

.store-buttons-pro{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:20px;
}

.store-badge{
  display:flex;
  align-items:center;
  gap:12px;
  background:#000;
  color:#fff;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  min-width:180px;
  max-width:220px;
}

.store-badge img{
  width:24px !important;
  height:24px !important;
  max-width:24px !important;
  object-fit:contain;
  flex-shrink:0;
}

.store-badge span{
  display:block;
  font-size:.72rem;
  opacity:.75;
  line-height:1.1;
}

.store-badge strong{
  display:block;
  font-size:1rem;
  font-weight:800;
  line-height:1.1;
  color:#fff;
}

.ios-install-modal.hidden{
  display:none;
}

.ios-install-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.ios-install-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}

.ios-install-modal.hidden{
  display:none;
}

.ios-install-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.ios-install-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
}

.ios-install-box{
  position:relative;
  z-index:2;
  width:min(420px, 100%);
  background:#111218;
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  border-radius:20px;
  padding:22px 20px;
  box-shadow:0 18px 45px rgba(0,0,0,.35);
}

.ios-install-box h3{
  margin:0 0 12px;
  font-size:1.3rem;
}

.ios-install-box p{
  margin:0 0 10px;
  line-height:1.5;
}

.ios-install-box ol{
  margin:0 0 0 18px;
  padding:0;
  line-height:1.7;
}

.ios-install-close{
  position:absolute;
  top:10px;
  right:10px;
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#1a1c25;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}