/* Papaloapan Pulso | Región: papaloapan | Paleta: Cobre Oaxaca | bg=#B7472A fg=#FFFFFF accent=#FBE9E7 */
:root { --brand-primary: #B7472A; --brand-on-primary: #FFFFFF; --brand-accent: #FBE9E7; }
/* ============================================
   PAPALOAPANPULSO - Cyberpunk Neon
   Electric Green | Dark Glass | Scanlines
   ============================================ */

:root {
    --site-primary: #39ff14;
    --site-secondary: #000000;
    --site-bg: #111111;
    --site-text: #ffffff;
    --site-accent: #32cd32;
    --site-white: #ffffff;
    --site-border: #222;
    --card-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 8px 24px rgba(0,0,0,0.3);
    --card-hover: 0 0 16px rgba(57,255,20,0.15), 0 8px 32px rgba(0,0,0,0.5);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: "Lucida Console", Monaco, monospace;
    background: radial-gradient(ellipse at 50% 0%, #181818 0%, #111111 40%, #0a0a0a 100%);
    color: var(--site-text);
    line-height: 1.6;
    margin: 0; padding: 0;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "Arial Black", sans-serif;
    color: var(--site-accent);
}
a { text-decoration: none; color: inherit; }

/* ===== HEADER - Neon Cyberpunk ===== */
.header {
    background: linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    color: var(--site-white);
    padding: 0;
    border-bottom: 2px solid var(--site-primary);
    box-shadow:
        0 0 20px rgba(57,255,20,0.08),
        0 4px 24px rgba(0,0,0,0.5),
        inset 0 -1px 0 rgba(57,255,20,0.1);
    position: relative;
}
.header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.6), transparent);
    filter: blur(2px);
}

.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 0 8px rgba(57,255,20,0.25)); }
.main-nav { display: flex; gap: 2px; align-items: center; }

.main-nav a {
    color: rgba(255,255,255,0.45);
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 13px;
    font-size: 0.74rem;
    letter-spacing: 1.5px;
    font-family: 'Lucida Console', Monaco, monospace;
    transition: all 0.25s var(--ease);
}
.main-nav a:hover, .main-nav a.active {
    color: var(--site-primary);
    text-shadow: 0 0 10px rgba(57,255,20,0.5), 0 0 25px rgba(57,255,20,0.2);
}

/* ===== HERO SECTION ===== */
.hero-card.split {
    position: relative;
    display: block;
    height: 450px;
    overflow: hidden;
    border: 1px solid rgba(57,255,20,0.3);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--ease);
}
.hero-card.split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-card.split img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.15) saturate(0.85);
    transition: all 0.5s var(--ease);
}
.hero-card.split:hover {
    border-color: rgba(57,255,20,0.5);
    box-shadow: var(--card-hover);
    transform: translateY(-2px);
}
.hero-card.split:hover img { filter: contrast(1.2) saturate(1) brightness(1.05); }

.hero-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(57,255,20,0.92);
    color: #000;
    padding: 14px 18px;
    transform: skewX(-3deg);
    z-index: 2;
    box-shadow: 0 4px 16px rgba(57,255,20,0.3);
}
.hero-content h2 {
    margin: 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000000;
    text-shadow: none;
}

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

.news-card {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 250px;
    overflow: hidden;
    border: 1px solid rgba(57,255,20,0.15);
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    transition: all 0.35s var(--ease);
}
.news-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
    pointer-events: none;
}
.news-card:hover {
    border-color: rgba(57,255,20,0.4);
    box-shadow: var(--card-hover);
    transform: translateY(-3px);
}
.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: all 0.4s var(--ease);
    filter: contrast(1.1);
}
.news-card:hover img { opacity: 0.85; filter: contrast(1.15) brightness(1.05); }

.news-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
    z-index: 2;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.news-title { font-size: 0.9rem; color: #39ff14; margin: 0; text-shadow: 0 0 6px rgba(57,255,20,0.3); }

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(160deg, #0d0d0d 0%, #080808 50%, #050505 100%);
    color: var(--site-white);
    padding: 50px 20px 40px;
    text-align: center;
    margin-top: 60px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(57,255,20,0.6), transparent);
    box-shadow: 0 0 12px rgba(57,255,20,0.2);
}
.footer-logo img { height: 50px; margin-bottom: 20px; filter: drop-shadow(0 0 6px rgba(57,255,20,0.2)); }
.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-primary); text-shadow: 0 0 8px rgba(57,255,20,0.3); }

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

/* ===== HERO GRID FIXES ===== */
#latest-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.hero-card.split { position: relative; display: block; height: 450px; overflow: hidden; border: 1px solid rgba(57,255,20,0.3); border-radius: 8px; }
.hero-card.split img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.15) saturate(0.85); }
.hero-content { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(57,255,20,0.92); color: #000; padding: 14px 18px; transform: skewX(-3deg); }
@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; }
.footer-logo h3 { color: var(--site-primary); font-size: 1.2rem; margin: 0; }
.footer-about { color: rgba(255,255,255,0.5); font-size: 0.9rem; line-height: 1.7; margin: 0; }
.footer-column h4 { color: var(--site-primary); 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(57,255,20,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.5); transition: all 0.3s var(--ease); font-size: 0.88rem; display: inline-block; }
.footer-links li a:hover { color: var(--site-primary); padding-left: 5px; text-shadow: 0 0 6px rgba(57,255,20,0.2); }
.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(57,255,20,0.06); border: 1px solid rgba(57,255,20,0.2); color: var(--site-primary); transition: all 0.3s var(--ease); font-size: 0.85rem; }
.social-link:hover { background: var(--site-primary); border-color: var(--site-primary); color: #000; transform: translateY(-3px); box-shadow: 0 0 16px rgba(57,255,20,0.35); }
.footer-bottom { border-top: 1px solid rgba(57,255,20,0.1); margin-top: 40px; padding: 24px 24px 0; max-width: 1200px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.3); 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 (rect/jcffa36l7ol) ===== */
.loader {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
  border: 2px solid #99f6e4;
  box-sizing: border-box;
  animation: rotation 2s linear infinite;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid #39ff14;
  width: 38px;
  height: 38px;
  animation: rotationBack 1.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 28px;
  height: 28px;
  border-color: #99f6e4;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

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