/* Mi Sinaloa — portal regional */
:root {
  --bg: #0c1220;
  --bg2: #141c2e;
  --card: #1a2438;
  --text: #e8edf5;
  --muted: #8b9cb8;
  --gold: #d4a853;
  --gold-dim: rgba(212, 168, 83, 0.15);
  --blue: #2d7dd2;
  --green: #3ecf8e;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --font: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45, 125, 210, 0.18), transparent);
}
.hero--photo {
  position: relative;
  padding: 4rem 0 3rem;
  background:
    linear-gradient(135deg, rgba(12, 18, 32, 0.92) 0%, rgba(12, 18, 32, 0.75) 45%, rgba(12, 18, 32, 0.55) 100%),
    url('/assets/images/hero-mazatlan.jpg') center/cover no-repeat;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
}
.hero--photo .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 18ch;
}
.hero-lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #1a5fa0);
  color: #fff;
  box-shadow: 0 6px 24px rgba(45, 125, 210, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b8892e);
  color: #1a1200;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Pillars */
section { padding: 2.5rem 0; }
.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.section-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 60ch;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.9rem; }
.card .icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* Form */
.form-section {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
input, select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { min-height: 100px; resize: vertical; }
.field { margin-bottom: 1rem; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }

/* Listings */
.filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filters select { width: auto; min-width: 160px; }
/* Listings */
.listing {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.listing-media img.thumb { width: 140px; height: 100px; border-radius: 8px; }
.listing-body { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .listing { grid-template-columns: 1fr; }
  .listing-media img.thumb { width: 100%; height: 140px; }
}

.listing h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.listing .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
}
.badge-verified { background: rgba(62, 207, 142, 0.15); color: var(--green); }
.listing-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn-wa { background: #25d366; color: #fff; }

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-img-wrap { display: block; line-height: 0; }
.news-img, .thumb, .listing-media img, .event-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.news-card-body { padding: 1rem 1.15rem 1.15rem; }
.news-card h3 { font-size: 1rem; margin: 0.35rem 0; line-height: 1.35; }
.read-more { font-size: 0.85rem; font-weight: 600; display: inline-block; margin-top: 0.5rem; }
.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: 0;
}
.news-featured-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.news-featured-body { padding: 1.5rem; }
.news-featured-img { display: block; min-height: 220px; }
@media (max-width: 768px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-photo, .news-featured-img { min-height: 180px; }
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; }
.news-item h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.news-item .source { font-size: 0.8rem; color: var(--gold); }
.news-item p { font-size: 0.9rem; color: var(--muted); margin: 0.35rem 0; }

/* Ad slots (fase 3) */
.ad-slot {
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1.5rem 0;
}
.ad-slot.destacado {
  border-style: solid;
  border-color: var(--gold-dim);
  background: linear-gradient(135deg, var(--card), rgba(212, 168, 83, 0.06));
}

.rubro-link img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.rubro-link.soon img { filter: grayscale(0.6); }

/* Events & colab */
.event-card, .colab-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: start;
}
.event-media img, .colab-avatar {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
}
.colab-avatar { height: 100px; border-radius: 999px; width: 100px; }
@media (max-width: 640px) {
  .event-card, .colab-card { grid-template-columns: 1fr; }
  .colab-avatar { width: 80px; height: 80px; }
}

/* Rubros menu */
.rubros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}
.rubro-link {
  display: block;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.rubro-link:hover {
  border-color: var(--blue);
  text-decoration: none;
}
.rubro-link small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 0.25rem; }
.rubro-link.soon { opacity: 0.55; pointer-events: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0 0.5rem;
  }
  .nav-links.open { display: flex; }
  .hero { padding: 2rem 0 1.5rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  body { padding-bottom: 4.5rem; }
}

/* FAB Telegram */
.fab-telegram {
  position: fixed;
  bottom: 1.25rem;
  right: 1rem;
  z-index: 60;
  background: linear-gradient(135deg, #0088cc, #006699);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 136, 204, 0.45);
}
.fab-telegram:hover { text-decoration: none; transform: translateY(-2px); }

/* QR share */
.qr-box {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  display: inline-block;
  margin: 1rem 0;
}
.share-row { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

/* Footer links */
.footer-links { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 0.75rem; }
.footer-links a { color: var(--muted); font-size: 0.85rem; }

/* Home preview */
.preview-block { margin-top: 2rem; }
.preview-block .more-link { display: inline-block; margin-top: 0.75rem; font-weight: 600; }

/* Legal */
.legal-page { max-width: 720px; margin: 0 auto; padding: 2rem 1.25rem; }
.legal-page h2 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}
.site-footer a { color: var(--gold); }

.empty { color: var(--muted); padding: 2rem; text-align: center; }
