/* Noticias Valles Centrales | Región: vallescentrales | Paleta: Rojo Cempasúchil | bg=#C1272D fg=#1A1A1A accent=#F8E9D2 */
:root { --brand-primary: #C1272D; --brand-on-primary: #1A1A1A; --brand-accent: #F8E9D2; }
/* ============================================
   A LA VISTA NOTICIAS - Coastal Modern
   Teal Depth | Golden Warmth | Organic Shadows
   ============================================ */

:root {
    --site-primary: #008080;
    --site-secondary: #ffeb3b;
    --site-bg: #f0f8ff;
    --site-text: #2f4f4f;
    --site-accent: #006666;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
    --card-shadow: 0 1px 3px rgba(0,128,128,0.06), 0 6px 18px rgba(0,100,100,0.06), 0 14px 42px rgba(0,80,80,0.04);
    --card-hover: 0 6px 16px rgba(0,128,128,0.12), 0 16px 48px rgba(0,100,100,0.1);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f0f8ff 0%, #e6f3f3 50%, #f0f8ff 100%);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Georgia", serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER - Teal Ocean Depth ===== */
.header {
    background: linear-gradient(135deg, #004d4d 0%, #006666 30%, #008080 70%, #009999 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 3px solid var(--site-secondary);
    box-shadow:
        0 2px 16px rgba(0,128,128,0.25),
        0 6px 32px rgba(0,100,100,0.1);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,235,59,0.5), transparent);
}

.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 2px 6px rgba(0,0,0,0.2)); }
.main-nav { display: flex; gap: 4px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    text-transform: uppercase;
    padding: 8px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease);
    position: relative;
}
.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, var(--site-secondary), #ffd54f);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,235,59,0.3);
}
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* ===== HERO SECTION ===== */
.hero-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--ease);
}
.hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,128,128,0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}
.hero-card.main-focus { height: 400px; }
.hero-card.side-focus { height: 400px; }
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.hero-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}
.hero-card:hover img { transform: scale(1.04); }

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 24px;
    background: linear-gradient(transparent 0%, rgba(0,70,70,0.5) 30%, rgba(0,60,60,0.92) 100%);
    color: white;
    box-sizing: border-box;
    z-index: 2;
}
.hero-content h2, .hero-content h3, .hero-content h4 { color: #ffffff; text-shadow: 0 2px 10px rgba(0,0,0,0.35); }

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

.news-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-accent), var(--site-primary), var(--site-secondary));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.news-card:hover::before { opacity: 1; }
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover);
}
.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s var(--ease);
}
.news-card:hover img { filter: brightness(1.05) saturate(1.1); }

.news-content { padding: 20px; }
.news-title { color: var(--site-accent); transition: color 0.2s; }
.news-card:hover .news-title { color: var(--site-primary); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #004d4d 0%, var(--site-accent) 50%, #003d3d 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 24px rgba(0,100,100,0.12);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-primary), var(--site-secondary), var(--site-primary));
}
.footer-logo img { height: 50px; margin-bottom: 20px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25)); }
.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-secondary); }

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

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; align-items: stretch; }
.hero-card { position: relative; display: block; border-radius: 14px; overflow: hidden; height: 450px; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; width: 100%; padding: 24px; background: linear-gradient(transparent 0%, rgba(0,70,70,0.5) 30%, rgba(0,60,60,0.92) 100%); color: white; box-sizing: border-box; }
@media (max-width: 992px) { #latest-container { grid-template-columns: 1fr; } .hero-card { height: 300px; } }

/* ===== 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.6); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-column h4 { color: var(--site-secondary); 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,255,255,0.12); }
.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.6); 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: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--site-white); transition: all 0.3s var(--ease); font-size: 0.85rem; }
.social-link:hover { background: var(--site-primary); border-color: var(--site-primary); color: var(--site-white); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(0,128,128,0.35); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 40px; padding: 24px 24px 0; max-width: 1200px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.4); 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 (progress/9r801t4h2hk) ===== */
.loader {
  width: 100%;
  height: 8px;
  display: inline-block;
  position: relative;
  overflow: hidden;
}
.loader::before {
  content: '';  
  box-sizing: border-box;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.15);
  background-image: linear-gradient(45deg, rgba(0, 0, 0, 0.25) 25%, transparent 25%, transparent 50%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.25) 75%, transparent 75%, transparent);
  background-size: 15px 15px;
  z-index: 10;
}
.loader::after {
  content: '';  
  box-sizing: border-box;
  width: 0%;
  height: 100%;
  background-color: #99f6e4;
  position: absolute;
  border-radius: 0 4px 4px 0;
  top: 0;
  left: 0;
  animation: animFw 10s ease-in infinite;
}


@keyframes animFw {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}
