/* Tribuna Sierra Sur | Región: sierrasur | Paleta: Verde Maguey | bg=#2D6A4F fg=#1B1B1B accent=#E9F5DB */
:root { --brand-primary: #2D6A4F; --brand-on-primary: #1B1B1B; --brand-accent: #E9F5DB; }
/* ============================================
   NOTICIAS INTEGRA - Nature Editorial
   Forest Gradient | Paper Shadows | Earth Depth
   ============================================ */

:root {
    --site-primary: #2e8b57;
    --site-secondary: #808080;
    --site-bg: #f5fffa;
    --site-text: #2f4f4f;
    --site-accent: #006400;
    --site-white: #1B1B1B;
    --site-border: #d2e5d8;
    --card-shadow: 0 1px 3px rgba(0,100,0,0.05), 0 6px 16px rgba(0,80,0,0.05), 0 14px 40px rgba(0,60,0,0.03);
    --card-hover: 0 6px 16px rgba(46,139,87,0.1), 0 16px 48px rgba(0,100,0,0.08);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== HEADER - Nature Depth ===== */
.header {
    background: linear-gradient(135deg, #145a32 0%, #1b6b3a 30%, #2e8b57 70%, #3cb371 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 3px solid rgba(128,128,128,0.25);
    box-shadow:
        0 2px 16px rgba(46,139,87,0.2),
        0 6px 28px rgba(27,107,58,0.1);
    position: relative;
}
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}
.header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(46,139,87,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: 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.72);
    font-weight: 600;
    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: #fff;
    border-bottom-color: rgba(255,255,255,0.5);
}

/* ===== HERO SECTION ===== */
.briefs-sidebar {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border-top: 4px solid var(--site-primary);
    border: 1px solid rgba(46,139,87,0.1);
    border-top: 4px solid var(--site-primary);
}
.brief-item {
    display: block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--site-text);
    transition: transform 0.2s var(--ease);
}
.brief-item:hover { transform: translateX(4px); }
.brief-item h4 { color: var(--site-accent); margin-bottom: 5px; }

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

.hero-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent 0%, rgba(0,60,0,0.5) 30%, rgba(0,100,0,0.92) 100%);
    color: white;
    box-sizing: border-box;
    z-index: 2;
}
.hero-content h2 {
    font-size: 2.2rem;
    margin: 10px 0;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.tag {
    color: #90ee90;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

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

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--site-white);
    border-radius: 6px;
    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-accent), var(--site-primary), #90ee90);
    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: 220px;
    object-fit: cover;
    transition: all 0.4s var(--ease);
}
.news-card:hover img { filter: brightness(1.05) saturate(1.08); }

.news-content { padding: 22px; }
.news-title { font-size: 1.4rem; color: var(--site-accent); margin-bottom: 10px; transition: color 0.2s; }
.news-card:hover .news-title { color: var(--site-primary); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #003d00 0%, var(--site-accent) 50%, #002800 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,0,0.1);
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--site-primary), #90ee90, 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: #90ee90; }

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

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: 1fr 2.5fr; gap: 30px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card.investigative { position: relative; display: block; height: 450px; border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); }
.hero-card.investigative img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: absolute; bottom: 0; width: 100%; padding: 30px; background: linear-gradient(transparent 0%, rgba(0,60,0,0.5) 30%, rgba(0,100,0,0.92) 100%); color: white; 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.55); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-column h4 { color: #90ee90; 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.1); }
.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-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.1); 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(46,139,87,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.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 (graph/grpPanFlyEgg) ===== */
.loader {
    position: relative;
    width: 120px;
    height: 14px;
    border-radius: 0 0 15px 15px;
    background-color: #3e494d;
    box-shadow: 0 -1px 4px #5d6063 inset;
    animation: panex 0.5s linear alternate infinite;
    transform-origin: 170px 0;
    z-index: 10;
    perspective: 300px;

}
.loader::before {
  content: '';
  position: absolute;
  left: calc( 100% - 2px);
  top: 0;
  z-index: -2;
  height: 10px;
  width: 70px;
  border-radius: 0 4px 4px 0;
  background-repeat: no-repeat;
  background-image: linear-gradient(#6c4924, #4b2d21), linear-gradient(#4d5457 24px, transparent 0), linear-gradient(#9f9e9e 24px, transparent 0);
  background-size: 50px 10px , 4px 8px , 24px 4px;
  background-position: right center , 17px center , 0px center;
}
  .loader::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    z-index: -2;
    transform: translate(-50% , -20px) rotate3d(75, -2, 3, 78deg);
    width: 55px;
    height: 53px;
    background: #fff;
    background-image:
    radial-gradient(circle 3px , #fff6 90%, transparent 10%),
    radial-gradient(circle 12px , #ffc400 90%, transparent 10%),
    radial-gradient(circle 12px , #ffae00 100%, transparent 0);
    background-repeat: no-repeat;
    background-position: -4px -6px , -2px -2px , -1px -1px;
    box-shadow: -2px -3px #0002 inset, 0 0 4px #0003 inset;
    border-radius: 47% 36% 50% 50% / 49% 45% 42% 44%;
    animation: eggRst 1s ease-out infinite;
  }

@keyframes eggRst {
  0% ,  100%{  transform: translate(-50%, -20px) rotate3d(90, 0, 0, 90deg); opacity: 0; }
  10% , 90% {  transform: translate(-50%, -30px) rotate3d(90, 0, 0, 90deg); opacity: 1; }
  25%  {transform:  translate(-50% , -40px) rotate3d(85, 17, 2, 70deg) }
  75% {transform:  translate(-50% , -40px) rotate3d(75, -3, 2, 70deg) }
  50% {transform:  translate(-55% , -50px) rotate3d(75, -8, 3, 50deg) }
}
@keyframes panex {
  0%{  transform: rotate(-5deg)  }
  100%{  transform: rotate(10deg)  }
}
