:root {
    --primary: #f59e0b;
    --secondary: #b22874;
    --muted: #555;
    --border: #ececec;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    color: #111;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 600;
    line-height: 1;
}


.btn {
    display: inline-block;
    background: var(--secondary);
    color: #fff;
    padding: 7px 50px;
    border-radius: 3px;
    text-transform: uppercase;
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 25px;
}

.btn:hover {
    background: #8a1e59;
}

/* Logo */
.logo {
    display: inline-block;
    font-size: 35px;
    font-weight: 600;
    color: rgb(255, 159, 36);
    text-decoration: none;
}
.logo p { margin-bottom: 0; }
.logo span { color: var(--secondary); }

.title { font-family: "Bebas Neue", sans-serif; font-weight: 600; margin: 0; }

/* Header */
.site-header {
    padding: 20px 0;
    z-index: 4;
    transition: transform .5s;
    background-color: white;
    border-bottom: 1px solid rgb(202, 202, 202);
}

.site-header nav ul{
    padding: 0;
    margin: 0;
}

.site-header nav ul li a {
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    color: #000;
}
.site-header nav ul li a:hover,
.site-header nav ul li a.active { color: var(--secondary); }

.hamburguer {
    border: 2px solid #000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

/* Menú responsivo */
@media (max-width: 991px) {
    #responsive-menu {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2;
        width: 80%;
        height: 100dvh;
        padding: 20px;
        background: #fff;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }
    #responsive-menu.show-menu { transform: translateX(0); }
    #responsive-menu nav { width: 100%; }
    #responsive-menu hr { margin: 40px 0; }
    #responsive-menu nav ul { flex-direction: column; padding: 40px 0 30px; }
}

/* Menú lateral */
#landing-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 4;
    width: 100%;
    max-width: 500px;
    height: 100dvh;
    padding: 40px;
    background-image: linear-gradient(102deg, rgb(221, 62, 19) 0%, rgb(255, 159, 36) 100%);
    transform: translateX(100%);
    transition: transform 0.5s ease;
}
#landing-menu.landing-menu { transform: translateX(0); }
#landing-menu .container { margin-top: -100px; }
#landing-menu h2 {
    font-size: clamp(1.5rem, 5vw, 4.5rem);
    line-height: clamp(1.5rem, 5vw, 4.5rem);
}
#landing-menu h2,
#landing-menu p,
#landing-menu span,
#landing-menu .glitched-landing { color: #fff; }
#landing-menu .glitched-landing {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: clamp(3rem, 5vw, 3.5rem);
}
#landing-menu .x { position: absolute; top: 35px; right: 60px; cursor: pointer; }

/* Hero del listado */
.blog-hero {
    padding: 70px 0 60px;
    background: linear-gradient(120deg, #fdf2f8, #fff7ed, #f5f5f5, #fff, #fdf2f8);
}

.blog-hero h1 {
    font-size: clamp(4rem, 9vw, 7rem);
}

.blog-hero p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-top: 10px;
}

/* Listado */
.blog-list {
    padding-top: 60px;
    padding-bottom: 80px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 5px;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card time {
    font-size: 0.75rem;
    color: var(--muted);
    font-style: italic;
}

.post-card h2 {
    font-size: 2.2rem;
    margin: 8px 0 12px;
}

.post-card h2 a {
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--secondary);
}

.post-card p {
    color: var(--muted);
    margin-bottom: 18px;
}

.read-more {
    margin-top: auto;
    color: var(--secondary);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

/* Paginación */
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pager a {
    color: var(--secondary);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.pager .disabled {
    color: #bbb;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

/* Artículo */
.post { min-width: 0; }

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 50px;
    align-items: start;
    padding-top: 50px;
    padding-bottom: 90px;
}
.post-aside { position: sticky; top: 24px; }

@media (max-width: 991px) {
    .post-layout { grid-template-columns: 1fr; }
    .post-aside { position: static; }
}
.post .back {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--secondary);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}

.post h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
}

.post-meta {
    display: block;
    color: var(--muted);
    margin: 14px 0 28px;
    font-size: 0.9rem;
}

.post-cover {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 36px;
    display: block;
}

.post-content {
    font-size: 1.0625rem;
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content h2 {
    font-size: clamp(2.4rem, 5vw, 3.2rem);
    margin: 1.6em 0 0.5em;
}

.post-content h3 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin: 1.4em 0 0.5em;
}

.post-content ul,
.post-content ol {
    padding-left: 1.4em;
    margin-bottom: 1.2em;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 0.4em;
}

.post-content a {
    color: var(--secondary);
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1em 0;
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1em;
    margin: 1.5em 0;
    color: var(--muted);
}

.post-content pre {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 1.2em;
}

/* Footer */
.site-footer {
    background: linear-gradient(120deg, #fdf2f8, #fff7ed, #f5f5f5, #fff, #fdf2f8);
}

.footer-grid{
    padding-bottom: 80px;
    padding-top: 80px;
}

.footer-grid ul{
    margin-bottom: 30px;
    padding: 0;
}

.site-footer h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 14px;
}

.site-footer a {
    text-decoration: none;
}

.site-footer .footer-grid li {
    margin-bottom: 12px;
}

.site-footer .footer-grid li a {
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.site-footer .footer-grid p {
    margin-bottom: 10px;
}

.site-footer .footer-grid .row > div:first-child{
    margin-bottom: 30px;
}

.site-footer .btn {
    margin-top: 10px;
}

.footer-bottom {
    border-top: 3px solid #000;
    border-bottom: 3px solid #000;
}

.footer-bottom ul {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
}

.footer-bottom ul a {
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

.site-footer .footer-bottom-two{
    padding: 8px 0;
}

.site-footer .footer-bottom-two .social{
    padding: 8px 0
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .site-header nav ul {
        gap: 18px;
    }
}

/* Categorías */
.post-category {
    display: inline-block;
    align-self: flex-start;
    background: var(--secondary);
    color: #fff;
    padding: 0 16px;
    border-radius: 3px;
    margin-bottom: 10px;
    font-family: "Bebas Neue", sans-serif;
    line-height: 1.5;
    text-decoration: none;
}
.post-category:hover { background: #8a1e59; color: #fff; }
.post .post-category { margin-bottom: 14px; }


/* Menú de categorías */
.category-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.category-bar ul {
    display: flex;
    gap: 6px 30px;
    padding: 12px 0;
    overflow-x: auto;
    white-space: nowrap;
}
.category-bar a {
    display: block;
    padding: 2px 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}
.category-bar a:hover,
.category-bar a.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

/* Barra de categorías con buscador */
.category-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.category-bar ul { flex: 1; min-width: 0; }

.search-form {
    display: flex;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    background: #fff;
}
.search-form input {
    width: 200px;
    padding: 6px 12px;
    border: 0;
    outline: 0;
    font: inherit;
    font-size: 0.95rem;
}
.search-form button {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 0;
    background: var(--secondary);
    color: #fff;
    cursor: pointer;
}
.search-form button:hover { background: #8a1e59; }
.search-form-lg { max-width: 560px; margin-top: 20px; }
.search-form-lg input { flex: 1; width: auto; padding: 12px 16px; font-size: 1rem; }
.search-form-lg button {
    padding: 0 26px;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}

/* Portada: hero */
.home-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 50px 0 60px;
}
.home-hero > * { min-width: 0; }
.hero-main { display: grid; gap: 20px; align-content: start; }
.hero-sub { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 5px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(102deg, rgb(221, 62, 19) 0%, rgb(255, 159, 36) 100%);
}
.tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tile:hover img { transform: scale(1.05); }
.tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.05) 65%);
}
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px; }
.tile .post-category { margin-bottom: 8px; }
.tile time { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.85); }
.tile h2 { margin-top: 6px; color: #fff; font-size: 1.9rem; }
.tile-big { min-height: 430px; }
.tile-big h2 { font-size: clamp(2.4rem, 4vw, 3.4rem); }
.tile-small { min-height: 210px; }

/* Portada: barra lateral */
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.side-title {
    font-size: 2rem;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid #000;
}
.mini-post {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    text-decoration: none;
}
.mini-post img,
.thumb-ph { width: 84px; height: 70px; object-fit: cover; border-radius: 4px; }
.thumb-ph { background: linear-gradient(102deg, rgb(221, 62, 19), rgb(255, 159, 36)); }
.mini-post time { display: block; font-size: 0.8rem; color: var(--muted); }
.mini-post h3 { margin: 2px 0 0; font-size: 1.35rem; line-height: 1.05; }
.mini-post:hover h3 { color: var(--secondary); }

.side-cats a {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}
.side-cats a span { color: var(--muted); }
.side-cats a:hover { color: var(--secondary); }

.side-cta {
    padding: 28px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(102deg, rgb(221, 62, 19) 0%, rgb(255, 159, 36) 100%);
}
.side-cta h2 { font-size: 2.2rem; }
.side-cta p { margin: 10px 0 18px; }

/* Portada: secciones por categoría */
.home-section { margin-bottom: 60px; }
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #000;
}
.section-head h2 { font-size: 2.4rem; }
.section-head a {
    color: var(--secondary);
    text-decoration: none;
    font-family: "Bebas Neue", sans-serif;
    font-size: 22px;
    text-transform: uppercase;
}
.home-more { text-align: center; padding-bottom: 90px; }
.home-empty { padding: 80px 0; text-align: center; color: var(--muted); }

@media (max-width: 991px) {
    .home-hero { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .hero-sub { grid-template-columns: 1fr; }
    .tile-big { min-height: 320px; }
    .search-form input { width: 130px; }
}