/*
Theme Name: Noticias Pro Elegante
Theme URI: https://mrapps.com
Author: z@ulcervantes
Description: Un tema de noticias profesional, limpio, dinámico y elegante.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: noticias-pro
*/

:root {
    --bg-color: #f8f9fa;
    --panel-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #6c757d;
    --primary-color: #0056b3;
    --accent-red: #dc3545;
    --border-color: #e9ecef;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header & Nav */
header {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widgets-header {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.widget-item {
    background: #eef2f7;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.site-title h1 {
    font-size: 28px;
    color: var(--text-color);
}

.main-navigation {
    margin-top: 15px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

/* Breaking News */
.breaking-news-ticker {
    background: var(--accent-red);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-wrap {
    display: flex;
    align-items: center;
}

.ticker-title {
    font-weight: bold;
    text-transform: uppercase;
    background: #bd2130;
    padding: 0 10px;
    margin-right: 15px;
}

/* Main Layout */
.main-content-area {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media(min-width: 768px) {
    .main-content-area {
        grid-template-columns: 2fr 1fr;
    }
}

/* Slider Component */
.news-slider {
    position: relative;
    height: 400px;
    background: #333;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 30px;
}

.slide-item {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

.slide-item.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    padding: 30px;
    color: #fff;
}

.slide-overlay h2 a {
    color: #fff;
    font-size: 24px;
}

/* Loop de Noticias */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.post-card {
    background: var(--panel-bg);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.post-details {
    padding: 15px;
}

.post-details h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.post-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Sidebar */
aside.sidebar {
    background: var(--panel-bg);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    align-self: start;
}

.widget {
    margin-bottom: 30px;
}

.widget-title {
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

/* Single Page */
.entry-header h1 {
    font-size: 32px;
    margin-bottom: 15px;
}

.entry-content {
    background: var(--panel-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    font-size: 17px;
}

/* Footer */
footer {
    background: #212529;
    color: #aaa;
    padding: 40px 0 20px;
    margin-top: 50px;
    font-size: 14px;
}

.footer-content {
    text-align: center;
}
/* Ajustes para el logotipo personalizado */
.site-logo-container img {
    max-height: 70px;
    width: auto;
    display: block;
}
.site-logo-container a {
    display: inline-block;
}