/* Al Día Sierra Norte | Región: sierranorte | Paleta: Morado Buganvilia | bg=#6A1B9A fg=#FFFFFF accent=#F3E5F5 */
:root { --brand-primary: #6A1B9A; --brand-on-primary: #FFFFFF; --brand-accent: #F3E5F5; }
/* ============================================
   ALDIASIERRANORTE - Corporate News Premium
   Blue Gradient | Glass Depth | Orange Accents
   ============================================ */

:root {
    --site-primary: #0056b3;
    --site-secondary: #ff8c00;
    --site-bg: #f4f7f6;
    --site-text: #333333;
    --site-accent: #003d82;
    --site-white: #ffffff;
    --site-border: #e0e0e0;
    --card-shadow: 0 1px 3px rgba(0,56,113,0.06), 0 6px 16px rgba(0,56,113,0.06), 0 16px 48px rgba(0,56,113,0.04);
    --card-hover: 0 4px 12px rgba(0,56,113,0.1), 0 16px 40px rgba(0,56,113,0.1), 0 24px 64px rgba(0,56,113,0.06);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&family=Open+Sans:wght@400;600;700&display=swap");

body {
    font-family: "Open Sans", sans-serif;
    background: linear-gradient(180deg, #f4f7f6 0%, #e8eef2 60%, #f4f7f6 100%);
    color: var(--site-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    color: var(--site-accent);
}

/* ===== HEADER - Corporate Glass Bar ===== */
.header {
    background: linear-gradient(135deg, #002a5c 0%, #003d82 25%, #0056b3 60%, #0068d6 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 3px solid var(--site-secondary);
    box-shadow:
        0 2px 20px rgba(0,56,113,0.35),
        0 8px 40px rgba(0,42,92,0.12),
        inset 0 -1px 0 rgba(255,140,0,0.15);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,140,0,0.5), transparent);
}

.header-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
}

.logo-section img {
    height: 42px;
    border-radius: 4px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
    transition: filter 0.3s var(--ease);
}
.logo-section img:hover { filter: drop-shadow(0 2px 10px rgba(255,140,0,0.35)); }

.main-nav { display: flex; gap: 2px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.78rem;
    padding: 8px 14px;
    border-radius: 4px;
    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), #ffa726);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255,140,0,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;
    border-radius: 12px;
    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,56,179,0.06) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.hero-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}
.hero-card:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,30,60,0.55) 35%, rgba(0,20,45,0.92) 100%);
    padding: 40px 24px 24px;
    color: white;
    z-index: 2;
}
.hero-content h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* ===== NEWS GRID ===== */
.news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.news-card {
    display: flex;
    background: var(--site-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
    border-left: 4px solid transparent;
    border-image: linear-gradient(to bottom, var(--site-primary), var(--site-secondary)) 1;
    position: relative;
}
.news-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,86,179,0.02) 0%, transparent 60%);
    pointer-events: none;
    border-radius: 12px;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover);
}
.news-card img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    transition: all 0.4s var(--ease);
}
.news-card:hover img { filter: brightness(1.06) saturate(1.08); }

.news-content { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.news-category {
    color: var(--site-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 8px;
    letter-spacing: 1px;
}
.news-title { font-size: 1.4rem; margin-bottom: 10px; color: var(--site-accent); transition: color 0.2s ease; }
.news-card:hover .news-title { color: var(--site-primary); }
.news-desc { color: var(--site-text); font-size: 0.95rem; }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #002a5c 0%, var(--site-accent) 50%, #001a3a 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 30px rgba(0,42,92,0.2);
}
.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: 60px; margin-bottom: 20px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.footer-links a { color: var(--site-white); opacity: 0.8; transition: all 0.3s var(--ease); }
.footer-links a:hover { opacity: 1; color: var(--site-secondary); text-shadow: 0 0 10px rgba(255,140,0,0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .news-card { flex-direction: column; }
    .news-card img { width: 100%; height: 200px; }
    .main-nav { flex-wrap: wrap; }
}

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card { position: relative; border-radius: 12px; overflow: hidden; height: 400px; display: block; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent 0%, rgba(0,30,60,0.55) 35%, rgba(0,20,45,0.92) 100%); padding: 40px 24px 24px; color: white; }
@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.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,86,179,0.4); }
.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 (bubble/ball@2Xsn-2) ===== */
.loader {
  box-sizing: border-box;
  position: relative;
  width: 48px;
  height: 48px;
  animation: spin 1s linear infinite;
}
.loader:after, .loader:before {
  content: "";
  width: 24px;
  height: 24px;
  position: absolute;
  border-radius: 50%;
  background: #0056b3;
  animation: spin 1s linear infinite;
  transform-origin: 0px 100%;
}
.loader:before {
  transform-origin: 0 50%;
  background: #fff;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
