/* Noticias Costa | Región: costa | Paleta: Mostaza | bg=#9E9D24 fg=#1A1A1A accent=#F9FBE7 */
:root { --brand-primary: #9E9D24; --brand-on-primary: #1A1A1A; --brand-accent: #F9FBE7; }
/* ============================================
   NOTICIASCOSTA - Classic Newspaper Premium
   Navy Depth | Gold Foil | Embossed Cards
   ============================================ */

:root {
    --site-primary: #000080;
    --site-secondary: #ffd700;
    --site-bg: #f5f5dc;
    --site-text: #000000;
    --site-accent: #0000cd;
    --site-white: #ffffff;
    --site-border: #d4c9a8;
    --card-shadow: 0 1px 3px rgba(0,0,80,0.06), 0 4px 12px rgba(0,0,0,0.06), 0 12px 36px rgba(0,0,0,0.04);
    --card-hover: 0 6px 16px rgba(0,0,128,0.1), 0 16px 48px rgba(0,0,0,0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Times New Roman", Times, serif;
    background: linear-gradient(180deg, #f5f5dc 0%, #ede8d0 50%, #f5f5dc 100%);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Times New Roman", Times, serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER - Classic Navy Premium ===== */
.header {
    background: linear-gradient(180deg, #000066 0%, #000080 60%, #000099 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 3px double var(--site-secondary);
    box-shadow:
        0 2px 12px rgba(0,0,128,0.25),
        0 6px 24px rgba(0,0,80,0.12),
        inset 0 1px 0 rgba(255,215,0,0.08);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.4), 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: 44px; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3)); }
.main-nav { display: flex; gap: 4px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.72);
    font-weight: 700;
    text-transform: uppercase;
    padding: 8px 14px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease);
    border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
    color: var(--site-secondary);
    border-bottom-color: var(--site-secondary);
    text-shadow: 0 0 8px rgba(255,215,0,0.2);
}

/* ===== HERO SECTION ===== */
.hero-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid var(--site-primary);
    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,0,128,0.04) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}
.hero-card.main { grid-row: span 2; height: 100%; }
.hero-card.sub { height: 100%; }
.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s var(--ease);
}
.hero-card:hover {
    box-shadow: var(--card-hover);
    transform: translateY(-2px);
    border-color: var(--site-secondary);
}
.hero-card:hover img { filter: brightness(1.04) contrast(1.02); }

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 18px;
    background: linear-gradient(transparent 0%, rgba(0,0,80,0.6) 30%, rgba(0,0,80,0.92) 100%);
    color: white;
    box-sizing: border-box;
    z-index: 2;
}
.hero-content h2, .hero-content h3 {
    color: var(--site-secondary);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

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

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--site-white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
    border-top: 4px solid var(--site-primary);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--site-primary), var(--site-secondary), var(--site-primary));
    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;
    filter: sepia(0.12);
    transition: all 0.4s var(--ease);
}
.news-card:hover img { filter: sepia(0) brightness(1.04); }

.news-content { padding: 18px; }
.news-title { font-size: 1.2rem; color: var(--site-primary); transition: color 0.2s; }
.news-card:hover .news-title { color: var(--site-accent); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #000060 0%, #000040 50%, #000020 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    box-shadow: 0 -4px 24px rgba(0,0,80,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.3)); }
.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: 2fr 1fr; grid-template-rows: 200px 200px; gap: 20px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card { display: block; position: relative; overflow: hidden; border-radius: 8px; border: 2px solid var(--site-primary); }
.hero-card.main { grid-row: span 2; height: 100%; }
.hero-card.sub { height: 100%; }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; width: 100%; padding: 18px; background: linear-gradient(transparent 0%, rgba(0,0,80,0.6) 30%, rgba(0,0,80,0.92) 100%); color: white; box-sizing: border-box; }
.hero-content h2, .hero-content h3 { color: var(--site-secondary); margin: 0; }
@media (max-width: 768px) { #latest-container { grid-template-columns: 1fr; grid-template-rows: auto; } .hero-card.main { height: 300px; } .hero-card.sub { height: 200px; } }

/* ===== 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-secondary); font-size: 1.2rem; margin: 0; }
.footer-about { color: rgba(255,255,255,0.55); 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,215,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.55); transition: all 0.3s var(--ease); font-size: 0.88rem; display: inline-block; }
.footer-links li a:hover { color: var(--site-secondary); 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,215,0,0.15); color: var(--site-white); transition: all 0.3s var(--ease); font-size: 0.85rem; }
.social-link:hover { background: rgba(255,215,0,0.15); border-color: var(--site-secondary); color: var(--site-secondary); transform: translateY(-3px); box-shadow: 0 4px 16px rgba(255,215,0,0.2); }
.footer-bottom { border-top: 1px solid rgba(255,215,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.35); 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 (objects/7j8brpzvb5b) ===== */
.loader {
  width: 175px;
  height: 80px;
  display: block;
  margin: auto;
  background-image: radial-gradient(circle 25px at 25px 25px, #99f6e4 100%, transparent 0), radial-gradient(circle 50px at 50px 50px, #99f6e4 100%, transparent 0), radial-gradient(circle 25px at 25px 25px, #99f6e4 100%, transparent 0), linear-gradient(#99f6e4 50px, transparent 0);
  background-size: 50px 50px, 100px 76px, 50px 50px, 120px 40px;
  background-position: 0px 30px, 37px 0px, 122px 30px, 25px 40px;
  background-repeat: no-repeat;
  position: relative;
  box-sizing: border-box;
}
.loader::after {
  content: '';  
  left: 0;
  right: 0;
  margin: auto;
  bottom: 20px;
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-color: #000080 transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

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