/* ========================================
   Actualidad Sin Fronteras - Base Styles
   ======================================== */

:root {
    --text-color: #134e4a;
    --text-muted: #2dd4bf;
    --border-color: #99f6e4;
    --card-bg: #ffffff;
    --background-color: #ecfeff;
    --site-primary: #0e7490;
    --site-secondary: #2dd4bf;
    --site-light: #99f6e4;
    --site-bg: #ecfeff;
    --site-text: #134e4a;

    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'DM Sans', sans-serif;

    --space-xs: 0.25rem; --space-sm: 0.5rem; --space-md: 1rem;
    --space-lg: 1.5rem; --space-xl: 2rem; --space-2xl: 3rem;

    --shadow-sm: 0 1px 3px rgba(14, 116, 144, 0.08);
    --shadow-md: 0 4px 6px rgba(14, 116, 144, 0.1);
    --shadow-lg: 0 10px 20px rgba(14, 116, 144, 0.12);

    --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-primary); background: var(--background-color); color: var(--text-color); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* Responsive container */
@media (max-width: 768px) {
    .container { padding: 0 var(--space-md); }
    .category-page { padding: 30px var(--space-md); }
}

/* ===== LAYOUT STYLES ===== */

/* ===== MAGAZINE LAYOUT ===== */
.magazine-layout { max-width: 1400px; margin: 10px auto; padding: 0 24px; }
.magazine-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; background: var(--border-color); border-radius: 16px; overflow: hidden; margin-bottom: 48px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }
.hero-main { position: relative; overflow: hidden; display: block; min-height: 500px; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; position: absolute; transition: transform 0.6s ease; }
.hero-main:hover img { transform: scale(1.05); }
.hero-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px; background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%); color: white; }
.hero-overlay h1 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.15; margin: 12px 0; }
.hero-overlay p { font-size: 1.05rem; opacity: 0.85; line-height: 1.6; margin-bottom: 16px; }
.hero-cat { display: inline-block; padding: 4px 14px; background: var(--site-primary); color: white; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 20px; }
.hero-date { font-size: 0.85rem; opacity: 0.7; }
.magazine-sidebar { background: var(--card-bg); display: flex; flex-direction: column; }
.side-item { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border-color); transition: background 0.3s ease; align-items: center; }
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: rgba(0,0,0,0.03); }
.side-item img { width: 100px; height: 80px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.side-content h4 { font-size: 0.95rem; font-weight: 700; line-height: 1.35; color: var(--text-color); }
.side-cat { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--site-primary); display: block; margin-bottom: 6px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card-img-wrap { overflow: hidden; aspect-ratio: 16/10; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .card-img-wrap img { transform: scale(1.06); }
.news-card { background: var(--card-bg); border-radius: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.35s ease; border: 1px solid rgba(0,0,0,0.04); }
.news-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.news-content { padding: 20px; }
.news-category { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--site-primary); margin-bottom: 8px; display: block; }
.news-title { font-size: 1.15rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--text-color); }
.news-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.55; }
.news-date { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; display: block; opacity: 0.7; }
@media (max-width: 900px) { .magazine-hero { grid-template-columns: 1fr; } .news-grid { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== CATEGORY PAGE ===== */
.category-page { padding: 40px 24px; max-width: 1400px; margin: 0 auto; }
.category-header { margin-bottom: 32px; }
.category-badge { display: inline-block; padding: 4px 14px; background: var(--site-primary); color: white; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; border-radius: 20px; margin-bottom: 12px; }

/* ===== MOBILE SPACING FIXES ===== */
@media (max-width: 600px) {
    .magazine-layout { padding-left: var(--space-md) !important; padding-right: var(--space-md) !important; }
    .cinematic-content { padding: 30px var(--space-md); }
    .bold-overlay { padding: 20px; }
    .split-right { padding: 30px var(--space-md); }
    .hero-text { padding: 24px var(--space-md); }
    .newspaper-masthead { padding: 30px var(--space-md); }
    .featured-body { padding: 24px; }
    .editorial-card { gap: 16px; padding-bottom: 24px; }
}
