/*
Theme Name: VNoticiasT2
Theme URI: https://vnoticias.cl
Author: VNoticias
Description: Theme limpio, estable y responsive para VNoticias.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: vnoticiast2
*/

:root {
  --vn-orange: #f05a28;
  --vn-dark: #111827;
  --vn-muted: #6b7280;
  --vn-bg: #f5f7fa;
  --vn-border: #e5e7eb;
  --vn-white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--vn-bg);
  color: var(--vn-dark);
  line-height: 1.5;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.site-header {
  background: var(--vn-white);
  border-bottom: 1px solid var(--vn-border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo a {
  color: var(--vn-orange);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--vn-dark);
  font-size: 15px;
}

.main-nav a:hover { color: var(--vn-orange); }

.breaking-bar {
  background: var(--vn-dark);
  color: var(--vn-white);
  padding: 10px 20px;
  font-size: 14px;
}

.breaking-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.breaking-label {
  background: var(--vn-orange);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
}

main, .container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px;
}

.hero-section { margin-bottom: 34px; }

.hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
  border-radius: 24px;
  padding: 50px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.hero-tag {
  display: inline-block;
  background: var(--vn-orange);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 16px;
  max-width: 850px;
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -2px;
}

.hero-title a { text-decoration: none; }
.hero-title a:hover { color: var(--vn-orange); }

.hero-excerpt {
  max-width: 760px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.7;
  margin: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 22px;
}

.section-header h2 {
  font-size: 32px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -1px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.news-card,
.most-read-card,
.article-card {
  background: var(--vn-white);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.news-card-link {
  display: block;
  padding: 24px;
  text-decoration: none;
}

.news-card-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.news-card-link:hover .news-card-title { color: var(--vn-orange); }
.news-card-excerpt { color: var(--vn-muted); margin: 0; }

.most-read-section { margin-top: 42px; }
.most-read-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.most-read-card { padding: 22px; display: flex; gap: 16px; }
.most-read-number { color: var(--vn-orange); font-size: 34px; font-weight: 900; line-height: 1; }
.most-read-card h3 { margin: 0; font-size: 19px; line-height: 1.25; }
.most-read-card a { text-decoration: none; }
.most-read-card a:hover { color: var(--vn-orange); }

.newsletter-section {
  margin-top: 42px;
  background: var(--vn-dark);
  color: var(--vn-white);
  border-radius: 24px;
  padding: 42px;
}

.newsletter-section h2 { max-width: 760px; font-size: 34px; line-height: 1.15; margin: 0 0 22px; }
.newsletter-form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 240px; padding: 15px; border-radius: 12px; border: 0; }
.newsletter-form button { background: var(--vn-orange); color: #fff; border: 0; border-radius: 12px; padding: 15px 22px; font-weight: 800; cursor: pointer; }

.site-footer { background: var(--vn-dark); color: #fff; margin-top: 50px; padding: 36px 20px; }
.footer-container { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand h3 { margin: 0 0 8px; color: var(--vn-orange); font-size: 26px; }
.footer-brand p { margin: 0; color: #d1d5db; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; }

.article-layout { max-width: 900px; }
.article-title { font-size: 46px; line-height: 1.08; letter-spacing: -1px; margin: 0 0 12px; }
.article-meta { color: var(--vn-muted); margin-bottom: 28px; }
.article-content { background: #fff; border-radius: 18px; padding: 32px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.article-content p { font-size: 18px; line-height: 1.8; }

@media (max-width: 900px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-title { font-size: 40px; }
}

@media (max-width: 680px) {
  .header-container { align-items: flex-start; flex-direction: column; }
  .logo a { font-size: 30px; }
  .main-nav { gap: 12px; }
  main, .container { padding: 22px 14px; }
  .hero-card { padding: 28px; border-radius: 18px; }
  .hero-title { font-size: 32px; letter-spacing: -1px; }
  .hero-excerpt { font-size: 16px; }
  .news-grid, .most-read-grid { grid-template-columns: 1fr; }
  .newsletter-section { padding: 28px; border-radius: 18px; }
  .newsletter-section h2 { font-size: 26px; }
  .article-title { font-size: 32px; }
  .article-content { padding: 22px; }
}
