/* Valles Centrales Pulso | Región: vallescentrales | Paleta: Cobre Oaxaca | bg=#B7472A fg=#FFFFFF accent=#FBE9E7 */
:root { --brand-primary: #B7472A; --brand-on-primary: #FFFFFF; --brand-accent: #FBE9E7; }
/* ============================================
   BREAKINGCENTER MEXICO - Dark Cinematic
   Red Glow | Deep Shadow | Urgency
   ============================================ */

:root {
    --site-primary: #8b0000;
    --site-secondary: #000000;
    --site-bg: #121212;
    --site-text: #e0e0e0;
    --site-accent: #ff0000;
    --site-white: #ffffff;
    --site-border: #2a2a2a;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.25);
    --card-hover: 0 4px 16px rgba(255,0,0,0.15), 0 12px 40px rgba(0,0,0,0.4);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: system-ui, sans-serif;
    background: radial-gradient(ellipse at 50% 0%, #1a1a1a 0%, #121212 40%, #0a0a0a 100%);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: system-ui, sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER - Dark Cinematic ===== */
.header {
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 2px solid var(--site-accent);
    box-shadow:
        0 4px 30px rgba(255,0,0,0.12),
        0 1px 0 rgba(255,0,0,0.3),
        inset 0 -1px 0 rgba(255,0,0,0.15);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.6), transparent);
    filter: blur(1px);
}

.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 24px; height: 62px; }
.logo-section img { height: 42px; filter: drop-shadow(0 0 8px rgba(255,0,0,0.2)); }
.main-nav { display: flex; gap: 2px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.55);
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 13px;
    font-size: 0.76rem;
    letter-spacing: 1px;
    transition: all 0.25s var(--ease);
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--site-accent);
    border-bottom-color: var(--site-accent);
    text-shadow: 0 0 15px rgba(255,0,0,0.5), 0 0 30px rgba(255,0,0,0.15);
}

/* ===== HERO SECTION ===== */
.hero-card.dark {
    position: relative;
    display: block;
    height: 350px;
    overflow: hidden;
    border: 1px solid rgba(255,0,0,0.3);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--ease);
}
.hero-card.dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-card.dark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: all 0.5s var(--ease);
    filter: contrast(1.1) saturate(0.9);
}
.hero-card.dark:hover {
    box-shadow: var(--card-hover);
    border-color: rgba(255,0,0,0.5);
    transform: translateY(-2px);
}
.hero-card.dark:hover img { opacity: 0.9; filter: contrast(1.15) saturate(1); }

.hero-content {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.95) 100%);
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2;
}
.hero-content h3 {
    color: #fff;
    font-size: 1.1rem;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #1e1e1e 0%, #181818 100%);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
    border: 1px solid rgba(255,255,255,0.04);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
    border-color: rgba(255,0,0,0.15);
}
.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    opacity: 0.85;
    transition: all 0.4s var(--ease);
    filter: contrast(1.05);
}
.news-card:hover img { opacity: 1; filter: contrast(1.1) brightness(1.05); }

.news-content { padding: 12px; }
.news-title { font-size: 1rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.3); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #1a0000 0%, #0d0000 50%, #000000 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 30px rgba(255,0,0,0.06);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(255,0,0,0.7) 50%, transparent 90%);
}
.footer-logo img { height: 50px; margin-bottom: 20px; filter: drop-shadow(0 0 6px rgba(255,0,0,0.2)); }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--site-white); transition: all 0.3s var(--ease); }
.footer-links a:hover { color: var(--site-accent); text-shadow: 0 0 8px rgba(255,0,0,0.3); }

@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card.dark { position: relative; display: block; height: 350px; overflow: hidden; border: 1px solid rgba(255,0,0,0.3); border-radius: 6px; }
.hero-card.dark img { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.hero-content { position: absolute; bottom: 0; background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 30%, rgba(0,0,0,0.95) 100%); width: 100%; padding: 15px; box-sizing: border-box; }
@media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; } }

/* ===== FOOTER COMPONENTS ===== */
.footer-grid { display: grid; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.footer-grid.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
.footer-column { display: flex; flex-direction: column; gap: 14px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.footer-logo img { height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-logo h3 { color: var(--site-white); font-size: 1.2rem; margin: 0; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-column h4 { color: var(--site-accent); font-weight: 800; text-transform: uppercase; letter-spacing: 2px; font-size: 0.72rem; margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,0,0,0.15); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { color: rgba(255,255,255,0.5); transition: all 0.3s var(--ease); font-size: 0.88rem; display: inline-block; }
.footer-links li a:hover { color: var(--site-white); padding-left: 5px; }
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }
.social-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); color: var(--site-white); transition: all 0.3s var(--ease); font-size: 0.85rem; }
.social-link:hover { background: rgba(255,0,0,0.2); border-color: var(--site-accent); color: var(--site-accent); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(255,0,0,0.25); }
.footer-bottom { border-top: 1px solid rgba(255,0,0,0.1); margin-top: 40px; padding: 24px 24px 0; max-width: 1200px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.3); font-size: 0.82rem; text-align: center; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 600px) { .footer-grid.cols-3 { grid-template-columns: 1fr; } }


/* ===== UNIQUE LOADER (circle/kyaj4z490z) ===== */
.loader {
  border: 24px solid #99f6e4;
  border-bottom-color: #8b0000;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
