/**
 * SeoPro Theme - Main Stylesheet
 * Version: 1.0.0
 */

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary-color: #384859;
    --secondary-color: #4a5d72;
    --accent-turquoise: #28ae87;
    --accent-orange: #e79f4f;
    --accent-pink: #cc4560;
    --accent-blue: #3b82f6;
    --text-color: #384859;
    --text-light: #98a3ac;
    --bg-color: #f8fafb;
    --white: #ffffff;
    --border-color: #e5e9ec;
    --shadow: 0 2px 10px rgba(56, 72, 89, 0.08);
    --shadow-hover: 0 5px 20px rgba(56, 72, 89, 0.15);
    --transition: all 0.3s ease;
    --font-primary: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius: 8px;
}

/* Dark Mode */
[data-theme="dark"] {
    --primary-color: #e5e9ec;
    --secondary-color: #c9d3d9;
    --text-color: #e5e9ec;
    --text-light: #98a3ac;
    --bg-color: #1a1f25;
    --white: #242a32;
    --border-color: #3a4149;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Strong & Emphasis */
strong, b {
    font-weight: 600;
    color: var(--primary-color);
}

em, i {
    font-style: italic;
}

/* Links in content */
.post-content a,
.single-post-content a,
.page-content a,
.entry-content a {
    color: #4285f4;
    text-decoration: underline;
    text-decoration-color: rgba(66, 133, 244, 0.3);
    text-underline-offset: 3px;
    transition: var(--transition);
}

.post-content a:hover,
.single-post-content a:hover,
.page-content a:hover,
.entry-content a:hover {
    color: #3367d6;
    text-decoration-color: #4285f4;
}

/* Blockquotes */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    background: var(--bg-color);
    border-left: 4px solid var(--accent-turquoise);
    border-radius: var(--radius);
    font-style: italic;
    color: var(--text-color);
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    color: var(--accent-turquoise);
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

blockquote p {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

blockquote p:last-child {
    margin-bottom: 0;
}

blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-style: normal;
    color: var(--primary-color);
    font-weight: 600;
}

blockquote cite::before {
    content: '— ';
}

/* Lists */
.post-content ul,
.post-content ol,
.single-post-content ul,
.single-post-content ol,
.page-content ul,
.page-content ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-content ul li,
.single-post-content ul li,
.page-content ul li,
.entry-content ul li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    list-style: none;
    color: var(--text-light);
}

.post-content ul li::before,
.single-post-content ul li::before,
.page-content ul li::before,
.entry-content ul li::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background: var(--accent-turquoise);
    border-radius: 50%;
}

.post-content ol,
.single-post-content ol,
.page-content ol,
.entry-content ol {
    counter-reset: list-counter;
}

.post-content ol li,
.single-post-content ol li,
.page-content ol li,
.entry-content ol li {
    position: relative;
    margin-bottom: 0.75rem;
    line-height: 1.8;
    list-style: none;
    counter-increment: list-counter;
    color: var(--text-light);
}

.post-content ol li::before,
.single-post-content ol li::before,
.page-content ol li::before,
.entry-content ol li::before {
    content: counter(list-counter) '.';
    position: absolute;
    left: -2rem;
    font-weight: 600;
    color: var(--accent-turquoise);
}

/* Nested Lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul,
.single-post-content ul ul,
.single-post-content ol ol,
.single-post-content ul ol,
.single-post-content ol ul,
.page-content ul ul,
.page-content ol ol,
.page-content ul ol,
.page-content ol ul,
.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Code */
code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    background: var(--bg-color);
    padding: 3px 8px;
    border-radius: 4px;
    color: #e83e8c;
    border: 1px solid var(--border-color);
}

pre {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #2d2d2d;
    border-radius: var(--radius);
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #f8f8f2;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Tables */
table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

thead {
    background: var(--bg-color);
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--bg-color);
}

/* Horizontal Rule */
hr {
    margin: 2rem 0;
    border: none;
    height: 1px;
    background: var(--border-color);
}

/* Mark/Highlight */
mark {
    background: rgba(40, 174, 135, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--text-color);
}

/* Small text */
small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Abbreviations */
abbr[title] {
    text-decoration: underline dotted;
    cursor: help;
    border-bottom: 1px dotted var(--text-light);
}

/* Keyboard */
kbd {
    display: inline-block;
    padding: 3px 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    color: var(--primary-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

/* Definition Lists */
dl {
    margin-bottom: 1.5rem;
}

dt {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

dd {
    margin-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Figure & Figcaption */
figure {
    margin: 2rem 0;
}

figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Dark Mode Typography */
body.dark-mode blockquote {
    background: #1a1f25;
    color: #e5e9ec;
}

body.dark-mode blockquote p {
    color: #c9d3d9;
}

body.dark-mode blockquote cite {
    color: #e5e9ec;
}

body.dark-mode code {
    background: #1a1f25;
    border-color: #3a4149;
    color: #f97583;
}

body.dark-mode pre {
    background: #0d1117;
    border-color: #3a4149;
}

body.dark-mode table {
    border-color: #3a4149;
}

body.dark-mode thead {
    background: #1a1f25;
}

body.dark-mode th {
    color: #e5e9ec;
    border-bottom-color: #3a4149;
}

body.dark-mode td {
    border-bottom-color: #3a4149;
    color: #c9d3d9;
}

body.dark-mode tbody tr:hover {
    background: #1a1f25;
}

body.dark-mode hr {
    background: #3a4149;
}

body.dark-mode dt {
    color: #e5e9ec;
}

body.dark-mode kbd {
    background: #1a1f25;
    border-color: #3a4149;
    color: #e5e9ec;
}

body.dark-mode mark {
    background: rgba(40, 174, 135, 0.3);
    color: #e5e9ec;
}

/* Dark Mode - Content Text */
body.dark-mode .post-content,
body.dark-mode .single-post-content,
body.dark-mode .entry-content,
body.dark-mode .page-content {
    color: #e5e9ec;
}

body.dark-mode .post-content h1,
body.dark-mode .post-content h2,
body.dark-mode .post-content h3,
body.dark-mode .post-content h4,
body.dark-mode .post-content h5,
body.dark-mode .post-content h6,
body.dark-mode .single-post-content h1,
body.dark-mode .single-post-content h2,
body.dark-mode .single-post-content h3,
body.dark-mode .single-post-content h4,
body.dark-mode .single-post-content h5,
body.dark-mode .single-post-content h6,
body.dark-mode .entry-content h1,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content h4,
body.dark-mode .entry-content h5,
body.dark-mode .entry-content h6 {
    color: #e5e9ec;
}

body.dark-mode .post-content ul li,
body.dark-mode .post-content ol li,
body.dark-mode .single-post-content ul li,
body.dark-mode .single-post-content ol li,
body.dark-mode .entry-content ul li,
body.dark-mode .entry-content ol li {
    color: #e5e9ec;
}

body.dark-mode .post-content strong,
body.dark-mode .post-content b,
body.dark-mode .single-post-content strong,
body.dark-mode .single-post-content b,
body.dark-mode .entry-content strong,
body.dark-mode .entry-content b {
    color: #e5e9ec;
}

body.dark-mode .single-post-content p,
body.dark-mode .entry-content p,
body.dark-mode .page-content p {
    color: #e5e9ec;
}

/* ========================================
   Layout
   ======================================== */
.container {
    width: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    padding: 30px 0;
}

/* Layout classes for sidebar positioning */
.layout-right-sidebar .site-content {
    grid-template-columns: 1fr 340px;
}

.layout-left-sidebar .site-content {
    grid-template-columns: 340px 1fr;
}

.layout-left-sidebar .main-content {
    order: 2;
}

.layout-left-sidebar .sidebar {
    order: 1;
}

.layout-no-sidebar .site-content {
    grid-template-columns: 1fr;
}

.layout-no-sidebar .sidebar {
    display: none;
}

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

/* ========================================
   Header
   ======================================== */
.site-header {
    background: #354856;
    position: relative;
    z-index: 1000;
    box-shadow: var(--shadow);
    padding: 0;
    height: 60px;
}

@media (min-width: 769px) {
    .site-header {
        position: sticky;
        top: 0;
        transition: transform 0.3s ease-in-out;
    }
    
    body.admin-bar .site-header {
        top: 32px;
    }
    
    .site-header.header-hidden {
        transform: translateY(-100%);
    }
}

@media (max-width: 768px) {
    .site-header {
        height: 50px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .header-inner {
        padding: 0 15px;
        position: relative;
    }
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 768px) {
    .header-left {
        display: none;
    }
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Mobile header sections */
.header-mobile-left {
    display: none;
}

@media (max-width: 768px) {
    .header-mobile-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .header-mobile-left .site-logo img {
        max-height: 28px;
    }
    
    .header-mobile-left .site-logo a {
        font-size: 0.95rem;
    }
    
    .header-right {
        margin-left: auto;
        gap: 8px;
    }
}

.site-logo {
    display: flex;
    align-items: center;
}

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

.site-logo .custom-logo-link {
    display: flex;
    align-items: center;
    height: 35px;
}

.site-logo a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 2px;
}

.site-logo .at-symbol {
    color: var(--accent-turquoise);
    font-size: 0.9rem;
}

.site-header .site-logo a {
    color: #ffffff;
}

.site-footer .site-logo a {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.main-navigation ul {
    display: flex;
    gap: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
    height: 60px;
    line-height: 60px;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: #4285f4;
    background: transparent;
}

/* Dropdown */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
    flex-direction: column;
}

.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation .sub-menu a {
    color: var(--text-color);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
}

.main-navigation .sub-menu a:hover {
    background: var(--bg-color);
    color: var(--accent-turquoise);
}

.main-navigation .sub-menu li:last-child a {
    border-bottom: none;
}

/* Nested submenu */
.main-navigation .sub-menu .sub-menu {
    left: 100%;
    top: 0;
}

/* Dropdown icon */
.main-navigation a i {
    font-size: 0.7rem;
    margin-left: 5px;
}

/* Dark Mode - Dropdown Submenu */
body.dark-mode .main-navigation .sub-menu {
    background: #2c3e48;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

body.dark-mode .main-navigation .sub-menu a {
    color: #e5e9ec;
    border-bottom-color: #3a4149;
}

body.dark-mode .main-navigation .sub-menu a:hover {
    background: #374858;
    color: #28ae87;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    padding: 8px;
    cursor: pointer;
    transition: var(--transition);
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .header-btn {
        height: 36px;
        width: 36px;
        font-size: 0.95rem;
        padding: 6px;
    }
}

.header-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* Header Search Expandable */
.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-form {
    position: fixed !important;
    left: 50% !important;
    top: 8px !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 1050px !important;
    height: 38px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.3s ease, visibility 0.3s ease !important;
    background: #394d58 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    z-index: 10000 !important;
    padding: 0 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
}

@media (max-width: 768px) {
    .header-search-form {
        height: 35px !important;
        top: 5px !important;
    }
    
    body.admin-bar .header-search-form {
        top: 51px !important;
    }
}

/* Ajuste para barra de administración de WordPress */
body.admin-bar .header-search-form {
    top: 40px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .header-search-form {
        top: 54px !important;
    }
}

.header-search-wrapper.active .header-search-form {
    opacity: 1 !important;
    visibility: visible !important;
}

.header-search-wrapper.active .search-toggle {
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    padding: 0 !important;
}

.header-search-input {
    flex: 1 !important;
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    padding: 0 60px 0 0 !important;
    font-size: 14px !important;
    outline: none !important;
    height: 38px !important;
    line-height: 38px !important;
}

@media (max-width: 768px) {
    .header-search-input {
        height: 35px !important;
        line-height: 35px !important;
        font-size: 13px !important;
    }
}

.header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.header-search-submit {
    display: none !important;
}

.header-search-close {
    position: absolute !important;
    right: 20px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    padding: 10px !important;
    cursor: pointer !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    width: 40px !important;
    height: 40px !important;
}

.header-search-close:hover {
    opacity: 0.8 !important;
}

/* ========================================
   Mega Menu
   ======================================== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 800px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-item {
    display: flex;
    gap: 15px;
}

.mega-menu-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.mega-menu-item h4 {
    font-size: 0.9rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.mega-menu-item h4 a {
    color: var(--text-color);
}

.mega-menu-item h4 a:hover {
    color: var(--accent-turquoise);
}

/* ========================================
   Search Modal (Disabled - using header search instead)
   ======================================== */
.search-modal {
    display: none !important;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-inner {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.search-modal .search-form {
    display: flex;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-modal .search-field {
    flex: 1;
    border: none;
    padding: 18px 20px;
    font-size: 1.1rem;
    outline: none;
}

.search-modal .search-submit {
    padding: 18px 25px;
    background: var(--accent-turquoise);
    color: #ffffff;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

/* ========================================
   Posts List
   ======================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-hover);
}

.post-card-header {
    margin-bottom: 15px;
}

.post-card-title {
    font-size: 25px;
    margin-bottom: 8px;
    line-height: 1.4;
    font-family: 'Work Sans', Arial, sans-serif;
}

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

.post-card-title a:hover {
    color: #4285f4;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #919ca2;
}

.post-card-meta a {
    color: #4285f4;
    font-weight: 500;
}

.post-card-meta .sep {
    color: #919ca2;
}

.post-card-body {
    display: flex;
    gap: 20px;
}

.post-card-thumbnail {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.post-card:hover .post-card-thumbnail img {
    filter: brightness(1.05);
}

.post-card-excerpt {
    flex: 1;
}

.post-card-excerpt p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-color);
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

/* ========================================
Load More Button
======================================== */
.load-more-wrap {
    text-align: center;
    padding: 30px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #4285f4;
    color: #ffffff;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.load-more-btn:hover:not(.loading):not(.no-more-posts) {
    background: #354856;
    color: #ffffff;
    transform: translateY(-2px);
}

.load-more-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    background: #6c757d;
}

.load-more-btn.no-more-posts {
    background: #6c757d;
    cursor: default;
    opacity: 0.8;
}

.load-more-btn.no-more-posts:hover {
    transform: none;
    background: #6c757d;
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: var(--transition);
}

.load-more-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   Sidebar (Blogger Template Style)
   ======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: flex-start;
}

/* Admin bar adjustments */
body.admin-bar .sidebar {
    top: 122px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sidebar {
        top: 136px;
    }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .sidebar {
        position: static !important;
        top: auto !important;
    }
}

.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-size: 17px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-turquoise);
}

/* Social Links Widget */
.social-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 55px;
    border-radius: 6px;
    color: #ffffff;
    transition: var(--transition);
    font-size: 1.35rem;
}

.social-link:hover {
    opacity: 0.92;
}

/* Sidebar widget: rectangular buttons (override global social-link size) */
.sidebar .social-links .social-link,
.widget .social-links .social-link {
    height: 40px;
    border-radius: 6px;
    font-size: 1.25rem;
}

.social-link i {
    color: #ffffff !important;
    font-size: 1.3rem;
}

.social-link svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* TikTok SVG icon */
.social-link .i-tiktok {
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-link:hover i {
    color: #ffffff !important;
}

.social-link.facebook { background: #4267B2 !important; }
.social-link.twitter { background: #1DA1F2 !important; }
.social-link.youtube { background: #FF0000 !important; }
.social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
.social-link.blogger { background: #FF5722 !important; }
.social-link.vk { background: #4a76a8 !important; }
.social-link.dribbble { background: #ea4c89 !important; }
.social-link.tiktok { background: #000000 !important; }
.social-link.twitch { background: #9146ff !important; }
.social-link.linkedin { background: #0077b5 !important; }
.social-link.pinterest { background: #E60023 !important; }
.social-link.github { background: #333 !important; }

/* Forzar colores en modo claro (sin dark-mode) */
body:not(.dark-mode) .social-link.facebook { background: #4267B2 !important; }
body:not(.dark-mode) .social-link.twitter { background: #1DA1F2 !important; }
body:not(.dark-mode) .social-link.youtube { background: #FF0000 !important; }
body:not(.dark-mode) .social-link.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important; }
body:not(.dark-mode) .social-link.blogger { background: #FF5722 !important; }
body:not(.dark-mode) .social-link.vk { background: #4a76a8 !important; }
body:not(.dark-mode) .social-link.dribbble { background: #ea4c89 !important; }
body:not(.dark-mode) .social-link.tiktok { background: #000000 !important; }
body:not(.dark-mode) .social-link.twitch { background: #9146ff !important; }
body:not(.dark-mode) .social-link.linkedin { background: #0077b5 !important; }
body:not(.dark-mode) .social-link.pinterest { background: #E60023 !important; }
body:not(.dark-mode) .social-link.github { background: #333 !important; }

/* Popular/Recent Posts Widget */
.widget-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-post-item {
    display: flex;
    gap: 12px;
}

.widget-post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
}

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

.widget-post-content h4 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.4;
}

.widget-post-content h4 a {
    color: var(--text-color);
}

.widget-post-content h4 a:hover {
    color: #4285f4;
}

/* Comments Widget */
.widget-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.widget-comment-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.widget-comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--border-color);
}

.widget-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-comment-content h5 {
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.widget-comment-content p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-light);
}

/* Tags Widget */
.widget-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.widget-tags .tag-link {
    display: inline-block;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #4285f4;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #4285f4;
    text-decoration: none;
    transition: all 0.3s ease;
}

.widget-tags .tag-link:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
    text-decoration: none;
}

.widget-tags .tag-link::after {
    content: '';
    margin-right: 0;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 22px;
    margin-bottom: 20px;
    align-items: center;
}

.post-tags-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #3b434e;
    margin-right: 8px;
}

.post-tags .tag-link {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 0.9rem;
    color: #4285f4;
    text-decoration: none;
    transition: var(--transition);
    margin-right: 4px;
}

.post-tags .tag-link:hover {
    background: transparent;
    border: none;
    color: #3367d6;
    text-decoration: underline;
}

.post-tags .tag-link::after {
    content: ',';
    color: #999;
    margin-right: 8px;
}

.post-tags .tag-link:last-child::after {
    content: '';
}

/* Social Share */
.post-share {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.post-share-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 15px;
}

.share-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    border: none;
    color: #ffffff !important;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

@media (max-width: 768px) {
    .share-button {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 6px;
    }
    
    .share-button span {
        display: none;
    }
    
    .share-button.facebook,
    .share-button.twitter {
        width: 40px;
        padding: 0;
    }
}

.share-button:hover {
    color: #b0bbcf !important;
}

.share-button i {
    font-size: 16px;
    color: #ffffff !important;
}

.share-button:hover i {
    color: #b0bbcf !important;
}

.share-button span {
    color: #ffffff !important;
}

.share-button:hover span {
    color: #b0bbcf !important;
}

.share-button.share-icon {
    background: #5a6c7d;
    width: 36px;
    padding: 0;
    cursor: default;
}

.share-button.share-icon:hover {
    background: #5a6c7d;
    color: #ffffff !important;
}

.share-button.facebook {
    background: #4267B2;
}

.share-button.facebook:hover {
    background: #5477c2;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.twitter:hover {
    background: #3db1f5;
}

.share-button.whatsapp {
    background: #25D366;
    width: 36px;
    padding: 0;
}

.share-button.whatsapp:hover {
    background: #3de376;
}

.share-button.email {
    background: #6c757d;
    width: 36px;
    padding: 0;
}

.share-button.email:hover {
    background: #7c858d;
}

.share-button.more {
    background: #6c757d;
    width: 36px;
    padding: 0;
}

.share-button.more:hover {
    background: #7c858d;
}

.share-button.reddit {
    background: #FF4500;
    width: 36px;
    padding: 0;
}

.share-button.reddit:hover {
    background: #ff5520;
}

.share-button.pinterest {
    background: #E60023;
    width: 36px;
    padding: 0;
}

.share-button.pinterest:hover {
    background: #f61043;
}

.share-button.vk {
    background: #4a76a8;
    width: 36px;
    padding: 0;
}

.share-button.vk:hover {
    background: #5a86b8;
}

.share-button.more-close {
    background: #6c757d;
    width: 36px;
    padding: 0;
}

.share-button.more-close:hover {
    background: #7c858d;
}

/* Ocultar redes adicionales por defecto */
.share-extra {
    display: none;
}

/* Mostrar redes adicionales cuando se activa */
.share-buttons.show-extra .share-extra {
    display: inline-flex;
}

/* Ocultar botón + cuando se muestran las redes adicionales */
.share-buttons.show-extra .share-button.more {
    display: none;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: #344955;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 30px;
}

.footer-main {
    padding: 25px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 30px;
    align-items: center;
}

.footer-logo a {
    font-size: 1rem !important;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 2px;
}

.footer-logo img {
    max-height: 35px !important;
    width: auto !important;
}

.footer-logo .custom-logo-link {
    display: flex;
    align-items: center;
    height: 35px !important;
}

.footer-logo .at-symbol {
    color: var(--accent-turquoise);
    font-size: 0.9rem;
}

.footer-about h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.site-footer .footer-social .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #3a4e59 !important;
    border: none !important;
    border-radius: 4px;
    color: #ffffff !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* Force neutral base color in footer (override global network colors) */
.site-footer .footer-social .social-link.facebook,
.site-footer .footer-social .social-link.twitter,
.site-footer .footer-social .social-link.youtube,
.site-footer .footer-social .social-link.instagram,
.site-footer .footer-social .social-link.blogger,
.site-footer .footer-social .social-link.vk,
.site-footer .footer-social .social-link.dribbble,
.site-footer .footer-social .social-link.twitch,
.site-footer .footer-social .social-link.linkedin,
.site-footer .footer-social .social-link.pinterest,
.site-footer .footer-social .social-link.github,
.site-footer .footer-social .social-link.rss {
    background: #3a4e59 !important;
}

.site-footer .footer-social .social-link i,
.site-footer .footer-social .social-link svg {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

.footer-social .social-link svg {
    width: 20px !important;
    height: 20px !important;
    stroke: #ffffff !important;
    fill: none !important;
}

.site-footer .footer-social .social-link:hover {
    transform: translateY(-2px);
}

/* Footer social links hover colors */
.site-footer .footer-social .social-link.facebook:hover {
    background: #4267B2 !important;
    border-color: rgba(255, 255, 255, 0.0) !important;
}

.site-footer .footer-social .social-link.twitter:hover {
    background: #1DA1F2 !important;
    border-color: rgba(255, 255, 255, 0.0) !important;
}

.site-footer .footer-social .social-link.youtube:hover {
    background: #FF0000 !important;
    border-color: rgba(255, 255, 255, 0.0) !important;
}

.site-footer .footer-social .social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    border-color: rgba(255, 255, 255, 0.0) !important;
}

.site-footer .footer-social .social-link.rss:hover {
    background: #FF9500 !important;
    border-color: rgba(255, 255, 255, 0.0) !important;
}

.footer-bottom {
    background: #2c3e48;
    padding: 15px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-copyright a {
    color: var(--accent-turquoise);
}

.footer-menu ul {
    display: flex;
    gap: 25px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* ========================================
   Anuncios
   ======================================== */
.seopro-ad {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.seopro-ad > * {
    margin: 0 auto;
}

/* ========================================
   Breadcrumbs
   ======================================== */
.seopro-breadcrumbs {
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
    color: #2d3e50;
}

.seopro-breadcrumbs a {
    color: #2d3e50;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.seopro-breadcrumbs a:hover {
    color: var(--primary-color);
    opacity: 1;
    text-decoration: underline;
}

.seopro-breadcrumbs .separator {
    margin: 0 10px;
    font-weight: 500;
    opacity: 0.6;
}

.seopro-breadcrumbs .current {
    font-weight: 600;
    opacity: 1;
}

/* Sección superior del post con fondo oscuro */
.single-post-header-section {
    background: #374858;
    padding: 30px 30px 30px 30px;
    margin: -30px -30px 0 -30px;
}

/* Fondo blanco en modo claro */
body:not(.dark-mode) .single-post-header-section {
    background: #ffffff;
}

/* Breadcrumbs dentro del single post - Estilo Blogger */
.single-post-breadcrumbs {
    background: transparent;
    padding: 0 30px;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 12px;
}

.single-post-breadcrumbs .seopro-breadcrumbs {
    padding: 0;
    font-size: 14px;
}

.single-post-breadcrumbs .seopro-breadcrumbs .container {
    padding: 0;
    max-width: 100%;
}

.single-post-breadcrumbs .seopro-breadcrumbs a {
    color: #3367d6;
    font-weight: 400;
    opacity: 1;
}

.single-post-breadcrumbs .seopro-breadcrumbs a:hover {
    color: #3367d6;
    text-decoration: none;
}

.single-post-breadcrumbs .seopro-breadcrumbs .separator {
    color: rgba(0, 0, 0, 0.4);
    margin: 0 12px;
}

.single-post-breadcrumbs .seopro-breadcrumbs .current {
    color: rgba(0, 0, 0, 0.6);
    font-weight: 400;
}

/* ========================================
   Single Post
   ======================================== */
.single-post-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.single-post-header {
    padding: 0 30px;
}

.single-post-title {
    font-size: 28px;
    margin-bottom: 0;
    color: var(--text-color);
    line-height: 1.3;
}

.single-post-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding: 8px 30px 12px;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

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

.post-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-author-name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.post-date {
    color: #919ca2;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.post-comments-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* Línea separadora */
.single-post-separator {
    height: 1px;
    background: var(--border-color);
    margin: 0 30px;
}

/* Línea separadora arriba de imagen */
.single-post-separator-above-image {
    height: 1px;
    background: var(--border-color);
    margin: 0 30px 15px;
}

.single-post-thumbnail {
    width: 100%;
    height: auto;
    padding: 0 30px;
    box-sizing: border-box;
    background: #374858;
}

/* Fondo blanco en modo claro */
body:not(.dark-mode) .single-post-thumbnail {
    background: #ffffff;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

.single-post-content {
    padding: 30px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Título de página con línea separadora */
.page .single-post-content .page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 25px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--gray-light);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--transition);
}

.post-nav-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.post-nav-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.post-nav-title {
    font-weight: 600;
    line-height: 1.4;
}

/* ========================================
   Dark Mode - Single Post
   ======================================== */
body.dark-mode .single-post-container {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .single-post-header-section {
    background: #374858;
}

body.dark-mode .single-post-thumbnail {
    background: #374858;
}

body.dark-mode .single-post-breadcrumbs {
    background: transparent;
    border-bottom: none;
}

body.dark-mode .single-post-breadcrumbs .seopro-breadcrumbs a {
    color: #4285f4 !important;
}

body.dark-mode .single-post-breadcrumbs .seopro-breadcrumbs a:hover {
    color: #3367d6 !important;
}

body.dark-mode .single-post-breadcrumbs .seopro-breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .single-post-breadcrumbs .seopro-breadcrumbs .current {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.dark-mode .single-post-title {
    color: #ecf0f1;
}

body.dark-mode .post-author-name {
    color: #ecf0f1;
}

body.dark-mode .post-date {
    color: #bdc3c7;
}

body.dark-mode .post-comments-count {
    color: #bdc3c7;
}

body.dark-mode .single-post-separator {
    background: #4a5f7a;
}

body.dark-mode .single-post-content {
    color: #ecf0f1;
}

body.dark-mode .post-nav-link {
    background: #34495e;
    color: #ecf0f1;
}

body.dark-mode .post-nav-link:hover {
    background: var(--accent-turquoise);
    color: #2c3e50;
}

/* Dark Mode - Comments */
body.dark-mode .comments-area {
    background: #354856;
    color: #ecf0f1;
}

body.dark-mode .comments-title {
    color: #ecf0f1;
}

body.dark-mode .comment-list > li {
    background: #2c3e50;
}

body.dark-mode .comment-list > li > article {
    background: transparent;
}

body.dark-mode .comment-body {
    background: transparent;
}

body.dark-mode .comment-author {
    color: #ecf0f1;
}

body.dark-mode .comment-author .url {
    color: var(--accent-turquoise);
}

body.dark-mode .comment-author .url:hover {
    color: #4285f4;
}

body.dark-mode .comment-metadata {
    color: #b4c1cc;
}

body.dark-mode .comment-metadata a {
    color: #b4c1cc;
}

body.dark-mode .comment-metadata a:hover {
    color: var(--accent-turquoise);
}

body.dark-mode .comment-content {
    color: #ecf0f1;
}

body.dark-mode .comment-content p {
    color: #ecf0f1;
}

body.dark-mode .comment-reply-link {
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.1);
    border-color: #4a5f7a;
}

body.dark-mode .comment-reply-link:hover {
    background: var(--accent-turquoise);
    color: #2c3e50;
    border-color: var(--accent-turquoise);
}

body.dark-mode .children {
    border-left: none;
    margin-left: 0;
    padding: 0 25px 25px 25px;
    margin-top: 20px;
}

body.dark-mode .children .comment-body {
    background: #354856;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

body.dark-mode .children .comment-body:last-child {
    margin-bottom: 0;
}

body.dark-mode .comment-respond {
    border-top-color: #4a5f7a;
}

body.dark-mode .comment-reply-title {
    color: #ecf0f1;
}

body.dark-mode .show-comment-form-btn {
    background: #4285f4;
    color: #ffffff;
}

body.dark-mode .show-comment-form-btn:hover {
    background: #3367d6;
}

body.dark-mode .comment-form label {
    color: #ecf0f1;
}

body.dark-mode .comment-form input[type="text"],
body.dark-mode .comment-form input[type="email"],
body.dark-mode .comment-form input[type="url"],
body.dark-mode .comment-form textarea {
    background: #354856;
    border-color: #4a5f7a;
    color: #ecf0f1;
}

body.dark-mode .comment-form input:focus,
body.dark-mode .comment-form textarea:focus {
    border-color: var(--accent-turquoise);
    background: #354856;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

body.dark-mode .comment-form .submit {
    background: var(--accent-turquoise);
    color: #2c3e50;
}

body.dark-mode .comment-form .submit:hover {
    background: #4285f4;
    transform: translateY(-1px);
}

/* Dark Mode - Global Links */
body.dark-mode a {
    color: #4285f4;
}

body.dark-mode a:hover {
    color: #dddae4;
}

/* Dark Mode - Content Links */
body.dark-mode .single-post-content a {
    color: #4285f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.dark-mode .single-post-content a:hover {
    color: #dddae4;
}

/* Dark Mode - Widget Links */
body.dark-mode .widget a {
    color: #4285f4;
}

body.dark-mode .widget a:hover {
    color: #dddae4;
}

/* Dark Mode - Navigation Links */
body.dark-mode .main-navigation a {
    color: rgba(246, 247, 248, 0.85);
}

body.dark-mode .main-navigation a:hover,
body.dark-mode .main-navigation .current-menu-item > a {
    color: #4285f4;
}

/* Dark Mode - Footer Links */
body.dark-mode .site-footer a {
    color: #4285f4;
}

body.dark-mode .site-footer a:hover {
    color: #dddae4;
}

/* Dark Mode - Post Card Links */
body.dark-mode .post-card a {
    color: #4285f4;
}

body.dark-mode .post-card a:hover {
    color: #dddae4;
}

/* Dark Mode - Archive */
body.dark-mode .archive-header {
    background: transparent;
}

body.dark-mode .archive-title {
    color: #ecf0f1;
}

body.dark-mode .archive-title a {
    color: #4285f4;
}

body.dark-mode .archive-title a:hover {
    color: #dddae4;
}

body.dark-mode .archive-description {
    color: #b4c1cc;
}

body.dark-mode .archive-description a {
    color: #4285f4;
}

body.dark-mode .archive-description a:hover {
    color: #dddae4;
}

/* Dark Mode - Tags */
body.dark-mode .widget-tags .tag-link {
    background: transparent;
    border: 1px solid #4285f4;
    color: #4285f4;
}

body.dark-mode .widget-tags .tag-link:hover {
    background: #4285f4;
    border-color: #4285f4;
    color: #ffffff;
    text-decoration: none;
}

body.dark-mode .widget-tags .tag-link::after {
    content: '';
}

body.dark-mode .post-tags-label {
    color: #fff;
}

body.dark-mode .post-tags .tag-link {
    background: transparent;
    border: none;
    color: #4285f4;
}

body.dark-mode .post-tags .tag-link:hover {
    background: transparent;
    border: none;
    color: #3367d6;
    text-decoration: underline;
}

body.dark-mode .post-tags .tag-link::after {
    color: #999;
}

/* Dark Mode - Social Share */
body.dark-mode .post-share {
    border-top-color: #4a5f7a;
}

body.dark-mode .post-share-title {
    color: #b4c1cc;
}

body.dark-mode .share-button {
    color: #ffffff;
}

body.dark-mode .share-button.share-icon {
    background: #5a6c7d !important;
}

body.dark-mode .share-button.share-icon:hover {
    background: #6a7c8d !important;
}

body.dark-mode .share-button.facebook {
    background: #4267B2 !important;
}

body.dark-mode .share-button.facebook:hover {
    background: #5477c2 !important;
}

body.dark-mode .share-button.twitter {
    background: #1DA1F2 !important;
}

body.dark-mode .share-button.twitter:hover {
    background: #3db1f5 !important;
}

body.dark-mode .share-button.whatsapp {
    background: #25D366 !important;
}

body.dark-mode .share-button.whatsapp:hover {
    background: #3de376 !important;
}

body.dark-mode .share-button.reddit {
    background: #FF4500 !important;
}

body.dark-mode .share-button.reddit:hover {
    background: #ff5520 !important;
}

body.dark-mode .share-button.pinterest {
    background: #E60023 !important;
}

body.dark-mode .share-button.pinterest:hover {
    background: #f61043 !important;
}

body.dark-mode .share-button.vk {
    background: #4a76a8 !important;
}

body.dark-mode .share-button.vk:hover {
    background: #5a86b8 !important;
}

body.dark-mode .share-button.email {
    background: #6c757d !important;
}

body.dark-mode .share-button.email:hover {
    background: #7c858d !important;
}

body.dark-mode .share-button.more,
body.dark-mode .share-button.more-close {
    background: #6c757d !important;
}

body.dark-mode .share-button.more:hover,
body.dark-mode .share-button.more-close:hover {
    background: #7c858d !important;
}

/* Dark Mode - Sidebar Social Links */
body.dark-mode .social-link.facebook {
    background: #4267B2 !important;
}

body.dark-mode .social-link.twitter {
    background: #1DA1F2 !important;
}

body.dark-mode .social-link.youtube {
    background: #FF0000 !important;
}

body.dark-mode .social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
}

body.dark-mode .social-link.blogger {
    background: #FF5722 !important;
}

body.dark-mode .social-link.vk {
    background: #4a76a8 !important;
}

body.dark-mode .social-link.dribbble {
    background: #ea4c89 !important;
}

body.dark-mode .social-link.twitch {
    background: #9146ff !important;
}

body.dark-mode .social-link.linkedin {
    background: #0077b5 !important;
}

body.dark-mode .social-link.pinterest {
    background: #E60023 !important;
}

body.dark-mode .social-link.github {
    background: #333 !important;
}

/* Dark Mode - Related Posts */
body.dark-mode .related-posts-title {
    color: #ecf0f1;
}

body.dark-mode .related-posts-container {
    background: #354856;
}

body.dark-mode .related-posts-container .related-posts-title {
    color: #ffffff;
}

body.dark-mode .related-post-title a {
    color: #ffffff;
}

body.dark-mode .related-post-title a:hover {
    color: #4285f4;
}

/* ========================================
   Related Posts
   ======================================== */
.related-posts {
    margin-top: 40px;
}

.related-posts-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.related-posts-container {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.related-posts-container .related-posts-title {
    color: var(--text-color);
    margin-bottom: 25px;
}

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

.related-post-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.related-post-thumbnail {
    width: 100%;
    height: 120px;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

.related-post-card:hover .related-post-thumbnail img {
    filter: brightness(1.1);
}

.related-post-content {
    padding: 12px 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.related-post-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.related-post-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-title a:hover {
    color: #4285f4;
}

/* Responsive for related posts */
@media (max-width: 1024px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .related-posts-container {
        padding: 20px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .related-post-thumbnail {
        height: 140px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header {
        padding: 15px 0;
    }

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

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        z-index: 1000;
    }

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

    .main-navigation ul {
        flex-direction: column;
        padding: 20px;
    }

    .main-navigation li {
        margin: 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .main-navigation li:last-child {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        padding: 60px 0;
    }

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

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

    .sidebar {
        margin-top: 50px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .site-footer {
        text-align: center;
    }

    .footer-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .single-post-content {
        padding: 25px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Single Post - Estilos eliminados (duplicados)
   ======================================== */


/* ========================================
   Comments
   ======================================== */
.comments-area {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 30px;
}

.comments-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.comment-list {
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
    display: block;
}

.comment-respond {
    display: none;
}

.comment-respond.show-form {
    display: block;
}

.show-comment-form-btn {
    display: block;
    width: 100%;
    padding: 14px 30px;
    background: #4285f4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-bottom: 20px;
    text-align: center;
}

.show-comment-form-btn:hover {
    background: #3367d6;
}

.show-comment-form-btn.active {
    display: none;
}

.comment-list > li {
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 0;
}

.comment-list > li:last-child {
    margin-bottom: 0;
}

.comment-list > li > article {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.comment-list > li > .comment-body {
    padding: 25px;
    padding-bottom: 25px;
}

.comment-body {
    display: flex;
    gap: 15px;
    padding: 0;
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.comment-author .url {
    color: #4285f4;
    text-decoration: none;
}

.comment-author .url:hover {
    color: #3367d6;
}

.comment-metadata {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--primary-color);
}

.comment-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.reply {
    margin-top: 16px;
}

.comment-reply-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-transform: uppercase;
}

.comment-reply-link:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.children {
    margin-left: 0;
    padding: 20px 25px 25px 25px;
    border-left: none;
    margin-top: 0;
}

.children .comment-body {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
}

.children .comment-body:last-child {
    margin-bottom: 0;
}

.comment-list > li > .children {
    padding: 20px 25px 25px 25px;
}

/* Comment Form */
.comment-respond {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

/* When the form is moved under a comment (reply), avoid cramped/duplicated separators */
.comment-body .comment-respond {
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

#cancel-comment-reply-link {
    margin-left: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #4285f4;
}

#cancel-comment-reply-link:hover {
    color: #3367d6;
    text-decoration: underline;
}

/* ========================================
   Shortcodes (SeoPro)
   ======================================== */
.seopro-sc {
    box-sizing: border-box;
}

/* Button */
.seopro-sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid transparent;
    line-height: 1.1;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}

.seopro-sc-btn i {
    font-size: 0.95em;
}

.seopro-sc-btn-sm { padding: 8px 12px; border-radius: 9px; font-size: 0.9rem; }
.seopro-sc-btn-md { font-size: 0.95rem; }
.seopro-sc-btn-lg { padding: 12px 18px; border-radius: 12px; font-size: 1.02rem; }

.seopro-sc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.seopro-sc-btn-primary {
    background: linear-gradient(135deg, #28ae87 0%, #00d4d4 100%);
    color: #ffffff !important;
}

.seopro-sc-btn-secondary {
    background: rgba(0, 212, 212, 0.12);
    border-color: rgba(0, 212, 212, 0.25);
    color: #0d6f73 !important;
    box-shadow: none;
}

.seopro-sc-btn-ghost {
    background: transparent;
    border-color: rgba(100, 105, 112, 0.25);
    color: var(--text-color) !important;
    box-shadow: none;
}

.seopro-sc-btn-dark {
    background: #3a4e59;
    color: #ffffff !important;
}

/* Callout */
.seopro-sc-callout {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(100, 105, 112, 0.14);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    margin: 16px 0;
}

.seopro-sc-callout-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.seopro-sc-callout-title {
    font-weight: 800;
    margin-bottom: 4px;
}

.seopro-sc-callout-text {
    color: var(--text-color);
}

.seopro-sc-callout-text > :last-child { margin-bottom: 0; }

.seopro-sc-callout-info {
    border-left: 4px solid #00d4d4;
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.10), rgba(255,255,255,0.96));
}
.seopro-sc-callout-info .seopro-sc-callout-icon { color: #00bfbf; }

.seopro-sc-callout-success {
    border-left: 4px solid #28ae87;
    background: linear-gradient(90deg, rgba(40, 174, 135, 0.10), rgba(255,255,255,0.96));
}
.seopro-sc-callout-success .seopro-sc-callout-icon { color: #28ae87; }

.seopro-sc-callout-warning {
    border-left: 4px solid #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(255,255,255,0.96));
}
.seopro-sc-callout-warning .seopro-sc-callout-icon { color: #f59e0b; }

.seopro-sc-callout-danger {
    border-left: 4px solid #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.10), rgba(255,255,255,0.96));
}
.seopro-sc-callout-danger .seopro-sc-callout-icon { color: #ef4444; }

/* Badge */
.seopro-sc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}
.seopro-sc-badge-primary { background: rgba(0, 212, 212, 0.16); color: #0a6064; border-color: rgba(0, 212, 212, 0.28); }
.seopro-sc-badge-success { background: rgba(40, 174, 135, 0.16); color: #075743; border-color: rgba(40, 174, 135, 0.26); }
.seopro-sc-badge-warning { background: rgba(245, 158, 11, 0.18); color: #7a3a08; border-color: rgba(245, 158, 11, 0.28); }
.seopro-sc-badge-danger { background: rgba(239, 68, 68, 0.16); color: #6b1515; border-color: rgba(239, 68, 68, 0.26); }
.seopro-sc-badge-neutral { background: rgba(100, 105, 112, 0.12); color: rgba(29, 35, 39, 0.92); border-color: rgba(100, 105, 112, 0.22); }

/* Divider */
.seopro-sc-divider {
    width: 100%;
    border-top: 1px solid rgba(100, 105, 112, 0.18);
}
.seopro-sc-divider-sm { margin: 10px 0; }
.seopro-sc-divider-md { margin: 18px 0; }
.seopro-sc-divider-lg { margin: 28px 0; }

/* Columns */
.seopro-sc-cols {
    display: flex;
    gap: var(--seopro-sc-gap, 16px);
    align-items: stretch;
    margin: 18px 0;
}
.seopro-sc-col {
    min-width: 0;
}
@media (max-width: 768px) {
    .seopro-sc-cols.seopro-sc-cols-stack {
        flex-direction: column;
    }
    .seopro-sc-col {
        flex-basis: 100% !important;
    }
}

/* Accordion */
.seopro-sc-acc {
    border: 1px solid rgba(100, 105, 112, 0.18);
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    margin: 18px 0;
}
.seopro-sc-acc-item + .seopro-sc-acc-item {
    border-top: 1px solid rgba(100, 105, 112, 0.14);
}
.seopro-sc-acc-trigger {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 14px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 800;
    cursor: pointer;
    color: var(--text-color);
}

.seopro-sc-acc-trigger:hover {
    background: rgba(0, 212, 212, 0.06);
}
.seopro-sc-acc-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(100, 105, 112, 0.8);
    border-bottom: 2px solid rgba(100, 105, 112, 0.8);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-left: 12px;
    flex-shrink: 0;
}
.seopro-sc-acc-item.is-open .seopro-sc-acc-chevron {
    transform: rotate(-135deg);
}
.seopro-sc-acc-panel {
    display: none;
    padding: 10px 14px 14px 14px;
    color: var(--text-color);
}

.seopro-sc-acc-panel > :first-child {
    margin-top: 0;
}

.seopro-sc-acc-panel p {
    margin: 10px 0 0;
}

.seopro-sc-acc-panel p:first-child {
    margin-top: 0;
}
.seopro-sc-acc-item.is-open .seopro-sc-acc-panel {
    display: block;
}

/* Quote */
.seopro-sc-quote {
    margin: 18px 0;
    padding: 20px 20px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(100, 105, 112, 0.14);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}
.seopro-sc-quote-text {
    margin: 0;
    padding: 0;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-color);
    position: relative;
}

/* Reset global blockquote styles inside shortcode quote */
.seopro-sc-quote blockquote {
    margin: 0;
    padding: 0;
    background: transparent;
    border-left: none;
    border-radius: 0;
    font-style: normal;
}

.seopro-sc-quote blockquote::before {
    content: none;
}

.seopro-sc-quote blockquote p {
    color: inherit;
    margin: 0;
}
.seopro-sc-quote-text:before {
    content: "“";
    font-size: 2.5rem;
    line-height: 1;
    color: rgba(0, 212, 212, 0.55);
    display: inline-block;
    margin-right: 6px;
    vertical-align: -0.4rem;
}
.seopro-sc-quote-meta {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: baseline;
}
.seopro-sc-quote-author {
    font-weight: 900;
    color: #1d2327;
}
.seopro-sc-quote-role {
    color: rgba(100, 105, 112, 0.9);
    font-weight: 600;
}

/* Dark mode - Shortcodes */
body.dark-mode .seopro-sc-btn-secondary {
    background: rgba(0, 212, 212, 0.12);
    border-color: rgba(0, 212, 212, 0.25);
    color: #b7f4f4 !important;
}

body.dark-mode .seopro-sc-btn-ghost {
    border-color: rgba(229, 231, 235, 0.22);
    color: rgba(229, 231, 235, 0.92) !important;
}

body.dark-mode .seopro-sc-btn:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .seopro-sc-callout,
body.dark-mode .seopro-sc-acc,
body.dark-mode .seopro-sc-quote {
    background: #2c3e48;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

body.dark-mode .seopro-sc-callout-info {
    background: linear-gradient(90deg, rgba(0, 212, 212, 0.12), rgba(44, 62, 72, 1));
}
body.dark-mode .seopro-sc-callout-success {
    background: linear-gradient(90deg, rgba(40, 174, 135, 0.12), rgba(44, 62, 72, 1));
}
body.dark-mode .seopro-sc-callout-warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.14), rgba(44, 62, 72, 1));
}
body.dark-mode .seopro-sc-callout-danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12), rgba(44, 62, 72, 1));
}

body.dark-mode .seopro-sc-callout-title,
body.dark-mode .seopro-sc-acc-trigger,
body.dark-mode .seopro-sc-quote-author {
    color: rgba(255, 255, 255, 0.95);
}

body.dark-mode .seopro-sc-callout-text,
body.dark-mode .seopro-sc-callout-text p,
body.dark-mode .seopro-sc-acc-panel,
body.dark-mode .seopro-sc-quote-text,
body.dark-mode .seopro-sc-quote-role {
    color: rgba(229, 231, 235, 0.85);
}

body.dark-mode .seopro-sc-acc-item + .seopro-sc-acc-item {
    border-top-color: rgba(255, 255, 255, 0.10);
}

body.dark-mode .seopro-sc-acc-chevron {
    border-right-color: rgba(229, 231, 235, 0.75);
    border-bottom-color: rgba(229, 231, 235, 0.75);
}

body.dark-mode .seopro-sc-divider {
    border-top-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .seopro-sc-badge-neutral {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(229, 231, 235, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
}

body.dark-mode .seopro-sc-badge-primary { background: rgba(0, 212, 212, 0.16); color: rgba(214, 255, 255, 0.95); border-color: rgba(0, 212, 212, 0.24); }
body.dark-mode .seopro-sc-badge-success { background: rgba(40, 174, 135, 0.16); color: rgba(214, 255, 240, 0.95); border-color: rgba(40, 174, 135, 0.24); }
body.dark-mode .seopro-sc-badge-warning { background: rgba(245, 158, 11, 0.18); color: rgba(255, 236, 200, 0.95); border-color: rgba(245, 158, 11, 0.26); }
body.dark-mode .seopro-sc-badge-danger { background: rgba(239, 68, 68, 0.16); color: rgba(255, 220, 220, 0.95); border-color: rgba(239, 68, 68, 0.24); }

body.dark-mode .seopro-sc-quote-text:before {
    color: rgba(0, 212, 212, 0.45);
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-bottom: 15px;
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--text-color);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.comment-form .submit {
    padding: 10px 24px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.comment-form .submit:hover {
    background: var(--accent-turquoise);
    transform: translateY(-1px);
}

/* ========================================
   Page Templates
   ======================================== */
.page-header {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    text-align: center;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.page-description {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Archive/Search Results */
.archive-header {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 25px;
    box-shadow: none;
}

.archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.archive-description {
    color: var(--text-light);
    margin: 0;
}

/* 404 Page */
.error-404 {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.error-404 h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.error-404 p {
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
}

.error-404 .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}

.error-404 .search-submit {
    padding: 12px 25px;
    background: var(--accent-turquoise);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* No Results */
.no-results {
    background: var(--white);
    padding: 60px 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.no-results .search-form {
    max-width: 400px;
    margin: 20px auto 0;
    display: flex;
}

.no-results .search-field {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
}

.no-results .search-submit {
    padding: 12px 25px;
    background: var(--accent-turquoise);
    color: #ffffff;
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    cursor: pointer;
}

/* ========================================
   Cookie Notice - Disabled
   ======================================== */
/* Hide Split Post Popup - Specific */
#miModal,
.modal,
.modal-content,
#boton1,
#boton2,
#barraCarga,
div[id*="Modal"],
div[class*="modal"],
div:has(.modal-content),
div:has(#boton1),
div:has(#boton2) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Hide overlay divs with rgba background */
body > div[style*="position: fixed"][style*="rgba"],
body > div[style*="position:fixed"][style*="rgba"],
body > div[style*="display: block"][style*="position"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure body overflow is not hidden by popup scripts */
body[style*="overflow: hidden"],
body[style*="overflow:hidden"] {
    overflow: auto !important;
}

.cookie-notice {
    display: none !important;
}

.cookie-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 320px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transform: translateY(150%);
    transition: var(--transition);
}

.cookie-notice.active {
    transform: translateY(0);
}

.cookie-notice p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.cookie-notice a {
    color: var(--accent-turquoise);
}

.cookie-accept {
    padding: 10px 20px;
    background: var(--accent-turquoise);
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.cookie-accept:hover {
    background: var(--primary-color);
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #4285f4;
    color: #ffffff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Search Results Page
   ======================================== */
.search-header {
    margin-bottom: 30px;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.search-title {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
    background: transparent;
}

.search-title span {
    font-weight: 600;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

.search-result-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.search-result-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.search-result-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: var(--radius);
    overflow: hidden;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.search-result-thumbnail:hover img {
    transform: scale(1.05);
}

.search-result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.search-result-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.search-result-title a:hover {
    color: #4285f4;
}

.search-result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.search-result-meta .by {
    color: var(--text-light);
}

.search-result-author {
    color: #4285f4;
    text-decoration: none;
    font-weight: 500;
}

.search-result-author:hover {
    text-decoration: underline;
}

.search-result-meta .sep {
    color: var(--text-light);
}

.search-result-date {
    color: var(--text-light);
}

.search-result-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 0;
}

.search-result-excerpt p {
    margin: 0;
}

.search-end-message {
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 500;
}

/* Dark Mode - Search Results */
body.dark-mode .search-header {
    background: transparent;
}

body.dark-mode .search-title {
    color: #ecf0f1;
    background: transparent;
}

body.dark-mode .search-result-item {
    background: #2c3e50;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .search-result-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

body.dark-mode .search-result-title a {
    color: #ecf0f1;
}

body.dark-mode .search-result-title a:hover {
    color: #4285f4;
}

body.dark-mode .search-result-meta {
    color: #b4c1cc;
}

body.dark-mode .search-result-meta .by,
body.dark-mode .search-result-meta .sep,
body.dark-mode .search-result-date {
    color: #b4c1cc;
}

body.dark-mode .search-result-excerpt {
    color: #b4c1cc;
}

body.dark-mode .search-end-message {
    color: #b4c1cc;
}

/* Responsive - Search Results */
@media screen and (max-width: 768px) {
    .search-result-item {
        flex-direction: column;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* ========================================
   Error 404 Page
   ======================================== */
.error-404-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: #4a5f6d;
}

.error-404-container {
    max-width: 600px;
    width: 100%;
    text-align: center;
}

.error-404-content {
    padding: 40px;
}

.error-404-title {
    font-size: 150px;
    font-weight: 700;
    line-height: 1;
    margin: 0 0 20px 0;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.error-404-subtitle {
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.error-404-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: rgba(255, 255, 255, 0.9);
}

.error-404-button {
    display: inline-block;
    padding: 12px 30px;
    background: #4285f4;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.error-404-button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Dark Mode - Error 404 */
body.dark-mode .error-404-page {
    background: #2c3e50;
}

body.dark-mode .error-404-title {
    color: #ffffff;
}

body.dark-mode .error-404-subtitle {
    color: #ecf0f1;
}

body.dark-mode .error-404-text {
    color: #b4c1cc;
}

/* ========================================
   Pagination
   ======================================== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current,
.nav-links a:hover,
.nav-links .current {
    background: var(--accent-turquoise);
    color: #ffffff;
}

/* ========================================
   Mobile Navigation
   ======================================== */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    z-index: 2000;
    overflow-y: auto;
    transition: var(--transition);
    box-shadow: var(--shadow-hover);
}

body:not(.dark-mode) .mobile-nav {
    background: #ffffff;
}

body:not(.dark-mode) .mobile-nav-header {
    background: #384858;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body:not(.dark-mode) .mobile-nav-header .site-logo a {
    color: #ffffff;
}

body:not(.dark-mode) .mobile-nav-close {
    color: #ffffff;
}

body:not(.dark-mode) .mobile-nav-menu a {
    color: #1d2327;
}

body:not(.dark-mode) .mobile-nav-menu a:hover {
    background: #f3f4f6;
}

body:not(.dark-mode) .mobile-nav-menu .sub-menu {
    background: #f9fafb;
}

body:not(.dark-mode) .mobile-nav-menu .menu-item-has-children > a::after {
    color: rgba(0, 0, 0, 0.5);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header .site-logo a {
    color: #ffffff;
}

.mobile-nav-close {
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-nav-menu {
    padding: 15px 0;
}

.mobile-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-menu a {
    display: block;
    padding: 12px 20px;
    color: #ffffff;
    font-weight: 500;
}

.mobile-nav-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-turquoise);
}

.mobile-nav-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 45px;
}

.mobile-nav-menu .menu-item-has-children > a::after {
    content: '\f077';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.mobile-nav-menu .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(0deg);
}

.mobile-nav-menu .sub-menu {
    padding-left: 20px;
    background: rgba(0, 0, 0, 0.2);
    display: none;
}

.mobile-nav-menu .menu-item-has-children.active > .sub-menu {
    display: block;
}

.mobile-nav-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-social {
    display: flex;
    gap: 10px;
}

.mobile-nav-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .site-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .mega-menu {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo a {
        justify-content: center;
    }

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

@media (max-width: 768px) {
    .main-navigation,
    .header-actions .theme-toggle,
    .header-actions .search-toggle {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .main-content {
        width: 100%;
        min-width: 100%;
    }
    
    .posts-list {
        width: 100%;
        display: flex;
        flex-direction: column;
    }

    .post-card {
        padding: 0;
        overflow: hidden;
        width: 100%;
        display: block;
    }
    
    .post-card-header {
        margin-bottom: 0;
        padding: 0 10px;
    }
    
    .post-card-title {
        font-size: 20px;
        margin: 0 0 10px 0;
        padding: 20px 0 0 0;
        line-height: 1.3;
        font-weight: 700;
    }
    
    .post-card-meta {
        font-size: 0.85rem;
        padding: 0;
        margin-bottom: 15px;
    }
    
    .post-card-body {
        flex-direction: column;
        gap: 0;
    }
    
    .post-card-thumbnail {
        width: 100%;
        height: 180px;
        border-radius: 0;
        margin-bottom: 15px;
    }
    
    .post-card-thumbnail img {
        transition: transform 0.3s ease;
    }
    
    .post-card:hover .post-card-thumbnail img {
        transform: scale(1.05);
        filter: none;
    }
    
    .post-card-excerpt {
        padding: 0 10px 20px 10px;
    }
    
    .post-card-excerpt p {
        font-size: 0.9rem;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .single-post-content {
        padding: 25px;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .post-card {
        padding: 20px;
    }

    .widget {
        padding: 20px;
    }

    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }

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

/* ========================================
   Dark Mode
   ======================================== */
body.dark-mode {
    background-color: #2c3e48;
    color: #f6f7f8;
}

body.dark-mode .site-content {
    background-color: #2c3e48;
}

body.dark-mode .post-card,
body.dark-mode .widget,
body.dark-mode .single-post-content {
    background: #354856;
    color: #f6f7f8;
}

/* Dark Mode - Título de página */
body.dark-mode .page .single-post-content .page-title {
    color: #ffffff !important;
    border-bottom-color: #3a4149;
}

body.dark-mode .page-title {
    color: #ffffff !important;
}

body.dark-mode .post-card-title,
body.dark-mode .single-post-title,
body.dark-mode .widget-title {
    color: #f6f7f8 !important;
}

body.dark-mode .post-card-title a,
body.dark-mode .single-post-title a,
body.dark-mode .widget-title a {
    color: #f6f7f8 !important;
}

body.dark-mode .post-card-title a:hover,
body.dark-mode .single-post-title a:hover,
body.dark-mode .widget-title a:hover {
    color: #4285f4 !important;
}

/* Additional widget title selectors for dark mode */
body.dark-mode .widget h2,
body.dark-mode .widget h3,
body.dark-mode .widget h4,
body.dark-mode .widget h5,
body.dark-mode .widget .widget-title {
    color: #f6f7f8 !important;
}

body.dark-mode .widget h2 a,
body.dark-mode .widget h3 a,
body.dark-mode .widget h4 a,
body.dark-mode .widget h5 a {
    color: #f6f7f8 !important;
}

body.dark-mode .widget h2 a:hover,
body.dark-mode .widget h3 a:hover,
body.dark-mode .widget h4 a:hover,
body.dark-mode .widget h5 a:hover {
    color: #4285f4 !important;
}

/* Widget hover effects for light mode */
.widget-title a:hover,
.widget h2 a:hover,
.widget h3 a:hover,
.widget h4 a:hover,
.widget h5 a:hover,
.widget-comment-content h5 a:hover {
    color: #4285f4;
}
body.dark-mode .widget-comment-content h5,
body.dark-mode .widget-comment-content h5 a {
    color: #f6f7f8 !important;
}

body.dark-mode .widget-comment-content h5 a:hover {
    color: #4285f4 !important;
}

body.dark-mode .widget-comment-content p {
    color: #b4c1cc !important;
}

body.dark-mode .post-card-excerpt p,
body.dark-mode .single-post-content p,
body.dark-mode .post-excerpt {
    color: #b4c1cc;
}

body.dark-mode .post-author-name {
    color: #4285f4;
}

body.dark-mode .post-card-meta,
body.dark-mode .post-date,
body.dark-mode .post-comments-count {
    color: #b4c1cc;
}

body.dark-mode .site-header {
    background: #354856;
}

body.dark-mode .main-navigation a {
    color: rgba(246, 247, 248, 0.85);
}

body.dark-mode .main-navigation a:hover,
body.dark-mode .main-navigation .current-menu-item > a {
    color: #4285f4;
}

body.dark-mode .header-btn {
    color: rgba(246, 247, 248, 0.85);
}

body.dark-mode .header-btn:hover {
    color: #f6f7f8;
}

body.dark-mode .header-search-form {
    background: #394d58 !important;
}

body.dark-mode .header-search-input {
    color: #ffffff !important;
}

body.dark-mode .header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode .header-search-close {
    color: #ffffff !important;
}

body.dark-mode .site-footer {
    background: #344955;
    color: #f6f7f8;
}

body.dark-mode .site-logo a {
    color: #f6f7f8;
}

/* ========================================
   RTL Support
   ======================================== */
[dir="rtl"] .widget-title::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .main-navigation .sub-menu {
    left: auto;
    right: 0;
}

[dir="rtl"] .main-navigation .sub-menu .sub-menu {
    left: auto;
    right: 100%;
}

[dir="rtl"] .single-post-content blockquote {
    border-left: none;
    border-right: 4px solid var(--accent-turquoise);
    border-radius: var(--radius) 0 0 var(--radius);
}

[dir="rtl"] .mobile-nav {
    left: auto;
    right: -300px;
}

[dir="rtl"] .mobile-nav.active {
    left: auto;
    right: 0;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeIn 0.5s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }
.post-card:nth-child(4) { animation-delay: 0.4s; }
.post-card:nth-child(5) { animation-delay: 0.5s; }

/* Loading Animation */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-turquoise);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .cookie-notice,
    .back-to-top,
    .comments-area,
    .post-navigation {
        display: none !important;
    }

    .site-content {
        display: block;
    }

    .single-post-content {
        box-shadow: none;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }
}
