/*
Theme Name: Robot Doméstico
Theme URI: https://robot-domestico.com
Author: Robot Doméstico
Author URI: https://robot-domestico.com
Description: Tema dark magazine para Robot Doméstico - medio digital sobre robots humanoides para el hogar
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
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: robot-domestico
Tags: dark, magazine, blog, news, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --bg-input: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #777777;
    --accent: #c8ff00;
    --accent-hover: #a8d600;
    --border-color: #333333;
    --font-heading: 'Chakra Petch', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --container-width: 1280px;
    --sidebar-width: 320px;
    --gap: 24px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

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

ul, ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.content-area {
    display: flex;
    gap: var(--gap);
    padding: 40px 0;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.site-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo .logo-text span {
    color: var(--accent);
}

.site-logo .logo-icon {
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: scale(0.5);
    max-width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, max-width 0.3s ease;
}

.site-logo .logo-text {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.site-header.is-scrolled .site-logo .logo-icon {
    opacity: 1;
    transform: scale(1);
    max-width: 60px;
}

.site-header.is-scrolled .site-logo .logo-text {
    opacity: 0;
    transform: translateX(-10px);
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav li {
    position: relative;
}

.main-nav li::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 250px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    flex-direction: column;
    gap: 0;
    padding: 0 0 6px 0;
    z-index: 100;
    box-shadow: 0 0 20px rgba(200,255,0,0.08);
}

.main-nav .sub-menu-label {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    white-space: nowrap;
}

.main-nav .sub-menu-label .cursor-blink {
    display: inline-block;
    margin-left: 4px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.main-nav .sub-menu::before,
.main-nav .sub-menu::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    border: 2px solid var(--accent);
}

.main-nav .sub-menu::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.main-nav .sub-menu::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    height: 10px;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
    display: flex;
}

.main-nav .sub-menu li {
    width: 100%;
}

.main-nav .sub-menu li::after {
    display: none;
}

.main-nav .sub-menu {
    counter-reset: menu-item-counter;
}

.main-nav .sub-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    border-bottom: none;
    position: relative;
    overflow: hidden;
    transition: color 0.25s ease, padding-left 0.25s ease;
}

.main-nav .sub-menu a::before {
    counter-increment: menu-item-counter;
    content: counter(menu-item-counter, decimal-leading-zero) '.';
    color: var(--accent);
    font-size: 0.85em;
    opacity: 0.7;
    flex-shrink: 0;
}

.main-nav .sub-menu a::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: top 0.4s ease;
    opacity: 0;
}

.main-nav .sub-menu a:hover {
    color: var(--accent);
    padding-left: 24px;
}

.main-nav .sub-menu a:hover::after {
    top: 100%;
    opacity: 1;
    transition: top 0.5s ease, opacity 0.1s ease;
}

.main-nav .menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.main-nav .menu-item-has-children > a::before {
    content: '▾';
    color: var(--accent);
    font-size: 0.65em;
    order: 2;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: var(--accent);
    transition: opacity 0.3s ease;
}

.header-search svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
}

.header-search:hover {
    opacity: 0.7;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO / FEATURED POST
   ============================================ */
.hero-section {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
}

.hero-post {
    position: relative;
    height: 500px;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-overlay .category-badge {
    margin-bottom: 15px;
}

.hero-overlay .post-title {
    font-size: 3rem;
    line-height: 1.05;
    margin-bottom: 10px;
    max-width: 700px;
}

.hero-overlay .post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   CATEGORY BADGE
   ============================================ */
.category-badge {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
}

/* ============================================
   POST GRID (HOME)
   ============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 40px;
}

.post-card {
    background: var(--bg-primary);
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

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

.post-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/11;
    display: block;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-date {
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
    z-index: 2;
}

.post-card-date .day {
    font-size: 2rem;
    display: block;
}

.post-card-date .month-year {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.post-card-share {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.75rem;
    cursor: pointer;
    z-index: 2;
}

.post-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 15px 15px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
}

.post-card-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.post-card-meta a {
    color: var(--text-secondary);
}

.post-card-meta a:hover {
    color: var(--accent);
}

.post-card-title {
    font-size: 1rem;
    line-height: 1.25;
    margin: 0;
    color: var(--text-primary);
}

.post-card-title a {
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.post-card:hover .post-card-title a {
    color: var(--accent);
}

.post-card-title a:hover {
    color: var(--accent);
}

/* Two column row with newsletter */
.posts-row-newsletter {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--gap);
    margin-bottom: 40px;
}

/* Full width banner post */
.banner-post {
    position: relative;
    height: 300px;
    overflow: hidden;
    margin-bottom: 40px;
}

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

.banner-post .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}

.banner-post .post-title {
    font-size: 2.5rem;
    max-width: 60%;
}

.banner-post .post-date-big {
    font-family: var(--font-heading);
    text-align: right;
}

.banner-post .post-date-big .day {
    font-size: 4rem;
    display: block;
    line-height: 1;
}

.banner-post .post-date-big .month-year {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent);
}

/* Posts with sidebar row */
.posts-sidebar-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr var(--sidebar-width);
    gap: var(--gap);
    margin-bottom: 40px;
}

/* Small post list (sidebar style) */
.small-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.small-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.small-post-image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
}

.small-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-post-content {
    flex: 1;
}

.small-post-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.small-post-title {
    font-size: 0.8rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 1.3;
}

/* ============================================
   NEWSLETTER BOX
   ============================================ */
.newsletter-box {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 25px;
}

.newsletter-box h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--accent);
}

.newsletter-box input[type="email"] {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 15px;
    font-size: 0.85rem;
    font-family: var(--font-body);
    margin-bottom: 10px;
}

.newsletter-box input[type="email"]::placeholder {
    color: var(--text-muted);
}

.newsletter-box button {
    width: 100%;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 10px 15px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-box button:hover {
    background: var(--accent-hover);
}

/* ============================================
   FOLLOW US
   ============================================ */
.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ============================================
   SIDEBAR WIDGETS
   ============================================ */
.widget {
    margin-bottom: 35px;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: #000;
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 20px;
    font-weight: 700;
}

.widget-featured-post {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.widget-featured-post img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.widget-featured-post .post-info {
    padding: 10px 0;
}

.widget-featured-post .post-date-big {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
}

.widget-featured-post .post-date-big .day {
    font-size: 2.5rem;
    display: block;
    line-height: 1;
}

.widget-featured-post .post-date-big .month-year {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--accent);
}

/* Categories widget */
.widget-categories ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.widget-categories li a {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.widget-categories li a:hover {
    color: var(--accent);
}

.widget-categories .count {
    color: var(--text-muted);
}

/* ============================================
   SINGLE POST
   ============================================ */
.single-post-header {
    margin-bottom: 30px;
}

.single-post-image {
    position: relative;
    margin-bottom: 30px;
    overflow: hidden;
}

.single-post-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-post-image .category-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.single-post-title {
    font-size: 2.8rem;
    line-height: 1.05;
    margin-bottom: 15px;
}

.single-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.single-post-meta a {
    color: var(--text-secondary);
}

.single-post-meta a:hover {
    color: var(--accent);
}

/* Post content */
.post-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.post-content p {
    margin-bottom: 1.5em;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 2em 0 0.8em;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.6em;
    color: var(--text-primary);
}

.post-content a {
    color: var(--accent);
    text-decoration: underline;
}

.post-content strong {
    color: var(--text-primary);
}

.post-content ul, .post-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.post-content ul {
    list-style: disc;
}

.post-content ol {
    list-style: decimal;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content img {
    margin: 2em 0;
    border-radius: 2px;
}

/* Drop cap */
.post-content > p:first-of-type::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
    color: var(--text-primary);
    font-weight: 700;
}

/* Blockquote */
.post-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 20px 25px;
    margin: 2em 0;
    background: var(--bg-secondary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 700;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
}

.post-content th {
    background: var(--bg-card);
    color: var(--accent);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--accent);
}

.post-content td {
    padding: 10px 15px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.post-content tr:hover td {
    background: var(--bg-secondary);
}

/* Video embeds */
.post-content iframe,
.post-content .wp-block-embed {
    margin: 2em 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

.post-tags span {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
}

.post-tags a {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: underline;
}

/* Author box */
.author-box {
    display: flex;
    gap: 25px;
    background: var(--bg-secondary);
    padding: 25px;
    margin: 30px 0;
    border-top: 3px solid var(--accent);
}

.author-box-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--accent);
    color: #000;
    padding: 3px 8px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 700;
}

.author-avatar {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.author-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.author-social {
    display: flex;
    gap: 12px;
}

.author-social a {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.author-social a:hover {
    color: var(--accent);
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-area {
    margin-top: 40px;
}

.comments-title {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.comment-respond .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 15px;
}

.comment-form label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--bg-input);
    border: none;
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form .form-submit input[type="submit"] {
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.comment-form .form-submit input[type="submit"]:hover {
    color: var(--accent);
}

/* Comment list */
.comment-list {
    margin-bottom: 30px;
}

.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-author {
    font-family: var(--font-heading);
    font-weight: 700;
}

.comment-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.comment-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   ARCHIVE / CATEGORY PAGES
   ============================================ */
.archive-header {
    margin-bottom: 40px;
    padding-top: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.archive-title {
    font-size: 2.5rem;
}

.archive-title::before {
    content: '[MÓDULO] ';
    color: var(--accent);
}

.archive-description {
    color: var(--text-secondary);
    margin-top: 10px;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination a, .pagination span {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pagination a:hover, .pagination .current {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg-primary);
    border-top: 3px solid var(--accent);
    padding: 50px 0 30px;
    margin-top: 60px;
    text-align: center;
}

.footer-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-icon img {
    display: block;
}

.footer-logo {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-nav {
    margin-bottom: 25px;
}

.footer-nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

.footer-nav a:hover {
    color: var(--accent);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social a:hover {
    color: var(--accent);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.footer-legal-links {
    display: inline-flex;
    gap: 14px;
    margin-left: 14px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: underline;
    font-size: 0.75rem;
}

.footer-legal-links a:hover {
    color: var(--accent);
}

@media (max-width: 480px) {
    .footer-copyright {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .footer-legal-links {
        margin-left: 0;
        justify-content: center;
    }
}

/* ============================================
   SEARCH OVERLAY
   ============================================ */
.search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay form {
    width: 80%;
    max-width: 600px;
}

.search-overlay input[type="search"] {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 3px solid var(--accent);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 2.5rem;
    padding: 15px 0;
    text-transform: uppercase;
    outline: none;
}

.search-overlay .close-search {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
    text-align: center;
    padding: 100px 20px;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.error-404 p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ============================================
   PAGE TEMPLATE
   ============================================ */
.page-header-section {
    margin-bottom: 30px;
    padding-top: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--accent);
}

.page-content {
    max-width: 800px;
}

.page-content p {
    margin-bottom: 1.5em;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   RESPONSIVE — TV / Large screens (1600px+)
   ============================================ */
@media (min-width: 1600px) {
    :root {
        --container-width: 1440px;
    }

    .hero-post {
        height: 650px;
    }

    .hero-overlay .post-title {
        font-size: 4rem;
    }

    .post-card-title {
        font-size: 1.3rem;
    }

    .single-post-title {
        font-size: 3.5rem;
    }

    .post-content {
        font-size: 1.1rem;
    }

    .banner-post {
        height: 400px;
    }

    .banner-post .post-title {
        font-size: 3rem;
    }
}

/* ============================================
   RESPONSIVE — Large Desktop (1200-1599px)
   ============================================ */
@media (max-width: 1599px) and (min-width: 1200px) {
    .posts-sidebar-row {
        grid-template-columns: repeat(3, 1fr) 280px;
    }
}

/* ============================================
   RESPONSIVE — Small Desktop / Landscape Tablet (1024-1199px)
   ============================================ */
@media (max-width: 1199px) {
    .posts-sidebar-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .posts-sidebar-row > div:last-child {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--gap);
        margin-top: 20px;
    }

    .sidebar {
        width: 280px;
    }
}

/* ============================================
   RESPONSIVE — Tablet portrait (768-1023px)
   ============================================ */
@media (max-width: 1024px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .posts-row-newsletter .newsletter-box {
        grid-column: 1 / -1;
    }

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

    .posts-sidebar-row > div:last-child {
        grid-column: 1 / -1;
    }

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

    .content-area {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--gap);
    }

    .sidebar .widget-featured-post {
        grid-column: 1 / -1;
    }

    .hero-post {
        height: 400px;
    }

    .hero-overlay .post-title {
        font-size: 2.2rem;
    }

    .single-post-title {
        font-size: 2.2rem;
    }

    .banner-post .post-title {
        font-size: 2rem;
    }
}

/* ============================================
   RESPONSIVE — Large Phone / Small Tablet (576-767px)
   ============================================ */
@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .site-logo {
        font-size: 1.5rem;
    }

    .site-logo img {
        max-height: 40px;
    }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        background: var(--bg-secondary);
        padding: 0 15px;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .main-nav a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
    }

    .main-nav .sub-menu {
        display: block;
        position: static;
        border: none;
        background: none;
        margin-top: 0;
        padding-left: 15px;
        min-width: 0;
    }

    .main-nav .sub-menu a {
        padding: 10px 0;
        font-size: 0.85rem;
        color: var(--text-secondary);
        border-bottom: 1px solid var(--border-color);
    }

    .menu-toggle {
        display: block;
        font-size: 1.8rem;
    }

    .header-search span {
        display: none;
    }

    .hero-post {
        height: 300px;
    }

    .hero-overlay {
        padding: 25px;
    }

    .hero-overlay .post-title {
        font-size: 1.8rem;
    }

    .hero-overlay .post-meta {
        font-size: 0.75rem;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .posts-row-newsletter {
        grid-template-columns: 1fr;
    }

    .posts-sidebar-row {
        grid-template-columns: 1fr;
    }

    .posts-sidebar-row > div:last-child {
        grid-template-columns: 1fr;
    }

    .archive-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .post-card-image {
        aspect-ratio: 16/9;
    }

    .post-card-title {
        font-size: 1.2rem;
    }

    .single-post-title {
        font-size: 1.8rem;
    }

    .single-post-image {
        margin-left: -20px;
        margin-right: -20px;
    }

    .banner-post {
        height: 220px;
    }

    .banner-post .post-title {
        font-size: 1.5rem;
        max-width: 100%;
    }

    .banner-post .post-date-big {
        display: none;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .archive-title {
        font-size: 1.8rem;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-social {
        justify-content: center;
    }

    .footer-logo {
        font-size: 2rem;
    }

    .footer-nav ul {
        flex-direction: column;
        gap: 12px;
    }

    .post-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .post-content blockquote {
        padding: 15px 18px;
        font-size: 1rem;
    }

    .post-content > p:first-of-type::first-letter {
        font-size: 3rem;
    }

    .search-overlay input[type="search"] {
        font-size: 1.5rem;
    }

    .error-404 h1 {
        font-size: 5rem;
    }

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

    .comment-form .form-submit input[type="submit"] {
        width: 100%;
        padding: 12px;
    }
}

/* ============================================
   RESPONSIVE — Small Phone (max 480px)
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .site-logo {
        font-size: 1.2rem;
    }

    .site-logo img {
        max-height: 35px;
    }

    .header-inner {
        padding: 10px 0;
    }

    .hero-post {
        height: 250px;
    }

    .hero-overlay {
        padding: 15px;
    }

    .hero-overlay .post-title {
        font-size: 1.4rem;
    }

    .post-card-date .day {
        font-size: 1.5rem;
    }

    .post-card-date .month-year {
        font-size: 0.55rem;
    }

    .single-post-title {
        font-size: 1.5rem;
    }

    .single-post-meta {
        font-size: 0.75rem;
    }

    .post-content {
        font-size: 0.95rem;
    }

    .post-content h2 {
        font-size: 1.4rem;
    }

    .post-content h3 {
        font-size: 1.1rem;
    }

    .post-content > p:first-of-type::first-letter {
        font-size: 2.5rem;
        padding-right: 8px;
    }

    .banner-post {
        height: 180px;
    }

    .banner-post .post-title {
        font-size: 1.2rem;
    }

    .archive-title {
        font-size: 1.5rem;
    }

    .newsletter-box {
        padding: 20px 15px;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-copyright {
        font-size: 0.65rem;
    }

    .error-404 h1 {
        font-size: 4rem;
    }

    .search-overlay input[type="search"] {
        font-size: 1.2rem;
    }

    .search-overlay form {
        width: 90%;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .small-post-image {
        width: 70px;
        height: 50px;
    }

    .widget-title {
        font-size: 0.8rem;
    }
}

/* ============================================
   RESPONSIVE — Landscape phone fix
   ============================================ */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-post {
        height: 250px;
    }

    .site-header {
        position: relative;
    }
}

/* ============================================
   RESPONSIVE — Touch device optimizations
   ============================================ */
@media (hover: none) {
    .post-card:hover {
        transform: none;
    }

    .post-card:hover .post-card-image img {
        transform: none;
    }

    .main-nav a::after {
        display: none;
    }

    .post-card-image img {
        transition: none;
    }
}

/* ============================================
   RESPONSIVE — Print
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .search-overlay,
    .newsletter-box,
    .follow-us,
    .post-tags,
    .author-box,
    .comments-area,
    .menu-toggle {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }

    .single-post-title {
        color: #000;
    }
}

/* ============================================
   SEO CONTENT BLOCK
   ============================================ */
.seo-content-block {
    padding: 60px 0;
    border-top: 2px solid var(--accent);
    position: relative;
}

.seo-text {
    position: relative;
    padding: 35px 40px;
    background: var(--bg-secondary);
    border-left: 3px solid var(--accent);
}

.seo-text::before {
    content: '// SOBRE ROBOT DOMÉSTICO';
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 15px;
}

.seo-text h2 {
    font-size: 1.7rem;
    margin-bottom: 22px;
    color: var(--text-primary);
    line-height: 1.2;
}

.seo-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 1.3em;
    max-width: 850px;
}

.seo-text p:last-child {
    margin-bottom: 0;
}

.seo-text strong {
    color: var(--text-primary);
    font-weight: 700;
}

.seo-text a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    transition: opacity 0.3s ease;
}

.seo-text a:hover {
    opacity: 0.7;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 60px 0 70px;
    border-top: 1px solid var(--border-color);
}

.faq-title {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.faq-title::before {
    content: '[MÓDULO] ';
    color: var(--accent);
}

.faq-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    letter-spacing: 0.02em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-width: 900px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent);
    padding: 22px 28px;
    background: var(--bg-secondary);
    transition: border-left-color 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    background: #161616;
}

.faq-question {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    text-transform: none;
    letter-spacing: normal;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.faq-question::before {
    content: '?';
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    padding-left: 20px;
}

@media (max-width: 768px) {
    .seo-text {
        padding: 25px 20px;
    }

    .seo-text h2 {
        font-size: 1.4rem;
    }

    .faq-title {
        font-size: 1.4rem;
    }

    .faq-item {
        padding: 18px 20px;
    }
}

/* ============================================
   DECORATIVE: CIRCUIT BACKGROUND PATTERN
   ============================================ */
.circuit-bg {
    position: relative;
}

.circuit-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.04;
    pointer-events: none;
    background-image:
        linear-gradient(var(--accent) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.circuit-bg > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   DECORATIVE: SCAN LINE SEPARATOR
   ============================================ */
.scan-line {
    position: relative;
    height: 2px;
    background: var(--border-color);
    overflow: hidden;
    margin: 0;
}

.scan-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: scan-sweep 4s linear infinite;
}

@keyframes scan-sweep {
    0% { left: -30%; }
    100% { left: 130%; }
}

/* ============================================
   POST CARD: CORNER RETICLE HOVER
   ============================================ */
.post-card::before,
.post-card::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.post-card::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.post-card::after {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

.post-card:hover::before,
.post-card:hover::after {
    opacity: 1;
}

/* ============================================
   HUD STATS BAR
   ============================================ */
.hud-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
}

.hud-stat {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.hud-stat:last-child {
    border-right: none;
}

.hud-stat-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.hud-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
}

/* ============================================
   NEWS TICKER
   ============================================ */
.news-ticker {
    background: var(--bg-secondary);
    border-top: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-label {
    flex-shrink: 0;
    background: var(--accent);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 18px;
    z-index: 2;
}

.ticker-track-wrap {
    overflow: hidden;
    flex: 1;
}

.ticker-track {
    display: inline-flex;
    animation: ticker-scroll 30s linear infinite;
    padding-left: 100%;
}

.news-ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-item {
    padding: 10px 40px 10px 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.ticker-item a {
    color: var(--text-secondary);
}

.ticker-item a:hover {
    color: var(--accent);
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ============================================
   TIMELINE SECTION
   ============================================ */
.timeline-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.timeline-title {
    font-size: 1.9rem;
    margin-bottom: 8px;
}

.timeline-title::before {
    content: '[MÓDULO] ';
    color: var(--accent);
}

.timeline-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.timeline {
    position: relative;
    max-width: 900px;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 35px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.timeline-content h4 {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline-content p {
    font-size: 0.87rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   QUICK COMPARISON (3 featured robots)
   ============================================ */
.quick-compare-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.quick-compare-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.quick-compare-title {
    font-size: 1.9rem;
}

.quick-compare-title::before {
    content: '[MÓDULO] ';
    color: var(--accent);
}

.quick-compare-link {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

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

.qc-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 25px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.qc-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.qc-card-name {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.qc-card-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.qc-card-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.qc-card-status {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    background: var(--accent);
    color: #000;
}

.qc-card-status.unavailable {
    background: var(--border-color);
    color: var(--text-secondary);
}

/* ============================================
   ROBOT QUIZ
   ============================================ */
.quiz-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background:
        linear-gradient(var(--bg-secondary), var(--bg-secondary)),
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(200,255,0,0.02) 20px, rgba(200,255,0,0.02) 21px);
}

.quiz-title {
    font-size: 1.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.quiz-title::before {
    content: '[MÓDULO] ';
    color: var(--accent);
}

.quiz-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    text-align: center;
}

.quiz-box {
    max-width: 720px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    background: var(--bg-primary);
    position: relative;
}

.quiz-terminal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #0a0a0a;
}

.quiz-terminal-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.quiz-progress {
    display: flex;
    gap: 6px;
    padding: 0;
}

.quiz-progress-dot {
    width: 24px;
    height: 4px;
    background: var(--border-color);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.quiz-progress-dot.done,
.quiz-progress-dot.current {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(200,255,0,0.6);
}

.quiz-step {
    display: none;
    padding: 40px;
}

.quiz-step.active {
    display: block;
    animation: quiz-fade-in 0.35s ease;
}

@keyframes quiz-fade-in {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.quiz-question {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 26px;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: normal;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 16px 20px;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.quiz-option:hover {
    border-color: var(--accent);
    background: #1e1e1e;
    transform: translateX(4px);
}

.quiz-option-letter {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease;
}

.quiz-option:hover .quiz-option-letter {
    background: var(--accent);
    color: #000;
}

.quiz-result {
    display: none;
    padding: 45px 40px;
    text-align: center;
}

.quiz-result.active {
    display: block;
    animation: quiz-fade-in 0.4s ease;
}

.quiz-result-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
}

.quiz-result-label::before {
    content: '▸ ';
}

.quiz-result-name {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.quiz-result-price {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #000;
    background: var(--accent);
    padding: 6px 18px;
    margin-bottom: 22px;
}

.quiz-result-desc {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.quiz-restart {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px 22px;
    cursor: pointer;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.quiz-restart:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================================
   COMMUNITY BLOCK
   ============================================ */
.community-section {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.community-title {
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.community-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.community-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.community-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 90px;
    height: 90px;
    justify-content: center;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s ease;
    font-size: 1.3rem;
}

.community-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.community-icon .count {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* ============================================
   ROBOT OF THE MONTH
   ============================================ */
.rotm-section {
    padding: 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.rotm-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.rotm-image {
    height: 100%;
    min-height: 400px;
}

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

.rotm-content {
    padding: 50px;
}

.rotm-label {
    display: inline-block;
    background: var(--accent);
    color: #000;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    margin-bottom: 18px;
}

.rotm-title {
    font-size: 2.3rem;
    margin-bottom: 15px;
}

.rotm-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.rotm-cta {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 28px;
    transition: background 0.3s ease, color 0.3s ease;
}

.rotm-cta:hover {
    background: var(--accent);
    color: #000;
}

@media (max-width: 1024px) {
    .hud-stats {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
    }
    .hud-stat:nth-child(2) { border-right: none; }
    .quick-compare-grid {
        grid-template-columns: 1fr;
    }
    .rotm-inner {
        grid-template-columns: 1fr;
    }
    .rotm-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hud-stats {
        grid-template-columns: 1fr 1fr;
    }
    .hud-stat-value {
        font-size: 1.5rem;
    }
    .timeline {
        padding-left: 20px;
    }
    .timeline-item::before {
        left: -27px;
    }
    .quiz-step {
        padding: 25px 20px;
    }
    .rotm-content {
        padding: 30px 20px;
    }
    .rotm-title {
        font-size: 1.6rem;
    }
}

/* ============================================
   REVIEW ARTICLE: SPEC BLUEPRINT PANEL
   ============================================ */
.review-blueprint {
    position: relative;
    border: 1px solid var(--accent);
    background: #0a0e0a;
    padding: 30px 35px;
    margin: 2.5em 0;
}

.review-blueprint::before,
.review-blueprint::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
}

.review-blueprint::before {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.review-blueprint::after {
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
}

.blueprint-label {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: block;
}

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

.blueprint-item {
    border-bottom: 1px solid rgba(200,255,0,0.2);
    padding-bottom: 10px;
}

.blueprint-item-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}

.blueprint-item-value {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ============================================
   REVIEW ARTICLE: RATING BARS
   ============================================ */
.rating-panel {
    border-left: 3px solid var(--accent);
    background: var(--bg-secondary);
    padding: 28px 32px;
    margin: 2.5em 0;
}

.rating-panel-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 22px;
}

.rating-row {
    display: grid;
    grid-template-columns: 160px 1fr 40px;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
}

.rating-row:last-child {
    margin-bottom: 0;
}

.rating-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.rating-bar-track {
    height: 8px;
    background: #2a2a2a;
    position: relative;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: var(--accent);
}

.rating-score {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--accent);
    text-align: right;
}

/* ============================================
   REVIEW ARTICLE: VERDICT BOX
   ============================================ */
.verdict-box {
    border: 1px solid var(--border-color);
    margin: 2.5em 0;
}

.verdict-header {
    background: var(--accent);
    color: #000;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 14px 25px;
}

.verdict-body {
    padding: 28px 30px;
    background: var(--bg-secondary);
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 2.5em 0;
}

.pros-box, .cons-box {
    border: 1px solid var(--border-color);
    padding: 24px 26px;
}

.pros-box {
    border-top: 3px solid var(--accent);
}

.cons-box {
    border-top: 3px solid #555555;
}

.pros-cons-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 15px;
}

.pros-box .pros-cons-title { color: var(--accent); }
.cons-box .pros-cons-title { color: #999999; }

.pros-box ul, .cons-box ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pros-box li, .cons-box li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    padding-left: 22px;
    position: relative;
    line-height: 1.5;
}

.pros-box li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.cons-box li::before {
    content: '−';
    position: absolute;
    left: 0;
    color: #999999;
    font-weight: 700;
}

@media (max-width: 768px) {
    .blueprint-grid {
        grid-template-columns: 1fr 1fr;
    }
    .rating-row {
        grid-template-columns: 110px 1fr 35px;
    }
    .pros-cons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .review-blueprint, .rating-panel, .verdict-body {
        padding: 22px 20px;
    }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    z-index: 900;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Subtle radar sweep, only visible when idle (not actively scrolling) */
.back-to-top-radar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(200,255,0,0.12) 8%, transparent 16%);
    animation: radar-spin 3s linear infinite;
    opacity: 0.7;
}

@keyframes radar-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll progress ring (SVG) */
.back-to-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.back-to-top .progress-bg {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 2;
}

.back-to-top .progress-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-arrow {
    position: relative;
    z-index: 2;
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.back-to-top:hover .back-to-top-arrow {
    transform: translateY(-3px);
}

.back-to-top:hover .back-to-top-inner {
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }
    .back-to-top-arrow {
        font-size: 1.1rem;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-bottom: 60px;
}

.contact-form-box {
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent);
    background: var(--bg-primary);
}

.contact-success,
.contact-error {
    margin: 0;
    padding: 16px 30px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-success {
    color: var(--accent);
    background: rgba(200,255,0,0.06);
}

.contact-error {
    color: #ff6b6b;
    background: rgba(255,107,107,0.06);
}

.rd-contact-form {
    padding: 35px 40px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rd-form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rd-form-row label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.rd-form-row input,
.rd-form-row select,
.rd-form-row textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 15px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.25s ease;
}

.rd-form-row input:focus,
.rd-form-row select:focus,
.rd-form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.rd-form-row textarea {
    resize: vertical;
}

.rd-form-submit {
    align-self: flex-start;
    background: var(--accent);
    color: #000;
    border: none;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

.rd-form-submit:hover {
    background: var(--accent-hover);
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .rd-contact-form {
        padding: 25px 20px 30px;
    }
}

/* ============================================
   NUMBERED PILLAR LIST (content pages)
   ============================================ */
.pillar-list {
    display: flex;
    flex-direction: column;
    margin: 2.5em 0;
}

.pillar-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 25px;
    padding: 35px 0;
    border-bottom: 1px solid var(--border-color);
}

.pillar-item:first-child {
    padding-top: 0;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.pillar-content h3 {
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.pillar-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
}

.intro-lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 2px solid var(--accent);
}

@media (max-width: 600px) {
    .pillar-item {
        grid-template-columns: 50px 1fr;
        gap: 15px;
        padding: 25px 0;
    }
    .pillar-number {
        font-size: 1.8rem;
    }
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding-top: 8px;
}

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

/* Sticky post */
.sticky .post-card-content::before {
    content: '★';
    color: var(--accent);
    margin-right: 5px;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 2em 0;
}

.gallery-item {
    margin: 0;
}

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