/* ============================================================
   GuiaFumigaciones v2.0 — style.css
   ============================================================ */
:root {
  --primary: #1a6b3a;
  --primary-dark: #0d3b22;
  --primary-light: #2d9e5f;
  --accent: #ffc107;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg-light: #f4f6fb;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 28px rgba(0,0,0,.14);
  font-family: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }
body { color: var(--text); background: #fff; }
h1,h2,h3,h4,h5,.font-oswald { font-family: 'Oswald', sans-serif; }

/* ── Links ── */
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── Cards generales ── */
.card-empresa {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  overflow: hidden;
}
.card-empresa:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

/* ── Badges de plan ── */
.badge-gratuito   { background: #e9ecef; color: #495057; }
.badge-profesional{ background: #d1ecf1; color: #0c5460; }
.badge-premium    { background: #fff3cd; color: #856404; }

/* ── Botones ── */
.btn-primary-custom {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .5rem 1.2rem;
  font-weight: 600;
  transition: background .2s;
}
.btn-primary-custom:hover { background: var(--primary-dark); color: #fff; }

/* ── Hero home ── */
.hero-home {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 80px 0 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-home::before {
  content: '';
  position: absolute; top: -40%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Sección noticias home ── */
.noticias-card-hover {
  transition: transform .22s ease, box-shadow .22s ease;
}
.noticias-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}
.noticia-img-zoom img { transition: transform .35s ease; }
.noticia-img-zoom:hover img { transform: scale(1.05); }

/* ── Detalle noticia ── */
.noticia-content { font-size: 1.05rem; line-height: 1.88; color: #374151; }
.noticia-content h2,.noticia-content h3 { font-family: 'Oswald',sans-serif; color: var(--primary); margin-top: 2rem; }
.noticia-content img { max-width: 100%; border-radius: 10px; margin: 1rem 0; }
.noticia-content blockquote { border-left: 4px solid var(--primary); padding-left: 1.2rem; color: #555; font-style: italic; margin: 1.5rem 0; }
.noticia-content a { color: var(--primary); }
.noticia-content ul,.noticia-content ol { padding-left: 1.6rem; }
.noticia-content li { margin-bottom: .45rem; }
.noticia-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.noticia-content table th,.noticia-content table td { border: 1px solid #dee2e6; padding: .5rem .75rem; }
.noticia-content table th { background: var(--bg-light); font-weight: 700; }

/* ── Admin sidebar ── */
.admin-sidebar {
  background: var(--primary-dark);
  min-height: 100vh;
  width: 240px;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
  padding-top: 70px;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: .55rem 1.2rem;
  border-radius: 6px;
  margin: 2px 8px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all .18s;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.admin-sidebar .nav-link i { width: 18px; text-align: center; }
.admin-content { margin-left: 240px; padding-top: 70px; }
.admin-topbar {
  position: fixed; top: 0; left: 240px; right: 0;
  height: 60px; background: #fff;
  border-bottom: 1px solid #e8ecf0;
  z-index: 999;
  display: flex; align-items: center;
  padding: 0 1.5rem;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* ── Empresa panel ── */
.empresa-card { border: none; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── Stats cards ── */
.stat-card {
  border-radius: var(--radius);
  padding: 1.4rem;
  border: none;
  box-shadow: var(--shadow);
}

/* ── Responsive ── */
@media (max-width: 991px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .admin-topbar { left: 0; }
}

/* ── Utilities ── */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom   { background: var(--primary) !important; }
.border-primary-custom { border-color: var(--primary) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.shadow-custom { box-shadow: var(--shadow) !important; }
.fw-600 { font-weight: 600; }
.transition { transition: all .2s ease; }

/* ── Loader / skeleton ── */
.skeleton { background: linear-gradient(90deg,#f0f0f0 25%,#e0e0e0 50%,#f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── PWA splash ── */
@media (display-mode: standalone) {
  .pwa-hide { display: none !important; }
}
