:root {
  --primary: #15803d;
  --secondary: #ca8a04;
  --light: #fde68a;
  --bg: #f0fdf4;
  --text: #14532d;
  --header: #166534;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Crimson Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
#site-preloader {
  position: fixed; inset: 0; background: var(--bg); z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; transition: opacity 0.5s, visibility 0.5s;
}
#site-preloader.hidden { opacity: 0; visibility: hidden; }
.category-tag {
  display: inline-block; background: var(--light); color: var(--primary);
  padding: 4px 14px; border-radius: 20px; font-size: 0.75em;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px;
}
.btn-primary {
  display: inline-block; padding: 12px 28px; background: var(--primary);
  color: #fff; text-decoration: none; border-radius: 6px;
  font-weight: 700; transition: all 0.3s; border: 2px solid var(--primary); margin-top: 8px;
}
.btn-primary:hover { background: transparent; color: var(--primary); }
.section-title {
  font-size: 1.5em; margin-bottom: 24px; color: var(--text);
  font-weight: 800; position: relative; padding-bottom: 10px;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 50px; height: 4px; background: var(--primary); border-radius: 2px;
}
.tag {
  display: inline-block; background: var(--light); color: var(--primary);
  padding: 3px 10px; border-radius: 12px; font-size: 0.7em;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px;
}
.site-footer {
  background: var(--text); color: rgba(255,255,255,0.85);
  padding: 50px 20px 30px; text-align: center; margin-top: 60px;
}
.site-footer p { margin-bottom: 12px; }
.site-footer a { color: var(--light); text-decoration: none; font-weight: 600; }
.legal-page { max-width: 800px; margin: 40px auto; padding: 0 24px; line-height: 1.8; }
.legal-page h1 { font-size: 2.2rem; margin-bottom: 8px; color: var(--text); }
.legal-page h2 { font-size: 1.3rem; margin: 28px 0 10px; color: var(--primary); }
.legal-page p, .legal-page li { color: #4b5563; font-size: 1rem; }
.legal-page ul { padding-left: 22px; }
@media (max-width: 768px) { .container { padding: 0 16px; } }
.hero-aztec { padding: 60px 0; position: relative; overflow: hidden; }
.pyramid-steps { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.step { height: 12px; background: var(--primary); border-radius: 2px; opacity: 0.7; }
.step.s1 { width: 200px; } .step.s2 { width: 280px; } .step.s3 { width: 360px; }
.aztec-content { text-align: center; max-width: 600px; margin: 0 auto; }
.aztec-content h1 { font-size: 2.4em; font-weight: 800; margin-bottom: 10px; }
.aztec-content p { font-size: 1.05em; color: #4b5563; }
.aztec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0; }
.aztec-card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.06); transition: transform 0.3s; }
.aztec-card:hover { transform: translateY(-3px); }
.aztec-card.tier-1 { grid-column: span 2; grid-row: span 2; }
.aztec-card.tier-2 { grid-row: span 1; }
.aztec-card.tier-3 { grid-row: span 1; }
.az-img { height: 160px; background: #15803d; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); }
.aztec-card.tier-1 .az-img { height: 260px; }
.az-body { padding: 18px; }
.az-body h3 { font-size: 1.15em; margin: 6px 0; }
.az-body h4 { font-size: 1em; margin: 4px 0; }
.az-body p { color: #4b5563; font-size: 0.92em; }
@media (max-width: 768px) { .aztec-grid { grid-template-columns: 1fr; } .aztec-card.tier-1 { grid-column: span 1; grid-row: span 1; } }

/* Gradients & Transparency */

.hero-focus .hero-image,
.hero-express .express-image,
.hero-default .hero-image {
  background: linear-gradient(135deg, #15803d25 0%, #ca8a0435 50%, #fde68a20 100%) !important;
}

.hero-dna .helix-bar {
  background: linear-gradient(90deg, #15803d, #ca8a04) !important;
  opacity: 0.6;
}

.hero-pulse {
  background: linear-gradient(180deg, #f0fdf4 0%, #15803d08 50%, #f0fdf4 100%);
}

.hero-globe .globe-ring {
  border: 1px solid #15803d18;
  background: radial-gradient(circle, #fde68a15 0%, transparent 70%);
}

.hero-aztec .step {
  background: linear-gradient(90deg, #15803d, #ca8a04) !important;
}

.hero-analysis .chart-bars {
  background: linear-gradient(180deg, #15803d10 0%, #15803d05 100%);
}

.hero-instant .clock-face {
  background: radial-gradient(circle, #15803d10 0%, transparent 70%);
}

.hero-bridge .bridge-connector {
  background: linear-gradient(90deg, #15803d, #ca8a04);
}

.hero-bold .bold-content {
  background: linear-gradient(135deg, #15803d12 0%, #fde68a15 100%);
}

.hero-observer .panorama-bar {
  background: linear-gradient(90deg, #15803d, #ca8a04, #fde68a, #15803d);
}

.hero-observer .observer-horizon {
  background: linear-gradient(to bottom, #15803d12, transparent);
}

.hero-plus .layer {
  background: linear-gradient(90deg, #15803d, #ca8a04) !important;
}

.hero-borderless .borderless-image {
  background: linear-gradient(135deg, #15803d35 0%, #ca8a0425 50%, #fde68a15 100%) !important;
}

.hero-breaking .breaking-banner {
  background: linear-gradient(90deg, #dc2626, #ef4444) !important;
}

.hero-republic .republic-emblem {
  background: linear-gradient(135deg, #15803d15, #ca8a0410);
}

.hero-finance .finance-ticker .t-item {
  background: linear-gradient(135deg, #fff 0%, #15803d08 100%);
}

.hero-monitor .m-card {
  background: linear-gradient(135deg, #fff 0%, #15803d06 100%);
}

.hero-prophet .rays .ray {
  background: linear-gradient(to right, transparent, #fde68a, transparent);
}

.hero-prophet {
  background: radial-gradient(circle at center, #15803d08 0%, transparent 60%);
}

.hero-radio .wave-container .wave {
  background: linear-gradient(to top, #15803d, #ca8a04) !important;
}

.hero-perspective .perspective-vanish {
  background: linear-gradient(180deg, #15803d08, transparent);
}

.hero-community .m-tile {
  background: linear-gradient(135deg, #15803d, #ca8a04) !important;
}

/* Card improvements */
.col-card, .pair-card, .rhythm-card, .world-card,
.aztec-card, .an-card, .feed-item, .bridge-card,
.bold-card, .obs-card, .plus-card, .bl-card,
.break-card, .rep-card, .news-card, .fin-card,
.mon-card, .pro-card, .sum-card, .rad-card,
.persp-card, .comm-card, .express-card, .d-article,
.entry, .brief-item, .news-item, .world-card {
  background: linear-gradient(135deg, #fff 0%, #15803d04 100%);
  backdrop-filter: blur(4px);
}

/* Button gradient */
.btn-primary {
  background: linear-gradient(135deg, #15803d 0%, #ca8a04 100%);
  border: none;
  box-shadow: 0 4px 14px #15803d30;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ca8a04 0%, #15803d 100%);
  color: #fff;
  box-shadow: 0 6px 20px #15803d40;
}

/* Section subtle backgrounds */
.latest-grid,
.timeline-vertical,
.rhythm-grid,
.world-grid,
.express-grid,
.daily-brief,
.aztec-grid,
.analysis-grid,
.instant-feed,
.bridge-grid,
.diary-entries,
.bold-grid,
.observer-grid,
.plus-grid,
.borderless-grid,
.breaking-grid,
.republic-grid,
.news-grid,
.finance-grid,
.monitor-grid,
.prophet-grid,
.summary-grid,
.radio-grid,
.persp-grid,
.comm-grid,
.paired-grid,
.featured-columns,
.daily-columns,
.content-grid {
  position: relative;
}

/* Footer gradient */
.site-footer {
  background: linear-gradient(180deg, #14532d 0%, #166534 100%);
}

/* Header glass effect */
header {
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, #166534ee 0%, #ca8a04dd 100%) !important;
}

/* Tag enhancements */
.tag, .category-tag {
  background: linear-gradient(135deg, #fde68a 0%, #ca8a0430 100%);
  border: 1px solid #15803d20;
}

/* Image placeholders with subtle patterns */
.hero-image span,
.card-img span,
.rhythm-img span,
.world-img span,
.az-img span,
.pair-img span,
.ex-img span,
.lead-image span,
.bold-img span,
.obs-img span,
.plus-img span,
.bl-img span,
.break-img span,
.rep-img span,
.pro-img span,
.persp-img span,
.comm-mosaic span {
  background: linear-gradient(45deg, #15803d10 25%, transparent 25%, transparent 50%, #15803d10 50%, #15803d10 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth transitions */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover glow effects */
.col-card:hover, .pair-card:hover, .rhythm-card:hover, .world-card:hover,
.aztec-card:hover, .an-card:hover, .bridge-card:hover, .bold-card:hover,
.obs-card:hover, .plus-card:hover, .break-card:hover, .rep-card:hover,
.news-card:hover, .fin-card:hover, .pro-card:hover, .sum-card:hover,
.rad-card:hover, .persp-card:hover, .comm-card:hover, .express-card:hover {
  box-shadow: 0 8px 30px #15803d20, 0 2px 8px rgba(0,0,0,0.08);
}

/* ============================================
   ARTICLE CARD ENHANCEMENTS - cms-nuevos3
   Enhanced cards with site color adaptability
   ============================================ */

/* Enhanced Hero Cards */
.hero-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #0e7490), var(--secondary, #2dd4bf));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.hero-card:hover::before {
    opacity: 1;
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.1);
}

.hero-card img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.hero-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.06);
}

.hero-card .hero-content {
    transition: transform 0.4s ease;
}

.hero-card:hover .hero-content {
    transform: translateY(-4px);
}

/* Enhanced News Cards */
.news-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.98) 100%);
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #0e7490), var(--secondary, #2dd4bf));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.news-card:hover::before {
    opacity: 1;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04);
}

.news-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-card:hover img {
    transform: scale(1.06);
}

.news-card .news-content {
    transition: transform 0.3s ease;
    padding: 20px;
}

.news-card:hover .news-content {
    transform: translateY(-2px);
}

.news-card .news-title {
    transition: color 0.3s ease;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
}

.news-card:hover .news-title {
    color: var(--primary, #0e7490);
}

.news-card .news-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #4b5563;
}

.news-card .news-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary, #0e7490);
    margin-bottom: 10px;
    display: inline-block;
    padding: 3px 10px;
    background: var(--light, #99f6e4);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-card:hover .news-category {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Enhanced News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Enhanced Custom Cards (rep-card, entry, etc.) */
.rep-card,
.entry,
.col-card,
.pair-card,
.rhythm-card,
.world-card,
.aztec-card,
.an-card,
.feed-item,
.bridge-card,
.bold-card,
.obs-card,
.plus-card,
.bl-card,
.break-card,
.fin-card,
.mon-card,
.pro-card,
.sum-card,
.rad-card,
.persp-card,
.comm-card,
.express-card,
.d-article,
.brief-item,
.news-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.rep-card:hover,
.entry:hover,
.col-card:hover,
.pair-card:hover,
.rhythm-card:hover,
.world-card:hover,
.aztec-card:hover,
.an-card:hover,
.feed-item:hover,
.bridge-card:hover,
.bold-card:hover,
.obs-card:hover,
.plus-card:hover,
.break-card:hover,
.fin-card:hover,
.mon-card:hover,
.pro-card:hover,
.sum-card:hover,
.rad-card:hover,
.persp-card:hover,
.comm-card:hover,
.express-card:hover,
.d-article:hover,
.brief-item:hover,
.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
}

/* Smooth fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-card,
.news-card,
.rep-card,
.entry {
    animation: fadeInUp 0.5s ease forwards;
}

.hero-card:nth-child(1) { animation-delay: 0.05s; }
.hero-card:nth-child(2) { animation-delay: 0.1s; }
.news-card:nth-child(1) { animation-delay: 0.05s; }
.news-card:nth-child(2) { animation-delay: 0.1s; }
.news-card:nth-child(3) { animation-delay: 0.15s; }
.news-card:nth-child(4) { animation-delay: 0.2s; }
.rep-card:nth-child(1) { animation-delay: 0.05s; }
.rep-card:nth-child(2) { animation-delay: 0.1s; }
.entry:nth-child(1) { animation-delay: 0.05s; }
.entry:nth-child(2) { animation-delay: 0.1s; }

/* Section title enhancements */
.section-title {
    font-size: 1.8em;
    margin-bottom: 32px;
    font-weight: 800;
    position: relative;
    padding-bottom: 14px;
}

.section-title::after {
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

/* Button enhancements */
.btn-primary {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Category tag enhancements */
.category-tag,
.tag {
    transition: all 0.3s ease;
}

.category-tag:hover,
.tag:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .news-card,
    .rep-card,
    .entry,
    .hero-card img,
    .news-card img,
    .hero-card .hero-content,
    .news-card .news-content {
        transition: none;
        animation: none;
    }
    
    .hero-card:hover,
    .news-card:hover,
    .rep-card:hover,
    .entry:hover {
        transform: none;
    }
    
    .hero-card:hover img,
    .news-card:hover img {
        transform: none;
    }
}


/* ===== UNIQUE LOADER (circle/0wvsnoj54ldc) ===== */
.loader {
  width: 48px;
  height: 48px;
  display: inline-block;
  position: relative;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fde68a;
  position: absolute;
  left: 0;
  top: 0;
  animation: animloader 2s linear infinite;
}
.loader::after {
  animation-delay: 1s;
}

@keyframes animloader {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===== MOBILE SPACING FIXES ===== */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md) !important; }
    .site-footer { padding: 40px var(--space-md) 30px; }
    .legal-page { padding: 0 var(--space-md); }
}

@media (max-width: 600px) {
    .site-footer { padding: 30px var(--space-sm); }
    .legal-page { padding: 0 var(--space-sm); }
    .news-grid { gap: 20px; }
}
