/*
Theme Name: Pancho El Adivino
Theme URI: https://perimagico.mx
Author: Perimágico
Author URI: https://perimagico.mx
Description: Tema oficial de Pancho El Adivino — el Oráculo del Fútbol del Mundial 2026. Cabra vidente de Perimágico, México.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pancho-adivino
Tags: one-column, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready, blog, sports, entertainment
*/

/* ============================================================
   PANCHO EL ADIVINO — MINIMAL EDITION
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500&display=swap');

/* --- VARIABLES --- */
:root {
    --bg:        #0a0a0a;
    --surface:   #d4c9b0;
    --border:    #222222;
    --gold:      #bc9208;
    --gold-dim:  #5a4920;
    --green-mid: #a76a00;
    --text:      #d4c9b0;
    --muted:     #cbcbcb;
    --white:     #f0ebe0;
    --red:       #a83232;
    --ff-display: 'Bebas Neue', sans-serif;
    --ff-serif:   'DM Serif Display', serif;
    --ff-sans:    'DM Sans', sans-serif;
    --ease:       0.25s ease;
    --max:        1140px;
}



/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--ff-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.pd-b-40px{
    padding-bottom: 40px;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--white); }

/* --- LAYOUT --- */
.container {
    max-width: var(--max);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* ============================================================
   SECTION LABEL
   ============================================================ */
.section-label {
    font-family: var(--ff-sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}
.section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,10,10,0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 64px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.site-branding .custom-logo-link img {
    height: 36px;
    width: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--gold-dim);
    transition: border-color var(--ease);
}
.site-branding .custom-logo-link:hover img { border-color: var(--gold); }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--ff-display);
    font-size: 1.35rem;
    color: var(--white);
    letter-spacing: 0.04em;
}
.brand-tagline {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.15rem;
}

.site-nav { flex: 1; display: flex; justify-content: center; }
.site-nav ul { list-style: none; display: flex; gap: 0.1rem; }

.site-nav a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.4rem 0.85rem;
    border-radius: 2px;
    transition: color var(--ease);
}
.site-nav a:hover,
.site-nav .current-menu-item a,
.site-nav .current_page_item a { color: var(--white); }

.header-record { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }

.record-stat { text-align: right; }
.record-stat .number {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--muted);
}
.record-stat.hits .number   { color: var(--green-mid); }
.record-stat.misses .number { color: var(--red); }
.record-stat .label {
    font-size: 0.55rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.record-divider { width: 1px; height: 28px; background: var(--border); }

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    color: var(--text);
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding-block: clamp(5rem, 4vw, 10rem);
    border-bottom: 1px solid var(--border);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.hero-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--ff-display);
    font-size: clamp(5rem, 14vw, 10rem);
    line-height: 0.9;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--ff-serif);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--gold);
    font-style: italic;
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--border);
    line-height: 1.8;
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right { text-align: right; padding-bottom: 0.5rem; }

.hero-record-label {
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.hero-record-grid {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
}

.hero-record-item .big-number {
    font-family: var(--ff-display);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1;
    color: var(--border);
}
.hero-record-item.is-hits .big-number   { color: var(--green-mid); }
.hero-record-item.is-misses .big-number { color: var(--red); }
.hero-record-item .record-name {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.25rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-sans);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.75rem 1.75rem;
    border: 1px solid;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--bg);
}

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}
.btn-outline:hover {
    border-color: var(--text);
    color: var(--white);
}

/* ============================================================
   PITCH
   ============================================================ */
.pitch-section {
    padding-block: 5rem;
    border-bottom: 1px solid var(--border);
}

.pitch-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--gold);
}

.pitch-card {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--gold);
    transition: background var(--ease);
}
.pitch-card:last-child { border-right: none; }
.pitch-card:hover { background: var(--surface); }

.pitch-card-num {
    font-family: var(--ff-display);
    font-size: 3rem;
    color: var(--border);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.pitch-card-title {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.pitch-card p { font-size: 0.9rem; color: var(--border); line-height: 1.75; }

/* ============================================================
   POSTS GRID
   ============================================================ */
.predictions-section { padding-block: 5rem; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.post-card { background: var(--bg); transition: background var(--ease); }
.post-card:hover { background: var(--surface); }

.post-card-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    filter: grayscale(20%);
    transition: filter var(--ease);
}
.post-card:hover .post-card-thumb { filter: grayscale(0); }

.post-card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--border);
}

.post-card-body { padding: 1.75rem; }

.post-card-meta {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.post-card-title {
    font-family: var(--ff-serif);
    font-size: 1.2rem;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.85rem;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--gold); }

.post-card-excerpt {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-link {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap var(--ease);
}
.post-card-link:hover { color: var(--white); gap: 0.65rem; }
.post-card-link::after { content: '→'; }

.no-posts {
    padding: 5rem 2rem;
    text-align: center;
    color: var(--muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 1px;
    margin-top: 3rem;
    background: var(--border);
    border: 1px solid var(--border);
    width: fit-content;
    margin-inline: auto;
}

.pagination .page-numbers {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.6rem 1rem;
    color: var(--muted);
    background: var(--bg);
    transition: all var(--ease);
}
.pagination .page-numbers:hover,
.pagination .current {
    background: var(--surface);
    color: var(--white);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-article {
    max-width: 720px;
    margin-inline: auto;
    padding-block: 5rem;
}

.article-meta {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}

.article-title {
    font-family: var(--ff-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    line-height: 0.95;
    margin-bottom: 2rem;
}

.article-featured-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 3rem;
    filter: grayscale(15%);
}

.article-content { font-size: 1rem; line-height: 1.85; color: var(--text); }
.article-content h2, .article-content h3 {
    font-family: var(--ff-serif);
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1rem;
}
.article-content p { margin-bottom: 1.5rem; }
.article-content a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold-dim);
    transition: border-color var(--ease);
}
.article-content a:hover { border-color: var(--gold); }
.article-content blockquote {
    border-left: 2px solid var(--gold);
    padding: 1rem 1.75rem;
    margin-block: 2.5rem;
    color: var(--muted);
    font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    border-top: 1px solid var(--border);
    padding-block: 3rem;
    margin-top: 5rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .brand-name {
    font-family: var(--ff-display);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.85rem; color: var(--muted); max-width: 300px; line-height: 1.7; }

.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem; }
.footer-links a {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color var(--ease);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.footer-copy {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.footer-tagline {
    font-family: var(--ff-serif);
    font-size: 0.85rem;
    color: var(--gold);
    font-style: italic;
}

/* ============================================================
   WORDPRESS HELPERS
   ============================================================ */
.aligncenter { display: block; margin-inline: auto; }
.alignleft   { float: left;  margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright  { float: right; margin-left:  1.5rem; margin-bottom: 1rem; }
.wp-caption-text { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; font-style: italic; }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-right { text-align: left; }
    .hero-record-grid { justify-content: flex-start; }
    .pitch-grid { grid-template-columns: 1fr; }
    .pitch-card { border-right: none; border-bottom: 1px solid var(--border); }
    .pitch-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
    .header-inner { flex-wrap: wrap; height: auto; padding-block: 1rem; }
    .menu-toggle  { display: flex; align-items: center; }
    .site-nav { width: 100%; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
    .site-nav.is-open { max-height: 400px; }
    .site-nav ul { flex-direction: column; gap: 0; padding-bottom: 0.75rem; }
    .site-nav a  { display: block; }
    .header-record { display: none; }
    .posts-grid    { grid-template-columns: 1fr; }
    .footer-inner  { flex-direction: column; }
    .footer-links  { align-items: flex-start; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
