/*
 Theme Name:   Astra Child - DeFacto Magazine
 Theme URI:    https://wpastra.com/
 Description:  Tema Child de Astra optimizado para Revista/Noticias. Sin animaciones, super ligero.
 Author:       Asistente
 Author URI:   https://defactomexico.com
 Template:     astra
 Version:      1.0.0
 Text Domain:  astra-child-magazine
*/

/* ==========================================================================
   1. VARIABLES Y RESET (Ligero y sin animaciones)
   ========================================================================== */
:root {
    --color-destacado: #ff5248;
    --color-menu: #ff5248;
    --color-links: #ff5248;
    --color-footer: #ff5248;
    --color-texto: #333333;
    --color-fondo: #f9f9f9;
}

/* Remover todas las animaciones y transiciones para máxima velocidad */
* {
    animation: none !important;
    transition: none !important;
    box-sizing: border-box;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

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

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   2. HEADER Y NAVEGACIÓN
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 2px solid var(--color-destacado);
    padding: 15px 20px;
    text-align: center;
}

.site-branding img {
    max-width: 250px;
    margin: 0 auto 15px auto;
}

.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

/* ==========================================================================
   3. LAYOUT FRONT-PAGE (Magazine Grid)
   ========================================================================== */
.mag-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* Top Carousel/Grid (Estilo Screenshot 1) */
.mag-top-stories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.mag-top-card {
    background: #fff;
    border-bottom: 3px solid var(--color-destacado);
}

.mag-top-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.mag-top-card-content {
    padding: 10px;
}

.mag-top-card-content h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

/* Main Magazine Area (Estilo Screenshot 2) */
.mag-main-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 992px) {
    .mag-main-layout {
        grid-template-columns: 250px 1fr 250px;
    }
}

.mag-section-title {
    font-size: 18px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--color-destacado);
    padding-bottom: 5px;
    margin-bottom: 15px;
    color: #000;
}

/* Sidebar Listado */
.mag-list-post {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.mag-list-post img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.mag-list-post h4 {
    font-size: 13px;
    margin: 0;
    line-height: 1.2;
}

/* Center Featured */
.mag-featured-main {
    margin-bottom: 20px;
}

.mag-featured-main img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
}

.mag-featured-main h2 {
    font-size: 28px;
    margin: 10px 0;
}

.mag-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* ==========================================================================
   4. SINGLE POST & PAGE (Sin Sidebar)
   ========================================================================== */
.mag-single-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 15px;
    background: #fff;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mag-single-title {
    font-size: 32px;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.2;
}

.mag-single-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.mag-single-content {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
}

/* Notas Relacionadas */
.mag-related-posts {
    margin-top: 40px;
    border-top: 2px solid var(--color-destacado);
    padding-top: 20px;
}

.mag-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* ==========================================================================
   5. ARCHIVOS Y CATEGORÍAS
   ========================================================================== */
.mag-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.mag-archive-card {
    background: #fff;
    padding-bottom: 15px;
}

.mag-archive-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--color-footer);
    color: #ffffff;
    padding: 30px 15px;
    text-align: center;
    margin-top: 40px;
}

.site-footer a {
    color: #ffffff;
    font-weight: bold;
}