/*
Theme Name: Design-Themem-1.1
Author: Diana Buendía
Version: 1.1
Description: Diseño Web, este es un tema ligero y minimalista, diseñado específicamente para integrarse a la perfección con el plugin Elementor. Es gratuito, de código abierto y está pensado para quienes buscan un sitio web flexible, fácil de usar y personalizable. Optimizado para el rendimiento, ofrece una base sólida para crear diseños únicos con Elementor, un editor visual de arrastrar y soltar.
*/

/* RESET */
/* RESET */
*,*::before,*::after{box-sizing:border-box}

body{
    margin:0;
    font-family:system-ui,-apple-system,sans-serif;
    line-height:1.6;
    color:#111;
}

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

/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:20px;
}

/* =========================
   GRID PRINCIPAL
========================= */
.layout{
    display:grid;
    grid-template-columns:1fr;
    gap:30px;
}

/* =========================
   HERO
========================= */
.hero{
    display:grid;
    grid-template-columns:60% 40%;
    gap:30px;
    align-items:center;
    margin-bottom:30px;
}

.hero-img{
    width:100%;
    height:420px;
    overflow:hidden;
    border-radius:8px;
}

.hero-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.hero-meta{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hero-title{
    font-size:2.5rem;
    font-weight:800;
    line-height:1.2;
    word-break:break-word;
    overflow-wrap:anywhere;
}

.meta{
    font-size:14px;
    color:#777;
    margin-top:10px;
}

/* =========================
   CONTENIDO
========================= */
.content{
    font-size:1.05rem;
    line-height:1.8;
}

/* =========================
   SIDEBAR
========================= */
.sidebar{
    width:100%;
}

/* =========================
   SHARE
========================= */
.share{
    display:flex;
    gap:10px;
    margin-top:30px;
}

.share a{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
}

.fb{background:#1877f2}
.tw{background:#000}
.wa{background:#25d366}
.ln{background:#0a66c2}

/* =========================
   NAV ARTÍCULOS PRO
========================= */
.post-nav-pro{
    display:flex;
    justify-content:space-between;
    gap:20px;
    margin:40px 0;
}

.nav-item{
    width:50%;
}

.nav-label{
    display:block;
    font-size:12px;
    font-weight:700;
    color:#e60023;
    margin-bottom:5px;
    text-transform:uppercase;
}

.nav-title{
    display:block;
    font-size:14px;
    color:#111;
    line-height:1.4;
}

.nav-item.prev{
    text-align:left;
}

.nav-item.next{
    text-align:right;
}

.post-nav-pro a{
    text-decoration:none;
    color:#111;
}

.post-nav-pro a:hover .nav-title{
    text-decoration:underline;
}

/* =========================
   AUTHOR
========================= */
.author-box{
    display:flex;
    gap:20px;
    align-items:flex-start;
    padding:20px;
    margin-top:40px;
    background:#f5f5f5;
    border:1px solid #e5e5e5;
}

.author-img img{
    width:120px;
    height:120px;
    border-radius:6px;
    object-fit:cover;
}

.author-content{
    flex:1;
}

.author-name{
    margin:0 0 10px;
    font-size:20px;
    font-weight:700;
}

.author-bio{
    font-size:14px;
    line-height:1.6;
    color:#444;
}

.author-social{
    margin-top:10px;
    display:flex;
    gap:10px;
}

.author-social a{
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#111;
    color:#fff;
    text-decoration:none;
}

/* =========================
   COMMENTS
========================= */
.comments-area{
    margin-top:50px;
    padding:25px;
    background:#f9f9f9;
    border:1px solid #eee;
}

.comment-list{
    list-style:none;
    padding:0;
}

.comment{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #eee;
}

.comment-form label{
    font-size:13px;
    font-weight:600;
}

.comment-form textarea,
.comment-form input{
    width:100%;
    padding:10px;
    border:1px solid #ddd;
    margin-bottom:10px;
}

.comment-form textarea{
    height:140px;
}

.comment-form input[type="submit"]{
    background:#ff5a00;
    color:#fff;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    font-weight:600;
}

/* =========================
   RELATED
========================= */
.related{
    margin-top:50px;
}

.related h3{
    font-size:16px;
    font-weight:700;
    border-bottom:2px solid #eee;
    padding-bottom:8px;
    margin-bottom:20px;
}

.related-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.rel-item img{
    width:100%;
    height:160px;
    object-fit:cover;
}

.rel-item h4{
    font-size:14px;
    margin-top:8px;
    line-height:1.3;
}

/* =========================
   BREADCRUMBS
========================= */
.breadcrumbs{
    font-size:0.85rem;
    color:#666;
    margin-bottom:12px;
}

/* =========================
   CATEGORY PRO
========================= */

.category-title{
    font-size:28px;
    font-weight:800;
    margin-bottom:25px;
}

.category-list{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.category-card{
    display:grid;
    grid-template-columns:280px 1fr;
    gap:20px;
    padding-bottom:25px;
    border-bottom:1px solid #eee;
}

.cat-img{
    height:180px;
    overflow:hidden;
    border-radius:8px;
}

.cat-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.cat-content{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.cat-meta{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:12px;
    color:#777;
    margin-bottom:8px;
}

.cat-meta img{
    border-radius:50%;
}

.cat-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:8px;
    line-height:1.3;
}

.cat-title a{
    color:#111;
    text-decoration:none;
}

.cat-excerpt{
    font-size:14px;
    color:#555;
    margin-bottom:12px;
}

.btn-read{
    background:#0b1a3a;
    color:#fff;
    padding:8px 14px;
    text-decoration:none;
    font-size:13px;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px){
    .category-card{
        grid-template-columns:200px 1fr;
    }
}

@media(max-width:768px){

    .category-card{
        grid-template-columns:1fr;
    }

    .cat-img{
        height:200px;
    }
}

/* =========================
   🔥 FIX LAYOUT DESKTOP
========================= */
@media(min-width:1024px){

    .layout{
        grid-template-columns: minmax(0,1fr) 300px;
        gap:40px;
        align-items:start;
    }

    .sidebar{
        position:sticky;
        top:20px;
    }

}

/*=================
 * 
 ==============
/* =========================
   RELACIONADOS PRO
========================= */

.related-title{
    font-size:16px;
    font-weight:800;
    border-bottom:2px solid #eee;
    padding-bottom:8px;
    margin-bottom:20px;
    position:relative;
}

.related-title::after{
    content:"";
    position:absolute;
    bottom:-2px;
    left:0;
    width:60px;
    height:3px;
    background:#ff5a00;
}

/* GRID */
.related-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:25px;
}

/* CARD */
.rel-card{
    transition:0.3s;
}

.rel-card a{
    text-decoration:none;
    color:#111;
}

/* IMAGEN */
.rel-img{
    height:180px;
    overflow:hidden;
}

.rel-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}

/* CONTENIDO */
.rel-content{
    margin-top:10px;
}

/* CATEGORÍA */
.rel-cat{
    font-size:11px;
    text-transform:uppercase;
    color:#888;
    display:block;
    margin-bottom:5px;
}

/* TÍTULO */
.rel-title{
    font-size:16px;
    font-weight:700;
    line-height:1.3;
    margin-bottom:8px;

    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

/* META */
.rel-meta{
    font-size:12px;
    color:#777;
    display:flex;
    gap:6px;
}

/* HOVER */
.rel-card:hover img{
    transform:scale(1.05);
}

/* =========================
   RESPONSIVE
========================= */

@media(min-width:768px){
    .related-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(min-width:1024px){
    .related-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

/* =========================
   PAGINATION PRO
========================= */

.pagination-pro{
    margin-top:40px;
    display:flex;
    justify-content:center;
}

/* LINKS */
.pagination-pro .page-numbers{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    margin:0 5px;
    border-radius:50%;
    border:1px solid #ddd;
    text-decoration:none;
    color:#333;
    font-size:14px;
    transition:0.3s;
}

/* HOVER */
.pagination-pro .page-numbers:hover{
    background:#f2f2f2;
}

/* ACTIVO (como tu imagen 🔥) */
.pagination-pro .current{
    background:#ff4d4d;
    color:#fff;
    border-color:#ff4d4d;
}

/* NEXT / PREV */
.pagination-pro .prev,
.pagination-pro .next{
    font-size:18px;
}

.pagination-pro .page-numbers{
    box-shadow:0 2px 6px rgba(0,0,0,0.05);
}