/*
Theme Name: Comics Mexicanos
Version: 1.0
*/

/* =========================
   RESET
========================= */

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

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

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

ul{
    list-style:none;
}

/* =========================
   BASE
========================= */

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f4eed8;
    color:#222;
    line-height:1.5;
}

body.admin-bar{
    margin-top:32px;
}

/* =========================
   HEADER
========================= */

.site-header{
    background:#f3d33b;
    border-bottom:3px solid #222;
}

.header-inner{
    margin:0 auto;
    padding:15px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.site-logo-link{
    display:flex;
    align-items:center;
    gap:14px;
}

.site-logo-image{
    width:100px;
    height:auto;
    display:block;
    filter:drop-shadow(3px 3px 0 #111);
}

.site-branding{
    display:flex;
    flex-direction:column;
    line-height:1;
}

.site-title{
    font-size:34px;
    font-weight:900;
    letter-spacing:4px;
    text-transform:uppercase;
    color:#111;
    text-shadow:2px 2px 0 #fff;
}

.site-tagline{
    display:inline-block;
    margin-top:7px;
    font-size:14px;
    font-weight:900;
    color:#111;
    background:#fff8df;
    border:2px solid #111;
    padding:4px 8px;
    width:max-content;
    box-shadow:3px 3px 0 #b62a1f;
}

.site-search{
    display:flex;
    gap:8px;
}

.site-search input{
    width:320px;
    padding:12px 16px;

    background:#fff8df;

    border:3px solid #111;

    font-size:16px;
    font-weight:700;

    color:#111;

    outline:none;

    box-shadow:4px 4px 0 #b62a1f;
}

.site-search input:focus{
    transform:translate(-1px,-1px);

    box-shadow:6px 6px 0 #b62a1f;
}

.site-search button{
    padding:12px 20px;

    border:3px solid #111;

    background:#fff8df;

    color:#111;

    font-size:16px;

    font-weight:900;

    cursor:pointer;

    box-shadow:4px 4px 0 #b62a1f;

    transition:.15s;
}

.site-search button:hover{
    background:#b62a1f;

    color:#fff;

    transform:translate(-1px,-1px);

    box-shadow:6px 6px 0 #111;
}
/* =========================
   MENU
========================= */

.main-nav{
    background:#111;
}

.main-nav ul{
    max-width:1320px;
    margin:0 auto;
    display:flex;
}

.main-nav a{
    display:block;
    color:#fff;
}

.main-nav a:hover{
    background:#333;
}

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

.site-layout{
    max-width:1320px;
    margin:10px auto;
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.site-content{
    width:1000px;
}

.site-sidebar{
    width:300px;
    flex-shrink:0;
}

/* =========================
   TITULOS
========================= */

.section-title,
.collections-title,
.collection-title,
.reader-title{
    font-size:32px;
    margin-bottom:10px;
}

/* =========================
   GRID COMICS
========================= */

.comic-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:20px;
}


.comic-card:hover{
    transform:translateY(-3px);
}

.comic-cover{
    aspect-ratio:3/4;
    overflow:hidden;
    background:#e5e5e5;
}

.comic-image{
    width:100%;
    height:100%;
    object-fit:cover;
}

.comic-title{
    margin-top:10px;
    font-size:14px;
    text-align:center;
    font-weight:bold;
}

/* =========================
   SIDEBAR
========================= */

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

.ad-slot{
    background:#fff;
    border:1px solid #ccc;
    margin-bottom:20px;
}

.ad-slot-large{
    height:600px;
}

.ad-slot-medium{
    height:250px;
}

/* =========================
   LECTOR
========================= */

.comic-reader{
    background:#fff;
    padding:10px;
}

.reader-header{
    margin-bottom:15px;
}

.comic-pages{
    display:flex;
    flex-direction:column;
    align-items:center;
}

.comic-page{
    width:auto;
    max-width:100%;
    height:auto;
}

.reader-navigation{
    margin-top:30px;
    display:flex;
    justify-content:space-between;  
}

.reader-navigation a{
    font-weight:bold;
}

/* =========================
   COLECCIONES
========================= */

.collections-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.collection-card{
    background:#fff;
    border:1px solid #ddd;
    padding:20px;
}

.collection-name{
    font-size:20px;
    font-weight:bold;
    margin-bottom:10px;
}

/* =========================
   FOOTER
========================= */

.site-footer{
    margin-top:40px;
    background:#111;
    color:#fff;
	font-size:12px;
}
.site-footer a:hover{
	color:yellow;
}
.footer-inner{
    margin:0 auto;
    padding:20px;
}
body{
    background:#f3e8c8;
    color:#151515;
    font-family:Arial, Helvetica, sans-serif;
}

/* Header más tipo kiosco */
.site-header{
    background:#f1c928;
    border-bottom:4px solid #111;
}


.site-title{
    font-size:34px;
    font-weight:900;
    letter-spacing:2px;
    text-transform:uppercase;
}

.site-tagline{
    font-size:15px;
    font-weight:700;
}

/* Menú más fuerte */
.main-nav{
    background:#111;
    border-bottom:4px solid #b62a1f;
}

.main-nav a{
    font-size:17px;
    font-weight:900;
    padding:10px 24px;
}

.main-nav a:hover{
    background:#b62a1f;
}


/* Tarjetas más tipo revista */
.comic-card{
    background:#fff8df;
    border:3px solid #111;
    padding:3px;
    box-shadow:6px 6px 0 #b62a1f;
    transition:.15s;
}

.comic-card:hover{
    transform:translate(-2px,-2px);
    box-shadow:8px 8px 0 #b62a1f;
}

/* Imagen */
.comic-cover{
    background:#e6d49b;
    border:2px solid #111;
}

.comic-image{
    width:100%;
    display:block;
}

/* Texto de tarjeta */
.comic-title{
    font-size:16px;
    font-weight:900;
    text-align:center;
    margin-top:12px;
    color:#111;
}

/* Sidebar publicidad */
.site-sidebar{
    background:#fff8df;
    border:3px solid #111;
    padding:12px;
    box-shadow:6px 6px 0 #111;
}

.ad-slot{
    background:#fff;
    border:2px dashed #777;
}

/* =========================
   MOVIL
========================= */

@media(max-width:1100px){

    .site-layout{
        flex-direction:column;
        padding:0 15px;
    }

    .site-content{
        width:100%;
    }

    .site-sidebar{
        width:100%;
        position:static;
    }

    .comic-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .collections-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .header-inner{
        flex-direction:column;
    }

    .site-search{
        width:100%;
    }

    .site-search input{
        width:100%;
    }
}
@media(max-width:900px){
    .collections-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:600px){
    .collections-grid{
        grid-template-columns:1fr;
    }
}
.site-logo-link{
    display:block;
}

.site-logo-full{
    width:300px;
    max-width:100%;
    height:auto;
    display:block;
}

/* Ajuste del header con logo horizontal */
.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px;
}

/* Móvil */
@media(max-width:700px){

    .header-inner{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .site-logo-full{
        width:100%;
        max-width:420px;
    }

   .site-search{
        width:100%;
    }

    .site-search input{
        flex:1;
        width:auto;
    }
}
/* =========================
   PÁGINA COLECCIONES
========================= */

.collections-header{
    margin-bottom:30px;
}

.collections-title{
    display:inline-block;
    font-size:38px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:2px;
    background:#f1c928;
    border:4px solid #111;
    padding:8px 18px;
    box-shadow:6px 6px 0 #b62a1f;
	margin-bottom:5px;
}

.collections-description{
    margin-top:18px;
    font-size:18px;
    font-weight:700;
}

.collections-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:28px;
}

.collection-card{
    background:#fff8df;
    border:4px solid #111;
    padding:5px;
    box-shadow:7px 7px 0 #b62a1f;
    transition:.15s;
}

.collection-card:hover{
    transform:translate(-3px,-3px);
    box-shadow:10px 10px 0 #111;
}

.collection-link{
    display:block;
}

.collection-cover{
    background:#e6d49b;
    border:3px solid #111;
    margin-bottom:14px;
}

.collection-image{
    width:100%;
    height:auto;
    display:block;
}

.collection-name{
    font-size:22px;
    font-weight:900;
    text-transform:uppercase;
    line-height:1.1;
    margin-bottom:8px;
}

.collection-total{
    display:inline-block;
    background:#111;
    color:#fff8df;
    font-weight:900;
    padding:4px 10px;
    border:2px solid #111;
    box-shadow:3px 3px 0 #b62a1f;
}
@media(max-width:900px){

    .collections-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:600px){
 .collection-name{
        font-size:15px;
    }

    .collections-title{
        font-size:20px;
    }
}

.collection-count{
    display:inline-block;

    background:#111;

    color:#fff8df;

    padding:6px 12px;

    font-size:16px;

    font-weight:900;

    border:2px solid #111;

    box-shadow:4px 4px 0 #b62a1f;

    margin-bottom:20px;
}
.collection-order{
    display:flex;

    gap:12px;

    margin:10px 0 15px;
}

.order-link{
    display:inline-block;

    background:#fff8df;

    color:#111;

    text-decoration:none;

    padding:10px 16px;

    border:3px solid #111;

    font-weight:900;

    box-shadow:4px 4px 0 #b62a1f;

    transition:.15s;
}

.order-link:hover{
    background:#b62a1f;

    color:#fff;

    transform:translate(-2px,-2px);

    box-shadow:6px 6px 0 #111;
}
.reader-navigation{
    display:grid;
    grid-template-columns:1fr auto 1fr;
    align-items:center;
	margin:10px;
}

.reader-navigation a{
    display:inline-block;
    background:#f1c928;
    color:#111;

    border:3px solid #111;
    padding:9px 14px;

    font-weight:900;
    text-decoration:none;

    box-shadow:4px 4px 0 #111;
    transition:.15s;
}

.reader-navigation a:hover{
    background:#b62a1f;
    color:#fff;
    transform:translate(-2px,-2px);
}

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

.reader-nav-collection{
    text-align:center;
}

.reader-nav-next{
    text-align:right;
}
@media(max-width:600px){

    .reader-navigation{
        display:grid;
        grid-template-columns:1fr auto 1fr;

        align-items:center;

        gap:10px;

        padding:10px;

        margin:20px 0;
    }

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

    .reader-nav-collection{
        text-align:center;
    }

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

    .reader-navigation a{
        padding:8px 10px;

        font-size:14px;

        box-shadow:2px 2px 0 #111;
    }
}
/* =========================
   PAGINACIÓN
========================= */

.pagination{
    margin:40px 0;

    display:flex;
    justify-content:center;
}

.pagination .page-numbers{
    display:inline-block;

    margin:0 4px;

    padding:10px 16px;

    background:#fff8df;

    border:3px solid #111;

    color:#111;

    text-decoration:none;

    font-weight:900;

    box-shadow:4px 4px 0 #b62a1f;

    transition:.15s;
}

.pagination .page-numbers:hover{
    background:#b62a1f;

    color:#fff;

    transform:translate(-2px,-2px);

    box-shadow:6px 6px 0 #111;
}

.pagination .current{
    background:#f1c928;

    color:#111;

    border:3px solid #111;

    box-shadow:4px 4px 0 #111;
}
@media(max-width:600px){

    .pagination{
        flex-wrap:wrap;
        gap:6px;
    }

    .pagination .page-numbers{
        padding:8px 12px;
        font-size:14px;
    }
}
