/* ============================================
   NOTICIAS123 - Custom Theme
   ============================================ */
:root {
    --site-primary: #d32f2f;
    --site-secondary: #ffffff;
    --site-bg: #fafafa;
    --site-text: #212121;
    --site-accent: #b71c1c;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
}
body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: var(--site-bg);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Arial Black", Impact, sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }
/* HEADER */
.site-header {
    background-color: var(--site-primary);
    color: var(--site-white);
    padding: 15px 0;
    text-align: center;
    border-bottom: 5px solid var(--site-secondary);
}
.header-container { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.logo-section img { height: 70px; }
.main-nav { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.main-nav a { color: var(--site-white); font-weight: bold; text-transform: uppercase; padding: 5px 10px; }
.main-nav a:hover { color: var(--site-secondary); }
/* LAYOUTS */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}
/* FOOTER */
.site-footer {
    background-color: var(--site-accent);
    color: var(--site-white);
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
}
.footer-logo img { height: 50px; margin-bottom: 20px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.footer-links a { color: var(--site-white); }
/* EXTRA CSS */

      .hero-card.giant { position: relative; display: block; width: 100%; height: 500px; overflow: hidden; }
      .hero-card.giant img { width: 100%; height: 100%; object-fit: cover; }
      .hero-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, #b71c1c); padding: 40px 20px 20px; color: white; }
      .breaking-badge { background: white; color: #d32f2f; padding: 5px 10px; font-weight: bold; font-size: 0.8rem; margin-bottom: 10px; display: inline-block; }
      .news-card { display: flex; flex-direction: column; background: white; border: 1px solid #ddd; }
      .news-card img { width: 100%; height: 200px; object-fit: cover; }
      .news-content { padding: 15px; }
    
@media (max-width: 768px) {
    #latest-container, .news-grid { grid-template-columns: 1fr !important; }
}

/* --- HERO GRID FIXES --- */

      #latest-container { display: grid; grid-template-columns: 1fr; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
      .hero-card.giant { position: relative; display: block; width: 100%; height: 500px; overflow: hidden; border-radius: 8px; }
      .hero-card.giant img { width: 100%; height: 100%; object-fit: cover; }
      .hero-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, #b71c1c); padding: 40px 20px 20px; color: white; }
    

/* --- PRELOADER --- */
#site-preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--site-bg); display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease;
}
#site-preloader.hidden { opacity: 0; pointer-events: none; }

.loader {
    font-size: 48px; color: var(--site-primary); width: 1em; height: 1em; box-sizing: border-box;
    background-color: currentcolor; position: relative; border-radius: 50%;
    transform: rotateX(-60deg) perspective(1000px);
  }
  .loader:before, .loader:after {
    content: ''; display: block; position: absolute; box-sizing: border-box; top: 0; left: 0;
    width: inherit; height: inherit; border-radius: inherit; animation: flowerFlow 1s ease-out infinite;
  }
  .loader:after { animation-delay: .4s; }
  @keyframes flowerFlow {
    0% { opacity: 1; transform: rotate(0deg); box-shadow: 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor, 0 0 0 -.5em currentcolor; }
    100% { opacity: 0; transform: rotate(180deg); box-shadow: -1em -1em 0 -.35em currentcolor, 0 -1.5em 0 -.35em currentcolor, 1em -1em 0 -.35em currentcolor, -1.5em 0 0 -.35em currentcolor, 1.5em -0 0 -.35em currentcolor, -1em 1em 0 -.35em currentcolor, 0 1.5em 0 -.35em currentcolor, 1em 1em 0 -.35em currentcolor; }
  }
