/*
Theme Name: Desing-Sulim
Theme URI: https://manus.im/
Author: Manus AI
Author URI: https://manus.im/
Description: Un tema de WordPress inspirado en Infobae.com, altamente personalizable desde el Customizer.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desing-sulim
*/

/* Reset y Estilos Base */
body {
    font-family: 'Roboto', sans-serif;
    color: #1f1f1f;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Variables de Color (se sobrescribirán con el Customizer) */
:root {
    --primary-color: #e60000; /* Rojo por defecto */
    --text-color: #1f1f1f;
}

/* Header Estilo Infobae */
.site-header {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.site-logo img {
    max-height: 50px;
}

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

/* Widgets Estilo Infobae */
.widget-title {
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.2rem;
}

/* Layout de Noticias tipo Infobae */
.content-area {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.news-item {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-item .entry-title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-top: 15px;
}

.news-item .entry-title a:hover {
    color: var(--primary-color);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
}

.widget-area {
    border-left: 1px solid #eee;
    padding-left: 30px;
}

/* Footer */
.site-footer {
    background: #f4f4f4;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
    border-top: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
    .content-area {
        grid-template-columns: 1fr;
    }
    .widget-area {
        border-left: none;
        padding-left: 0;
    }
}

/* Estilos Widget Noticias Destacadas */
.infobae-style-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.featured-news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.featured-news-item .thumb {
    flex: 0 0 100px;
}

.featured-news-item .thumb img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.featured-news-item h3 {
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
}

.featured-news-item h3 a:hover {
    color: var(--primary-color);
}

/* Nuevo Layout de Portada Full-Width */
.home-hero-section {
    background: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.home-widget-area {
    padding: 40px 0;
    border-bottom: 1px solid #f4f4f4;
}

.home-section-widget {
    margin-bottom: 20px;
}

/* Infobae Pro Layout (Grid System) */
.infobae-pro-layout {
    display: grid;
    gap: 20px;
}

/* Layout 5 Noticias: 1 Grande + 4 pequeñas */
.infobae-pro-layout.grid-5 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
}

.infobae-pro-layout.grid-5 .large-item {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Layout 3 Noticias: 1 Grande + 2 pequeñas */
.infobae-pro-layout.grid-3 {
    grid-template-columns: 2fr 1fr;
}

.infobae-pro-layout.grid-3 .large-item {
    grid-column: 1 / 2;
}

/* Layout 1 Noticia: Full Width */
.infobae-pro-layout.grid-1 .full-item {
    max-width: 900px;
    margin: 0 auto;
}

/* Estilos de los items del Widget Pro */
.news-item-pro {
    position: relative;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
}

.news-item-pro .thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.news-item-pro .entry-title {
    font-size: 1.1rem;
    margin: 10px 0;
    line-height: 1.3;
}

.news-item-pro.large-item .entry-title {
    font-size: 2.2rem;
    font-weight: 800;
}

.news-item-pro.full-item .entry-title {
    font-size: 2.5rem;
    text-align: center;
}

.news-item-pro .entry-excerpt {
    color: #666;
    font-size: 0.95rem;
    margin-top: 10px;
}

.news-item-pro:hover .entry-title {
    color: var(--primary-color);
}

/* Responsive Pro Layout */
@media (max-width: 992px) {
    .infobae-pro-layout.grid-5, 
    .infobae-pro-layout.grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    .infobae-pro-layout.grid-5 .large-item,
    .infobae-pro-layout.grid-3 .large-item {
        grid-column: 1 / 3;
    }
}

@media (max-width: 600px) {
    .infobae-pro-layout.grid-5, 
    .infobae-pro-layout.grid-3 {
        grid-template-columns: 1fr;
    }
    .infobae-pro-layout.grid-5 .large-item,
    .infobae-pro-layout.grid-3 .large-item {
        grid-column: 1 / 2;
    }
    .news-item-pro.large-item .entry-title {
        font-size: 1.5rem;
    }
}
