/*
Theme Name: The Toys Garage
Theme URI: https://thetoysgarage.com
Author: The Toys Garage
Author URI: https://thetoysgarage.com
Description: Tema WordPress propio para The Toys Garage — blog de coleccionismo de autos diecast 1:64 (Hot Wheels, Matchbox, Majorette y más). Diseno industrial tipo garaje/pista, image-forward, optimizado para SEO, Core Web Vitals y monetizacion con Google AdSense + afiliados. Sin dependencia de Astra ni Elementor.
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: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-toys-garage
Tags: blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================================
   THE TOYS GARAGE — Design System
   Paleta:  rojo Hot Wheels #E63323 | negro garaje #1A1A2E | naranja pista #F5A623
   Fuentes: Oswald (titulos) + Lato (cuerpo)
   ========================================================================= */

:root {
    /* Colores */
    --ttg-red: #E63323;
    --ttg-red-dark: #B81F12;
    --ttg-dark: #1A1A2E;
    --ttg-dark-2: #23233d;
    --ttg-orange: #F5A623;
    --ttg-bg: #FFFFFF;
    --ttg-bg-alt: #F4F4F4;
    --ttg-bg-sidebar: #F4F4F4;
    --ttg-text: #2C2C2C;
    --ttg-muted: #6b6b78;
    --ttg-border: #e4e4ea;
    --ttg-link: #E63323;

    /* Tipografia */
    --ttg-font-head: "Oswald", "Arial Narrow", sans-serif;
    --ttg-font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

    /* Escala */
    --ttg-h1: clamp(28px, 4.5vw, 42px);
    --ttg-h2: clamp(24px, 3.2vw, 30px);
    --ttg-h3: clamp(20px, 2.4vw, 22px);
    --ttg-base: 17px;

    /* Layout */
    --ttg-wrap: 1200px;
    --ttg-content: 1200px;
    --ttg-gap: 40px;
    --ttg-radius: 6px;
    --ttg-shadow: 0 6px 22px rgba(26, 26, 46, 0.10);
    --ttg-shadow-hover: 0 14px 34px rgba(26, 26, 46, 0.18);

    /* Bandera a cuadros (acento "meta") */
    --ttg-checker: repeating-conic-gradient(var(--ttg-dark) 0% 25%, #fff 0% 50%) 50% / 14px 14px;
}

/* ----- Reset suave ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ttg-font-body);
    font-size: var(--ttg-base);
    line-height: 1.7;
    color: var(--ttg-text);
    background: var(--ttg-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ttg-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--ttg-red-dark); }
figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ttg-font-head);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ttg-dark);
    margin: 0 0 .5em;
    letter-spacing: .3px;
}
h1 { font-size: var(--ttg-h1); }
h2 { font-size: var(--ttg-h2); }
h3 { font-size: var(--ttg-h3); }
p { margin: 0 0 1.25em; }

/* ----- Utilidades de layout ----- */
.ttg-wrap { width: 100%; max-width: var(--ttg-wrap); margin-inline: auto; padding-inline: 20px; }
.ttg-skip-link { position: absolute; left: -9999px; top: 0; background: var(--ttg-red); color: #fff; padding: 10px 16px; z-index: 9999; }
.ttg-skip-link:focus { left: 10px; top: 10px; color: #fff; }
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* Franja a cuadros reutilizable (finish-line) */
.ttg-checker-strip { height: 8px; background: var(--ttg-checker); }

/* =========================================================================
   TOP BAR
   ========================================================================= */
.ttg-topbar {
    background: var(--ttg-dark);
    color: #cfcfe0;
    font-family: var(--ttg-font-head);
    font-size: 13px;
    letter-spacing: .6px;
    text-transform: uppercase;
}
.ttg-topbar .ttg-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.ttg-topbar__note { opacity: .85; }
.ttg-topbar__note strong { color: var(--ttg-orange); font-weight: 700; }
.ttg-social { display: flex; gap: 14px; align-items: center; }
.ttg-social a { color: #cfcfe0; display: inline-flex; }
.ttg-social a:hover { color: var(--ttg-orange); }
.ttg-social svg { width: 18px; height: 18px; fill: currentColor; }

/* =========================================================================
   HEADER
   ========================================================================= */
.ttg-header { background: #fff; border-bottom: 3px solid var(--ttg-dark); position: relative; }
.ttg-header .ttg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }

.ttg-brand { display: flex; align-items: center; gap: 14px; }
.ttg-brand img { max-height: 60px; width: auto; }
.ttg-brand__text { line-height: 1; }
.ttg-brand__title {
    font-family: var(--ttg-font-head);
    font-weight: 700;
    font-size: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--ttg-dark);
    margin: 0;
}
.ttg-brand__title .accent { color: var(--ttg-red); }
.ttg-brand__tagline {
    font-family: var(--ttg-font-body);
    font-size: 11.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--ttg-muted);
    margin-top: 4px;
}

/* Navegacion principal */
.ttg-nav { display: flex; align-items: center; gap: 8px; }
.ttg-menu { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.ttg-menu li { position: relative; }
.ttg-menu a {
    font-family: var(--ttg-font-head);
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ttg-dark);
    padding: 10px 12px;
    display: block;
    border-radius: 4px;
}
.ttg-menu a:hover, .ttg-menu .current-menu-item > a, .ttg-menu .current-menu-parent > a {
    color: var(--ttg-red);
}
.ttg-menu .menu-item-has-children > a::after { content: " ▾"; font-size: 11px; opacity: .7; }

/* Submenus */
.ttg-menu ul.sub-menu {
    list-style: none; margin: 0; padding: 8px 0;
    position: absolute; top: 100%; left: 0; min-width: 230px;
    background: var(--ttg-dark); border-top: 3px solid var(--ttg-red);
    box-shadow: var(--ttg-shadow); opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .18s ease; z-index: 200;
}
.ttg-menu li:hover > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ttg-menu ul.sub-menu a { color: #e7e7f0; padding: 9px 18px; font-size: 14px; border-radius: 0; }
.ttg-menu ul.sub-menu a:hover { color: var(--ttg-orange); background: var(--ttg-dark-2); }

/* Boton de busqueda */
.ttg-search-toggle {
    background: var(--ttg-bg-alt); border: none; cursor: pointer;
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--ttg-dark); transition: background .15s ease, color .15s ease;
}
.ttg-search-toggle:hover { background: var(--ttg-red); color: #fff; }
.ttg-search-toggle svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburguesa mobile */
.ttg-burger {
    display: none; background: var(--ttg-dark); border: none; cursor: pointer;
    width: 46px; height: 46px; border-radius: 5px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.ttg-burger span { display: block; width: 22px; height: 2.5px; background: #fff; border-radius: 2px; transition: .2s; }
.ttg-burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.ttg-burger.is-open span:nth-child(2) { opacity: 0; }
.ttg-burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Panel de busqueda desplegable */
.ttg-search-panel {
    display: none; background: var(--ttg-dark); padding: 18px 0;
}
.ttg-search-panel.is-open { display: block; }
.ttg-search-panel form { display: flex; gap: 0; max-width: 640px; margin: 0 auto; }
.ttg-search-panel input[type="search"] {
    flex: 1; border: none; padding: 14px 18px; font-size: 16px; font-family: var(--ttg-font-body);
    border-radius: 4px 0 0 4px;
}
.ttg-search-panel button {
    background: var(--ttg-red); color: #fff; border: none; cursor: pointer;
    padding: 0 22px; font-family: var(--ttg-font-head); text-transform: uppercase;
    letter-spacing: 1px; border-radius: 0 4px 4px 0;
}
.ttg-search-panel button:hover { background: var(--ttg-red-dark); }

/* =========================================================================
   BOTONES
   ========================================================================= */
.ttg-btn {
    display: inline-block; background: var(--ttg-red); color: #fff;
    font-family: var(--ttg-font-head); font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; font-size: 15px; padding: 13px 28px; border-radius: 4px;
    border: none; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.ttg-btn:hover { background: var(--ttg-orange); color: var(--ttg-dark); transform: translateY(-2px); }
.ttg-btn--ghost { background: transparent; border: 2px solid #fff; color: #fff; padding: 11px 26px; }
.ttg-btn--ghost:hover { background: #fff; color: var(--ttg-dark); }

/* =========================================================================
   LAYOUT CONTENIDO + SIDEBAR
   ========================================================================= */
.ttg-site-main { padding: 44px 0; }
.ttg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--ttg-gap); align-items: start; }
.ttg-layout--full { grid-template-columns: 1fr; }

/* Encabezado de seccion */
.ttg-section-head {
    display: flex; align-items: center; gap: 14px; margin-bottom: 26px;
}
.ttg-section-head h2 {
    margin: 0; text-transform: uppercase; font-size: 26px; position: relative; padding-left: 16px;
}
.ttg-section-head h2::before {
    content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px;
    background: var(--ttg-red); border-radius: 3px;
}
.ttg-section-head .ttg-section-more { margin-left: auto; font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 14px; letter-spacing: .5px; }

/* =========================================================================
   TARJETAS DE POST (grid feed)
   ========================================================================= */
.ttg-grid { display: grid; gap: 28px; }
.ttg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ttg-grid--2 { grid-template-columns: repeat(2, 1fr); }

.ttg-card {
    background: #fff; border: 1px solid var(--ttg-border); border-radius: var(--ttg-radius);
    overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease;
}
.ttg-card:hover { box-shadow: var(--ttg-shadow-hover); transform: translateY(-4px); }
.ttg-card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--ttg-bg-alt); }
.ttg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.ttg-card:hover .ttg-card__media img { transform: scale(1.06); }
.ttg-card__badge {
    position: absolute; top: 12px; left: 12px; background: var(--ttg-red); color: #fff;
    font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 12px; letter-spacing: .8px;
    padding: 5px 11px; border-radius: 3px;
}
.ttg-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.ttg-card__title { font-size: 21px; line-height: 1.2; margin: 0 0 10px; }
.ttg-card__title a { color: var(--ttg-dark); }
.ttg-card__title a:hover { color: var(--ttg-red); }
.ttg-card__meta { font-size: 13px; color: var(--ttg-muted); margin-bottom: 12px; font-family: var(--ttg-font-body); }
.ttg-card__meta a { color: var(--ttg-muted); }
.ttg-card__excerpt { font-size: 15px; color: var(--ttg-text); margin: 0 0 16px; }
.ttg-card__more { margin-top: auto; font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 14px; letter-spacing: .5px; color: var(--ttg-red); }
.ttg-card__more:hover { color: var(--ttg-orange); }

/* Tarjeta horizontal (lista) */
.ttg-card--row { flex-direction: row; }
.ttg-card--row .ttg-card__media { aspect-ratio: auto; width: 220px; flex: 0 0 220px; }
.ttg-card--row .ttg-card__body { padding: 18px 22px; }

/* =========================================================================
   HERO (home)
   ========================================================================= */
.ttg-hero {
    position: relative; min-height: 480px; display: flex; align-items: center;
    background: var(--ttg-dark); color: #fff; overflow: hidden;
}
.ttg-hero__bg { position: absolute; inset: 0; }
.ttg-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.ttg-hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(26,26,46,.92) 0%, rgba(26,26,46,.55) 55%, rgba(230,51,35,.35) 100%);
}
.ttg-hero__inner { position: relative; z-index: 2; max-width: 660px; padding: 60px 0; }
.ttg-hero__eyebrow {
    display: inline-block; font-family: var(--ttg-font-head); text-transform: uppercase;
    letter-spacing: 2px; font-size: 14px; color: var(--ttg-orange);
    border-left: 4px solid var(--ttg-red); padding-left: 12px; margin-bottom: 18px;
}
.ttg-hero__title { color: #fff; font-size: clamp(34px, 5vw, 56px); text-transform: uppercase; margin: 0 0 16px; }
.ttg-hero__title .accent { color: var(--ttg-red); }
.ttg-hero__text { font-size: 19px; color: #d8d8e6; margin: 0 0 28px; max-width: 540px; }
.ttg-hero .ttg-checker-strip { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; }

/* =========================================================================
   CATEGORY GRID (home)
   ========================================================================= */
.ttg-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ttg-cat {
    position: relative; display: flex; flex-direction: column; justify-content: flex-end;
    min-height: 150px; border-radius: var(--ttg-radius); overflow: hidden; color: #fff;
    background: var(--ttg-dark); padding: 20px; transition: transform .2s ease;
    border-bottom: 4px solid var(--ttg-red);
}
.ttg-cat:hover { transform: translateY(-4px); color: #fff; }
.ttg-cat__img { position: absolute; inset: 0; }
.ttg-cat__img img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .25s, transform .4s; }
.ttg-cat:hover .ttg-cat__img img { opacity: .6; transform: scale(1.05); }
.ttg-cat::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 30%, rgba(26,26,46,.92) 100%); }
.ttg-cat__name { position: relative; z-index: 2; font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 22px; letter-spacing: .5px; }
.ttg-cat__count { position: relative; z-index: 2; font-size: 13px; color: var(--ttg-orange); font-family: var(--ttg-font-head); letter-spacing: 1px; }

/* About snippet (home) */
.ttg-about-snip { background: var(--ttg-bg-alt); border-radius: var(--ttg-radius); padding: 40px; display: grid; grid-template-columns: 200px 1fr; gap: 34px; align-items: center; }
.ttg-about-snip img { border-radius: var(--ttg-radius); width: 200px; height: 200px; object-fit: cover; }
.ttg-about-snip h2 { text-transform: uppercase; }

/* Newsletter (home) */
.ttg-newsletter { background: var(--ttg-dark); color: #fff; border-radius: var(--ttg-radius); padding: 44px; text-align: center; }
.ttg-newsletter h2 { color: #fff; text-transform: uppercase; }
.ttg-newsletter p { color: #c9c9da; max-width: 520px; margin: 0 auto 22px; }

/* Bloques de inicio espaciados */
.ttg-home-block { margin-bottom: 56px; }

/* Intro SEO bajo el hero */
.ttg-home-intro { max-width: 860px; margin-inline: auto; text-align: center; padding-top: 8px; }
.ttg-home-intro p { font-size: 19px; line-height: 1.75; color: var(--ttg-text); margin: 0; }
.ttg-home-intro p::first-letter { /* sutil acento editorial */ }

/* Bloque SEO al final del home */
.ttg-home-seo { background: var(--ttg-bg-alt); border-radius: var(--ttg-radius); padding: 40px 44px; border-left: 6px solid var(--ttg-red); }
.ttg-home-seo h2 { text-transform: uppercase; font-size: var(--ttg-h2); margin: 0 0 14px; }
.ttg-home-seo__text { font-size: 16.5px; color: var(--ttg-text); }
.ttg-home-seo__text p { margin: 0 0 1em; }
.ttg-home-seo__text p:last-child { margin-bottom: 0; }
.ttg-home-seo__text a { color: var(--ttg-red); text-decoration: underline; text-decoration-color: rgba(230,51,35,.4); }

/* =========================================================================
   SINGLE POST
   ========================================================================= */
.ttg-article__header { margin-bottom: 26px; }
.ttg-article__cat {
    display: inline-block; background: var(--ttg-red); color: #fff; font-family: var(--ttg-font-head);
    text-transform: uppercase; letter-spacing: 1px; font-size: 13px; padding: 6px 14px; border-radius: 3px; margin-bottom: 16px;
}
.ttg-article__cat a { color: #fff; }
.ttg-article__title { font-size: var(--ttg-h1); margin: 0 0 16px; }
.ttg-article__meta { font-size: 14px; color: var(--ttg-muted); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; border-bottom: 1px solid var(--ttg-border); padding-bottom: 18px; }
.ttg-article__meta .sep { color: var(--ttg-border); }
.ttg-article__featured { margin: 26px 0; border-radius: var(--ttg-radius); overflow: hidden; }
.ttg-article__featured img { width: 100%; }

.ttg-content { font-size: var(--ttg-base); }
.ttg-content p { margin-bottom: 1.4em; }
.ttg-content h2 { margin: 1.6em 0 .6em; text-transform: uppercase; font-size: var(--ttg-h2); }
.ttg-content h3 { margin: 1.3em 0 .5em; font-size: var(--ttg-h3); }
.ttg-content img { border-radius: var(--ttg-radius); margin: 1.4em auto; }
.ttg-content ul, .ttg-content ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.ttg-content li { margin-bottom: .5em; }
.ttg-content blockquote {
    border-left: 5px solid var(--ttg-red); background: var(--ttg-bg-alt);
    margin: 1.6em 0; padding: 18px 24px; font-style: italic; border-radius: 0 var(--ttg-radius) var(--ttg-radius) 0;
}
.ttg-content a { text-decoration: underline; text-decoration-color: rgba(230,51,35,.4); }
.ttg-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; }
.ttg-content th, .ttg-content td { border: 1px solid var(--ttg-border); padding: 10px 14px; text-align: left; }
.ttg-content th { background: var(--ttg-dark); color: #fff; font-family: var(--ttg-font-head); text-transform: uppercase; letter-spacing: .5px; }
.ttg-content tr:nth-child(even) td { background: var(--ttg-bg-alt); }

/* Caja de afiliado inline */
.ttg-affiliate-box {
    border: 2px dashed var(--ttg-orange); background: #fffaf0; border-radius: var(--ttg-radius);
    padding: 20px 24px; margin: 1.8em 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.ttg-affiliate-box__txt { font-family: var(--ttg-font-head); text-transform: uppercase; letter-spacing: .5px; font-size: 18px; color: var(--ttg-dark); }

/* Tags del post */
.ttg-tags { margin: 30px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ttg-tags__label { font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 13px; letter-spacing: 1px; color: var(--ttg-muted); margin-right: 4px; }
.ttg-tag {
    background: var(--ttg-bg-alt); color: var(--ttg-dark); font-size: 13px; padding: 5px 12px; border-radius: 20px;
    font-family: var(--ttg-font-head); letter-spacing: .3px;
}
.ttg-tag:hover { background: var(--ttg-red); color: #fff; }

/* Autor / bio */
.ttg-author-box { display: flex; gap: 18px; background: var(--ttg-bg-alt); border-radius: var(--ttg-radius); padding: 24px; margin: 36px 0; align-items: center; border-left: 5px solid var(--ttg-red); }
.ttg-author-box img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; }
.ttg-author-box h4 { margin: 0 0 6px; text-transform: uppercase; }

/* Related posts */
.ttg-related { margin: 44px 0 10px; }

/* =========================================================================
   ZONAS DE ANUNCIOS (AdSense)
   ========================================================================= */
.ttg-ad { margin: 30px 0; text-align: center; }
.ttg-ad__label {
    display: block; font-family: var(--ttg-font-head); text-transform: uppercase;
    font-size: 10px; letter-spacing: 2px; color: var(--ttg-muted); margin-bottom: 6px;
}
.ttg-ad--sidebar { margin: 0 0 24px; }
.ttg-ad ins, .ttg-ad iframe { margin: 0 auto; }
/* Placeholder visible solo en modo admin/preview cuando la zona esta vacia */
.ttg-ad__placeholder {
    border: 2px dashed var(--ttg-border); background: var(--ttg-bg-alt); color: var(--ttg-muted);
    padding: 30px 12px; border-radius: var(--ttg-radius); font-family: var(--ttg-font-head);
    text-transform: uppercase; letter-spacing: 1px; font-size: 13px;
}

/* =========================================================================
   SIDEBAR
   ========================================================================= */
.ttg-sidebar .widget {
    background: #fff; border: 1px solid var(--ttg-border); border-radius: var(--ttg-radius);
    margin-bottom: 28px; overflow: hidden;
}
.ttg-sidebar .widget-title, .ttg-sidebar .widgettitle {
    background: var(--ttg-dark); color: #fff; font-family: var(--ttg-font-head); text-transform: uppercase;
    letter-spacing: 1px; font-size: 16px; margin: 0; padding: 13px 18px; border-bottom: 3px solid var(--ttg-red);
}
.ttg-sidebar .widget > *:not(.widget-title):not(.widgettitle) { padding: 0 18px; }
.ttg-sidebar .widget ul { list-style: none; margin: 14px 0; padding: 0 18px; }
.ttg-sidebar .widget ul li { padding: 8px 0; border-bottom: 1px solid var(--ttg-border); font-size: 15px; }
.ttg-sidebar .widget ul li:last-child { border-bottom: none; }
.ttg-sidebar .widget a { color: var(--ttg-text); }
.ttg-sidebar .widget a:hover { color: var(--ttg-red); }

.ttg-sticky { position: sticky; top: 20px; }

/* Widget about del coleccionista */
.ttg-collector-card { text-align: center; padding: 22px 18px 26px; }
.ttg-collector-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--ttg-red); }
.ttg-collector-card h4 { text-transform: uppercase; margin: 0 0 6px; }
.ttg-collector-card p { font-size: 14px; color: var(--ttg-muted); margin: 0; }

/* =========================================================================
   PAGINACION
   ========================================================================= */
.ttg-pagination { margin: 40px 0 0; }
.ttg-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ttg-pagination .page-numbers {
    display: inline-flex; min-width: 44px; height: 44px; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--ttg-border); border-radius: 4px; color: var(--ttg-dark);
    font-family: var(--ttg-font-head); padding: 0 12px;
}
.ttg-pagination .page-numbers.current { background: var(--ttg-red); color: #fff; border-color: var(--ttg-red); }
.ttg-pagination .page-numbers:hover:not(.current) { border-color: var(--ttg-red); color: var(--ttg-red); }

/* =========================================================================
   COMENTARIOS
   ========================================================================= */
.ttg-comments { margin-top: 44px; }
.ttg-comments-title { text-transform: uppercase; border-left: 6px solid var(--ttg-red); padding-left: 14px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { margin-bottom: 22px; }
.comment-body { background: var(--ttg-bg-alt); border-radius: var(--ttg-radius); padding: 18px 20px; }
.comment-author { font-family: var(--ttg-font-head); text-transform: uppercase; }
.comment-author .avatar { border-radius: 50%; margin-right: 10px; vertical-align: middle; }
.comment-metadata { font-size: 12px; color: var(--ttg-muted); }
.comment-respond { background: var(--ttg-bg-alt); padding: 26px; border-radius: var(--ttg-radius); margin-top: 26px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--ttg-border); border-radius: 4px; font-family: var(--ttg-font-body); font-size: 15px; margin-top: 4px;
}
.comment-form label { font-family: var(--ttg-font-head); text-transform: uppercase; font-size: 13px; letter-spacing: .5px; }
.comment-form p { margin-bottom: 16px; }

/* =========================================================================
   PAGINA ESTATICA / 404 / SEARCH
   ========================================================================= */
.ttg-page-header { background: var(--ttg-dark); color: #fff; padding: 44px 0; position: relative; }
.ttg-page-header::after { content:""; position:absolute; left:0; right:0; bottom:0; height:6px; background: var(--ttg-checker); }
.ttg-page-header h1 { color: #fff; text-transform: uppercase; margin: 0; }
.ttg-page-header .ttg-breadcrumb { font-size: 13px; color: var(--ttg-orange); font-family: var(--ttg-font-head); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.ttg-404 { text-align: center; padding: 60px 0; }
.ttg-404 .code { font-family: var(--ttg-font-head); font-size: 120px; color: var(--ttg-red); line-height: 1; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.ttg-footer { background: var(--ttg-dark); color: #b9b9cc; margin-top: 30px; }
.ttg-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 50px 0 36px; }
.ttg-footer h4 { color: #fff; text-transform: uppercase; font-size: 17px; letter-spacing: .5px; margin: 0 0 18px; position: relative; padding-bottom: 10px; }
.ttg-footer h4::after { content:""; position:absolute; left:0; bottom:0; width:40px; height:3px; background: var(--ttg-orange); }
.ttg-footer a { color: #b9b9cc; }
.ttg-footer a:hover { color: var(--ttg-orange); }
.ttg-footer ul { list-style: none; margin: 0; padding: 0; }
.ttg-footer li { padding: 6px 0; font-size: 15px; }
.ttg-footer__brand-title { font-family: var(--ttg-font-head); font-size: 24px; text-transform: uppercase; color: #fff; }
.ttg-footer__brand-title .accent { color: var(--ttg-red); }
.ttg-footer .ttg-social { margin-top: 16px; }
.ttg-footer .ttg-social a { color: #b9b9cc; }
.ttg-footer .ttg-social a:hover { color: var(--ttg-orange); }

.ttg-disclaimer {
    border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 12.5px; line-height: 1.6; color: #8c8ca3;
}
.ttg-disclaimer strong { color: #b9b9cc; }
.ttg-footer__bottom {
    border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 13px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
}
.ttg-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1024px) {
    .ttg-layout { grid-template-columns: 1fr; }
    .ttg-sidebar { margin-top: 30px; }
    .ttg-grid--3 { grid-template-columns: repeat(2, 1fr); }
    .ttg-footer__cols { grid-template-columns: 1fr 1fr; }
    .ttg-cats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .ttg-burger { display: flex; }
    .ttg-nav { position: fixed; inset: 0 0 0 auto; width: min(82%, 340px); background: var(--ttg-dark);
        flex-direction: column; align-items: stretch; padding: 80px 0 30px; transform: translateX(100%);
        transition: transform .25s ease; z-index: 500; overflow-y: auto; }
    .ttg-nav.is-open { transform: translateX(0); box-shadow: -10px 0 40px rgba(0,0,0,.4); }
    .ttg-menu { flex-direction: column; gap: 0; width: 100%; }
    .ttg-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,.08); }
    .ttg-menu a { color: #fff; padding: 14px 24px; font-size: 17px; }
    .ttg-menu .menu-item-has-children > a::after { float: right; }
    .ttg-menu ul.sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        background: var(--ttg-dark-2); border-top: none; padding: 0; }
    .ttg-menu ul.sub-menu a { padding-left: 44px; }
    .ttg-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 400; opacity: 0; visibility: hidden; transition: .2s; }
    .ttg-nav-overlay.is-open { opacity: 1; visibility: visible; }
    .ttg-search-toggle { display: none; }
}
@media (max-width: 680px) {
    .ttg-grid--3, .ttg-grid--2 { grid-template-columns: 1fr; }
    .ttg-cats { grid-template-columns: 1fr 1fr; }
    .ttg-footer__cols { grid-template-columns: 1fr; gap: 28px; }
    .ttg-about-snip { grid-template-columns: 1fr; text-align: center; }
    .ttg-about-snip img { margin: 0 auto; }
    .ttg-card--row { flex-direction: column; }
    .ttg-card--row .ttg-card__media { width: 100%; flex: none; aspect-ratio: 3/2; }
    .ttg-brand__title { font-size: 24px; }
    .ttg-topbar__note { display: none; }
}
