/**
 * Base Theme Styles
 * Estilos fundamentales del theme
 */

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #2C3E50;
    background: #F8FAFB;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

.logo h1,
.logo a {
    color: #6BA4E8;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

/* Logo image styles */
.custom-logo-link {
    display: inline-block;
    padding: 8px 16px;
    background: #6BA4E8;
    border-radius: 8px;
}

.custom-logo {
    max-width: 200px;
    max-height: 50px;
    width: auto;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 30px;
}

/* WordPress menu styles */
.main-nav .nav-menu,
.main-nav .menu,
.main-nav ul {
    display: flex !important;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-direction: row;
}

.main-nav .menu-item,
.main-nav li {
    margin: 0;
    display: inline-block;
}

.main-nav .nav-link,
.main-nav .menu-item a,
.main-nav a {
    color: #4A5568;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.main-nav .menu-item a:hover,
.main-nav .current-menu-item a,
.main-nav a:hover {
    color: #6BA4E8;
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-register {
    padding: 10px 24px;
    background: #FF9D7A;
    color: #ffffff;
    border: none;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-register:hover {
    background: #FF8B65;
    transform: translateY(-2px);
}

.btn-logout {
    display: inline-block;
    padding: 10px 24px;
    background: #ffffff;
    color: #4A5568;
    border: 2px solid #e1e8ed;
    border-radius: 24px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.3s;
    margin-left: 8px;
}

.btn-logout:hover {
    background: #FFF5F2;
    border-color: #FF9D7A;
    color: #FF9D7A;
    transform: translateY(-1px);
}

a.btn-logout {
    text-decoration: none !important;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #4A5568;
    transition: color 0.3s;
}

.icon-btn:hover {
    color: #6BA4E8;
}

/* Mobile menu */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
}

@media (min-width: 769px) {
    .mobile-menu {
        display: none;
    }
}

/* Search bar */
.search-bar-expanded {
    display: none;
    background: #F0F4F7;
    padding: 20px 0;
}

.search-bar-expanded.active {
    display: block;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-hero {
    width: 100%;
    padding: 12px 40px 12px 50px;
    border: 2px solid #E1E8ED;
    border-radius: 24px;
    font-size: 16px;
    font-family: inherit;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9EAEB8;
}

/* Footer */
.footer {
    background: #2C3E50;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    color: #6BA4E8;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-description {
    color: #CBD5DC;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-subtitle {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #CBD5DC;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #FF9D7A;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3A4F63;
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s;
}

.social-link:hover {
    background: #6BA4E8;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #3A4F63;
    padding-top: 30px;
    text-align: center;
    color: #9EAEB8;
}

.footer-love {
    margin-top: 10px;
    color: #CBD5DC;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Main content */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

/* Breadcrumb */
.breadcrumb {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #E1E8ED;
}

.breadcrumb-list {
    display: flex;
    gap: 12px;
    list-style: none;
    align-items: center;
}

.breadcrumb-list li a {
    color: #6BA4E8;
    text-decoration: none;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 12px;
    color: #9EAEB8;
}

/* Tutorial page */
.tutorial-single {
    background: #ffffff;
    padding: 40px 0;
}

.tutorial-header {
    margin-bottom: 40px;
}

.tutorial-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.tutorial-meta {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-left,
.meta-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.tutorial-category a {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 500;
}

.btn-icon-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #F0F4F7;
    border: 1px solid #E1E8ED;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-icon-text:hover {
    background: #6BA4E8;
    color: #ffffff;
    border-color: #6BA4E8;
}

.tutorial-content-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .tutorial-content-wrapper {
        grid-template-columns: 2fr 1fr;
    }
}

.tutorial-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

.tutorial-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    margin-bottom: 30px;
    padding: 20px;
    background: #F0F4F7;
    border-left: 4px solid #6BA4E8;
    border-radius: 8px;
}

/* Related tutorials */
.related-tutorials {
    margin-top: 60px;
}

.related-tutorials h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2C3E50;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.related-card {
    background: #ffffff;
    border: 2px solid #E1E8ED;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(107, 164, 232, 0.15);
}

.related-card img {
    width: 100%;
    height: auto;
}

.related-card h3 {
    padding: 20px;
    font-size: 1.2rem;
}

.related-card a {
    text-decoration: none;
    color: inherit;
}

/* Posts grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-card {
    background: #ffffff;
    border: 2px solid #E1E8ED;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(107, 164, 232, 0.15);
}

.post-card img {
    width: 100%;
    height: auto;
}

.post-content {
    padding: 20px;
}

.post-title a {
    color: #2C3E50;
    text-decoration: none;
}

.post-title a:hover {
    color: #6BA4E8;
}

.read-more {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #9EAEB8;
}

.modal-title {
    font-size: 1.8rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.modal-subtitle {
    color: #7F8C8D;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2C3E50;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #E1E8ED;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
}

.form-input:focus {
    outline: none;
    border-color: #6BA4E8;
}

.btn-primary {
    background: #6BA4E8;
    color: #ffffff;
    border: none;
    padding: 14px 32px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #5A93D7;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

.form-note {
    text-align: center;
    color: #7F8C8D;
    font-size: 14px;
    margin-top: 20px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #7F8C8D;
}

.login-link a {
    color: #6BA4E8;
    text-decoration: none;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
}

/* Page header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

.page-title {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 16px;
}

.archive-description {
    color: #7F8C8D;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.post-category {
    margin-bottom: 12px;
}

.post-category a {
    display: inline-block;
    padding: 4px 12px;
    background: #E1E8ED;
    color: #6BA4E8;
    border-radius: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.post-category a:hover {
    background: #6BA4E8;
    color: #ffffff;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 16px;
}

.no-results p {
    color: #7F8C8D;
    font-size: 1.1rem;
}

.no-results a {
    color: #6BA4E8;
    text-decoration: none;
}

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

.pagination .page-numbers {
    padding: 8px 16px;
    background: #F0F4F7;
    color: #4A5568;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #6BA4E8;
    color: #ffffff;
}

.pagination .prev,
.pagination .next {
    font-weight: 600;
}

/* ============================================
   HOMEPAGE STYLES
   ============================================ */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #6BA4E8 0%, #A8C9F0 100%);
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.search-box-hero {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box-hero .search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9EAEB8;
    z-index: 1;
}

.search-box-hero .search-input {
    width: 100%;
    padding: 18px 140px 18px 60px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-box-hero .search-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 32px;
    background: #FF9D7A;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-box-hero .search-button:hover {
    background: #FF8B65;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-wave {
    display: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .search-box-hero .search-input {
        padding: 16px 16px 16px 50px;
    }
    
    .search-box-hero .search-button {
        position: relative;
        transform: none;
        width: 100%;
        margin-top: 12px;
    }
}

/* Category Chips */
.category-chips-section {
    padding: 30px 0;
    background: #ffffff;
}

.category-chips-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.category-chips-scroll::-webkit-scrollbar {
    height: 6px;
}

.category-chips-scroll::-webkit-scrollbar-thumb {
    background: #E1E8ED;
    border-radius: 3px;
}

.category-chip {
    display: inline-block;
    padding: 10px 24px;
    background: #F0F4F7;
    color: #4A5568;
    border-radius: 20px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 500;
}

.category-chip:hover {
    background: #6BA4E8;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Featured Tutorials */
.featured-tutorials {
    padding: 60px 0;
    background: #F8FAFB;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    color: #2C3E50;
}

.view-all-link {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.view-all-link:hover {
    color: #FF9D7A;
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.tutorial-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 164, 232, 0.15);
}

.tutorial-image {
    display: block;
    overflow: hidden;
}

.tutorial-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.tutorial-card-content {
    padding: 20px;
}

.tutorial-category-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #E1E8ED;
    color: #6BA4E8;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tutorial-card-title {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.tutorial-card-title a {
    color: #2C3E50;
    text-decoration: none;
}

.tutorial-card-title a:hover {
    color: #6BA4E8;
}

.tutorial-card-excerpt {
    color: #7F8C8D;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tutorial-card-link {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tutorial-card-link:hover {
    color: #FF9D7A;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #6BA4E8 0%, #A8C9F0 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    color: #ffffff;
}

.cta-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-cta {
    display: inline-block;
    padding: 16px 48px;
    background: #FF9D7A;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-cta:hover {
    background: #FF8B65;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(255, 157, 122, 0.3);
}

/* Categories Grid */
.categories-grid-section {
    padding: 60px 0;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.category-card {
    text-align: center;
    padding: 40px 20px;
    background: #F8FAFB;
    border: 2px solid #E1E8ED;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #6BA4E8;
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(107, 164, 232, 0.15);
}

.category-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.category-name {
    font-size: 1.3rem;
    color: #2C3E50;
    margin-bottom: 8px;
}

.category-count {
    color: #7F8C8D;
    font-size: 0.95rem;
}

.no-tutorials-message {
    text-align: center;
    padding: 60px 20px;
    color: #7F8C8D;
    font-size: 1.1rem;
}

.no-tutorials-message a {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 600;
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */

.faq-section {
    padding: 80px 0;
    background: #f8fafb;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(107, 164, 232, 0.1);
    color: #6BA4E8;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 12px;
}

.faq-answer {
    color: #4A5568;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-item {
        padding: 24px;
    }
}

/* ============================================
   TUTORIAL BADGES
   ============================================ */

.tutorial-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 24px 0;
}

.tutorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(107, 164, 232, 0.1);
    color: #6BA4E8;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
}

.tutorial-badge.badge-level {
    background: rgba(255, 157, 122, 0.1);
    color: #FF9D7A;
}

@media (max-width: 768px) {
    .tutorial-badges {
        gap: 8px;
    }
    
    .tutorial-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ============================================
   TUTORIAL INTRO & FINAL RESULT
   ============================================ */

.tutorial-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4A5568;
    margin-bottom: 40px;
}

.tutorial-final-result {
    margin: 40px 0 60px 0;
}

.result-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 24px;
}

.result-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #6BA4E8 0%, #A8C9F0 100%);
    padding: 40px;
}

.result-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .result-image-wrapper {
        padding: 20px;
    }
}
/* ============================================
   CATEGORIES EXPLORE GRID
   ============================================ */

.categories-explore {
    padding: 60px 0;
    background: #ffffff;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafb;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    background: #ffffff;
    border-color: #6BA4E8;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(107, 164, 232, 0.15);
}

.category-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C3E50;
    margin-bottom: 8px;
}

.category-count {
    font-size: 0.9rem;
    color: #6BA4E8;
}

/* ============================================
   IMPROVED TUTORIAL CARDS
   ============================================ */

.tutorial-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    background: #ffffff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.tutorial-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    display: block;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

/* Category badge overlay on image */
.tutorial-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    /* background set via inline style */
    backdrop-filter: blur(10px);
    color: #2C3E50;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.tutorial-card-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tutorial-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.tutorial-card-title a {
    color: #2C3E50;
    text-decoration: none;
    transition: color 0.3s;
}

.tutorial-card-title a:hover {
    color: #6BA4E8;
}

.tutorial-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #6B7280;
    margin-top: auto;
}

@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .category-card {
        padding: 24px 12px;
    }
    
    .category-emoji {
        font-size: 2rem;
    }
}

/* ============================================
   TITLE WITH FAVORITE
   ============================================ */

.title-with-favorite {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.title-with-favorite .tutorial-title {
    margin: 0;
    flex: 1;
}

@media (max-width: 768px) {
    .title-with-favorite {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   FIX: CONTENT CENTERING (Remove sidebar space)
   ============================================ */

.tutorial-single,
.page-content,
.tutorial-content-wrapper {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.tutorial-main-content {
    width: 100%;
    max-width: 100%;
}

/* No sidebar, full width */
body.single-post .site-content,
body.page .site-content {
    display: block;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   SINGLE POST FULL WIDTH FIX
   ============================================ */

.single .tutorial-single {
    width: 100%;
    max-width: 100%;
}

.single .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.single .tutorial-main-content {
    width: 100%;
    max-width: 100%;
}

/* Remove any sidebar space */
body.single {
    display: block;
}

.single .site-content {
    width: 100%;
    max-width: 100%;
}

/* ============================================
   NO SIDEBAR LAYOUT
   ============================================ */

body.no-sidebar .container,
body.no-sidebar .tutorial-content-wrapper,
body.no-sidebar .tutorial-main-content {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.no-sidebar .user-auth-container,
body.no-sidebar .user-dashboard,
body.no-sidebar .favorites-page {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* ============================================
   SINGLE POST - CENTERED CONTENT
   ============================================ */

.single .site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tutorial-single .container {
    max-width: 100%;
    padding: 0;
}

/* Remove any sidebar space */
body.single .sidebar,
body.single-post .sidebar {
    display: none;
}

/* Ensure full width */
body.single .content-area,
body.single-post .content-area {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================
   RESULTADO FINAL WITH FAVORITE
   ============================================ */

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.result-header .result-title {
    margin: 0;
}

/* ============================================
   FAVORITE CTA BANNER
   ============================================ */

.favorite-cta-banner {
    background: linear-gradient(135deg, #6BA4E8 0%, #A8C9F0 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 60px 0 40px 0;
    box-shadow: 0 8px 24px rgba(107, 164, 232, 0.2);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cta-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.favorite-cta-banner .btn-favorite {
    flex-shrink: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .favorite-cta-banner {
        padding: 24px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-text h3 {
        font-size: 1.2rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ============================================
   SINGLE POST - PERFECCIONADO
   ============================================ */

/* --- 1. AJUSTES GLOBALES Y CENTRADO --- */
body.single-post, 
body.single .site-main, 
.tutorial-single {
    background-color: #ffffff !important;
}

.tutorial-single .container {
    max-width: 850px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 20px;
}

.tutorial-header-content {
    text-align: center;
    margin-bottom: 40px;
}

.tutorial-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

/* --- 2. BADGE GRATIS --- */
.result-image-container {
    position: relative;
    display: block;
    margin: 20px 0;
}

.badge-gratis {
    position: absolute;
    top: 15px;
    left: -15px;
    background: #ff5e5e;
    color: white;
    padding: 10px 25px;
    font-weight: 900;
    border-radius: 8px;
    z-index: 10;
    transform: rotate(-8deg);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    font-family: sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
}

.result-image-wrapper img {
    border-radius: 20px;
    border: 8px solid #f0f0f0;
    width: 100%;
    height: auto;
}

/* --- 3. BOTÓN FAVORITO VIBRANTE --- */
.fav-button-wrapper .btn-favorite {
    background: #ff5e7e !important;
    border: none !important;
    color: white !important;
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(255, 94, 126, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.fav-button-wrapper .btn-favorite:hover {
    transform: scale(1.15) rotate(5deg) !important;
    background: #ff3b60 !important;
    box-shadow: 0 6px 15px rgba(255, 94, 126, 0.5);
}

.fav-button-wrapper .btn-favorite.is-favorite {
    background: #ff3b60 !important;
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1.1); }
}

.fav-button-wrapper .btn-favorite svg {
    width: 22px;
    height: 22px;
}

/* Botón con texto en banner */
.fav-button-wrapper.with-text {
    display: flex;
    align-items: center;
    background: white;
    padding: 5px 15px 5px 5px;
    border-radius: 50px;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fav-label {
    font-weight: bold;
    color: #ff5e7e;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- 4. BOTÓN DESCARGA PDF --- */
.download-pdf-container {
    text-align: center;
    margin: 30px 0;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    background: #4CAF50;
    color: white !important;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 15px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-download-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
    background: #45a049;
}

.btn-download-pdf .icon {
    font-size: 24px;
}

.btn-download-pdf .text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.btn-download-pdf strong {
    font-size: 16px;
}

.btn-download-pdf span {
    font-size: 13px;
    opacity: 0.9;
}

/* --- 5. BANNER CTA MEJORADO --- */
.favorite-cta-banner {
    background: linear-gradient(135deg, #6BA4E8 0%, #A8C9F0 100%);
    border-radius: 16px;
    padding: 40px;
    margin: 60px 0 40px 0;
    box-shadow: 0 8px 24px rgba(107, 164, 232, 0.2);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cta-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.cta-text {
    flex: 1;
}

.cta-text h3 {
    color: white;
    margin: 0 0 8px 0;
    font-size: 1.5rem;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* --- 6. TUTORIALES RELACIONADOS --- */
.related-tutorials {
    margin-top: 60px;
    text-align: center;
}

.related-tutorials h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 30px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.related-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.related-card:hover {
    border-color: #ffb7b7;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-card img {
    border-radius: 10px;
    width: 100%;
    height: auto;
}

.related-card h3 {
    font-size: 14px;
    margin: 12px 0 0 0;
    color: #2C3E50;
}

/* --- 7. RESPONSIVE --- */
@media (max-width: 768px) {
    .tutorial-single .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .badge-gratis {
        font-size: 14px;
        padding: 8px 20px;
        left: -10px;
    }
    
    .favorite-cta-banner {
        padding: 24px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-icon {
        font-size: 3rem;
    }
    
    .cta-text h3 {
        font-size: 1.2rem;
    }
    
    .result-header {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .btn-download-pdf {
        padding: 15px 25px;
        font-size: 14px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ============================================
   CENTRADO DEFINITIVO - FORZADO
   ============================================ */

/* Centrado absoluto del contenedor principal */
.tutorial-single .container,
body.single .container,
body.single-post .container {
    max-width: 850px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
}

/* Eliminar cualquier padding lateral heredado */
body.single .site-main,
body.single-post .site-main {
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Centrado de cabecera y badges */
.tutorial-header-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
}

.tutorial-title {
    text-align: center !important;
}

.tutorial-badges {
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Asegurar que no hay elementos flotantes */
.tutorial-content-wrapper,
.tutorial-main-content {
    clear: both !important;
    float: none !important;
    width: 100% !important;
}

/* Eliminar cualquier grid o flex heredado del padre */
body.single .site-content,
body.single-post .site-content {
    display: block !important;
    grid-template-columns: none !important;
}

/* Ocultar sidebar completamente */
body.single .sidebar,
body.single-post .sidebar,
body.single aside,
body.single-post aside {
    display: none !important;
}

/* Content area al 100% */
body.single .content-area,
body.single-post .content-area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Responsive: mobile mantiene centrado */
@media (max-width: 768px) {
    .tutorial-single .container,
    body.single .container,
    body.single-post .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ============================================
   BANNER CTA SIMPLIFICADO (SIN CORAZÓN)
   ============================================ */

.favorite-cta-banner {
    background-color: #90caf9 !important;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 4px 15px rgba(144, 202, 249, 0.3);
}

.cta-content-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-content-simple .cta-text h3 {
    color: white;
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.cta-content-simple .cta-text p {
    color: white;
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Botón flotante blanco con texto */
.fav-button-wrapper.with-text {
    background: white !important;
    padding: 8px 15px 8px 25px !important;
    border-radius: 50px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    gap: 10px;
}

.fav-label {
    color: #ff5e7e !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón circular dentro del banner */
.fav-button-wrapper.with-text .btn-favorite {
    background: #ff5e7e !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

/* ============================================
   CARDS MODERNAS ESTILO APP
   ============================================ */

/* Grid de tutoriales */
.related-grid,
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* Tarjeta base */
.related-card,
.tutorial-card {
    background: #ffffff;
    border-radius: 24px !important;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
    position: relative;
    display: block;
}

/* Hover effect premium */
.related-card:hover,
.tutorial-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: #ffb7c5;
}

/* Link que cubre toda la card */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Wrapper de imagen */
.card-image-wrapper {
    position: relative;
    padding: 15px;
    background: #f9fbfd;
    overflow: hidden;
}

.card-image-wrapper img {
    border-radius: 18px;
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

/* Zoom suave en hover */
.related-card:hover .card-image-wrapper img,
.tutorial-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* Badge de categoría flotante con blur */
.card-badge {
    position: absolute !important;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 8px 16px !important;
    border-radius: 50px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #444 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
    z-index: 2 !important;
    border: none !important;
    transition: all 0.3s ease;
}

.related-card:hover .card-badge,
.tutorial-card:hover .card-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Contenido de la card */
.card-content {
    padding: 0 20px 25px 20px;
    text-align: left;
}

.card-content h3 {
    font-size: 1.1rem !important;
    color: #2d3436 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;
}

/* Texto "Aprender ahora" */
.read-more-text {
    font-size: 14px;
    font-weight: 700;
    color: #90caf9;
    transition: color 0.3s;
    display: inline-block;
}

.related-card:hover .read-more-text,
.tutorial-card:hover .read-more-text {
    color: #ff5e7e;
}

/* ============================================
   RESPONSIVE CARDS
   ============================================ */

@media (max-width: 768px) {
    .cta-content-simple {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-content-simple .cta-text h3 {
        font-size: 20px;
    }
    
    .fav-button-wrapper.with-text {
        width: 100%;
        justify-content: center;
        padding: 12px 20px !important;
    }
    
    .related-grid,
    .tutorials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-badge {
        top: 15px;
        left: 15px;
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* ============================================
   SECCIÓN DE TUTORIALES RELACIONADOS
   ============================================ */

.related-tutorials {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
}

.related-tutorials h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 30px;
    text-align: center;
}

/* ============================================
   CATEGORY SEO HEADER
   ============================================ */

.category-seo-header {
    text-align: center;
    padding: 60px 20px 40px 20px;
    background: linear-gradient(180deg, #f9fbfd 0%, #ffffff 100%);
    margin-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.category-title {
    font-size: 2.5rem;
    color: #2C3E50;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.category-description {
    max-width: 700px;
    margin: 0 auto;
    color: #6B7280;
    line-height: 1.8;
    font-size: 1.1rem;
}

.search-results-count {
    color: #6B7280;
    font-size: 1rem;
    margin-top: 10px;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    margin: 60px 0 40px 0;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 12px 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    color: #2C3E50;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #6BA4E8;
    color: white;
    border-color: #6BA4E8;
    transform: translateY(-2px);
}

.pagination .current {
    background: #6BA4E8;
    color: white;
    border-color: #6BA4E8;
}

.pagination .prev,
.pagination .next {
    background: #6BA4E8;
    color: white;
    border-color: #6BA4E8;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #5a93d7;
    border-color: #5a93d7;
}

/* ============================================
   NO RESULTS / EMPTY STATE
   ============================================ */

.no-results {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-results h2 {
    font-size: 2rem;
    color: #2C3E50;
    margin-bottom: 20px;
}

.no-results p {
    color: #6B7280;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.search-suggestions {
    background: #f9fbfd;
    padding: 30px;
    border-radius: 16px;
    margin: 30px 0;
    text-align: left;
}

.search-suggestions h3 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: #6B7280;
}

.search-suggestions li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #6BA4E8;
    font-weight: bold;
}

.search-suggestions a {
    color: #6BA4E8;
    text-decoration: underline;
}

.search-again {
    margin-top: 40px;
}

.search-again .search-form {
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   ARCHIVE CONTENT
   ============================================ */

.archive-content {
    padding: 0 20px 60px 20px;
}

/* ============================================
   RESPONSIVE - ARCHIVE
   ============================================ */

@media (max-width: 768px) {
    .category-seo-header {
        padding: 40px 20px 30px 20px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .category-description {
        font-size: 1rem;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .no-results {
        padding: 60px 20px;
    }
    
    .no-results h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   FIX HEADER CONTAINER Y MENÚ
   ============================================ */

/* Corregir Menú Comprimido */
.header .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* Centrado DEFINITIVO del Single Post */
.tutorial-single .container {
    max-width: 850px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 20px !important;
    display: block !important;
}

/* Forzar que el main no tenga márgenes extraños */
.site-main {
    width: 100% !important;
    display: block !important;
    clear: both !important;
}

/* ============================================
   FILTROS DE SUBCATEGORÍAS (CHIPS)
   ============================================ */

.category-filter-nav {
    margin: 20px 0 40px;
    text-align: center;
    padding: 0 20px;
}

.filter-title {
    display: inline-block;
    font-weight: 700;
    color: #2C3E50;
    margin-right: 15px;
    font-size: 16px;
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.filter-chip {
    background: #f0f7ff;
    color: #3498db;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #d6e9ff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-chip:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive filters */
@media (max-width: 768px) {
    .filter-chips {
        justify-content: center;
    }
    
    .filter-chip {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ============================================
   BREADCRUMBS MEJORADOS
   ============================================ */

.breadcrumb {
    background: #f9fafb;
    padding: 15px 0;
    margin-bottom: 0;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-list li::after {
    content: "›";
    color: #9CA3AF;
    font-weight: bold;
}

.breadcrumb-list li:last-child::after {
    content: "";
}

.breadcrumb-list a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #6BA4E8;
}

.breadcrumb-list span {
    color: #2C3E50;
    font-weight: 600;
}

/* ============================================
   FIX CRÍTICO - HEADER Y CENTRADO
   ============================================ */

/* Corregir Menú Comprimido */
.header .container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: block !important;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Centrado REAL del Single Post */
.tutorial-single .container {
    max-width: 850px !important;
    margin: 0 auto !important;
    float: none !important;
    padding: 0 20px;
    display: block !important;
}

/* Forzar que el main no tenga márgenes extraños */
.site-main {
    width: 100% !important;
    display: block !important;
}

/* ============================================
   FILTROS DE CATEGORÍAS (CHIPS)
   ============================================ */

.category-filter-nav {
    margin: 20px 0 40px;
    text-align: center;
}

.filter-title {
    font-weight: 700;
    color: #2C3E50;
    font-size: 1rem;
    display: block;
    margin-bottom: 15px;
}

.filter-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.filter-chip {
    background: #f0f7ff;
    color: #3498db;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid #d6e9ff;
}

.filter-chip:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Responsive chips */
@media (max-width: 768px) {
    .filter-chips {
        gap: 8px;
    }
    
    .filter-chip {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* ============================================
   BÚSQUEDAS SUGERIDAS (HERO)
   ============================================ */

.suggested-searches {
    margin-top: 20px;
    text-align: center;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.suggested-label {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-weight: 600;
}

.suggested-chips {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.suggested-chip {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #2C3E50;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.suggested-chip:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    border-color: #6BA4E8;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   BREADCRUMBS MODERNOS (CHIP STYLE)
   ============================================ */

.breadcrumb {
    background: transparent !important;
    padding: 20px 0 !important;
    margin-bottom: 20px !important;
}

.breadcrumb .container {
    display: flex;
    justify-content: center;
}

.breadcrumb-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #f8f9fa !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    font-size: 13px !important;
    margin: 0 !important;
    list-style: none !important;
}

.breadcrumb-list li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.breadcrumb-list li::after {
    content: "›" !important;
    color: #CBD5E0 !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

.breadcrumb-list li:last-child::after {
    content: "" !important;
}

.breadcrumb-list a {
    color: #6B7280 !important;
    text-decoration: none !important;
    transition: color 0.2s !important;
    font-weight: 500 !important;
}

.breadcrumb-list a:hover {
    color: #6BA4E8 !important;
}

.breadcrumb-list span {
    color: #2C3E50 !important;
    font-weight: 700 !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-list {
        padding: 8px 16px !important;
        font-size: 12px !important;
        gap: 6px !important;
    }
    
    .breadcrumb-list span {
        max-width: 120px;
    }
}

/* ============================================
   HERO CON PATRÓN DOODLE
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Responsive suggested searches */
@media (max-width: 768px) {
    .suggested-label {
        font-size: 13px;
    }
    
    .suggested-chips {
        gap: 8px;
    }
    
    .suggested-chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ============================================
   DIFFICULTY BADGES (CARDS)
   ============================================ */

.card-difficulty {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 3;
}

.difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.difficulty-badge:hover {
    transform: scale(1.1);
}

/* ============================================
   CATEGORY HERO (ENHANCED)
   ============================================ */

.category-hero {
    position: relative;
    padding: 80px 20px 60px 20px !important;
    border-bottom: none !important;
    overflow: hidden;
}

.category-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.category-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero-icon {
    font-size: 80px;
    text-align: center;
    margin-bottom: 20px;
    animation: floatIcon 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.category-hero .category-title {
    font-size: 3rem;
    color: #2C3E50;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-hero .category-description {
    font-size: 1.2rem;
    color: #4A5568;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Responsive category hero */
@media (max-width: 768px) {
    .category-hero {
        padding: 60px 20px 40px 20px !important;
    }
    
    .category-hero-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .category-hero .category-title {
        font-size: 2rem;
    }
    
    .category-hero .category-description {
        font-size: 1rem;
    }
    
    .card-difficulty {
        top: 15px;
        right: 15px;
    }
    
    .difficulty-badge {
        font-size: 12px;
        padding: 4px 10px;
    }
}

/* ============================================
   CARD IMAGE WRAPPER (POSITION FOR BADGES)
   ============================================ */

.card-image-wrapper {
    position: relative;
}

/* Category badge left, difficulty badge right */
.card-badge {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 2;
}

/* ============================================
   STAR RATING (SINGLE POST)
   ============================================ */

.tutorial-rating {
    margin: 15px 0 25px;
    text-align: center;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeIn 0.6s ease;
}

.tutorial-rating .stars {
    color: #f39c12;
    font-size: 20px;
    letter-spacing: 2px;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
    transition: transform 0.3s ease;
    cursor: default;
}

.tutorial-rating .stars:hover {
    transform: scale(1.05);
}

.tutorial-rating .rating-text {
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    background: #F3F4F6;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tutorial-rating .rating-text:hover {
    background: #E5E7EB;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive rating */
@media (max-width: 768px) {
    .tutorial-rating {
        flex-direction: column;
        gap: 8px;
        margin: 10px 0 20px;
    }
    
    .tutorial-rating .stars {
        font-size: 18px;
    }
    
    .tutorial-rating .rating-text {
        font-size: 13px;
        padding: 5px 12px;
    }
}

/* ============================================
   SCHEMA.ORG STRUCTURED DATA READY
   ============================================ */

/* Future: Add microdata attributes for rich snippets */
.tutorial-rating[itemscope] {
    /* Ready for Schema.org AggregateRating */
}

/* ============================================
   FEEDBACKWP PLUGIN INTEGRATION
   ============================================ */

/* Voting Section Container */
.tutorial-voting-section {
    margin: 15px 0 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #FAFBFC;
    border-radius: 16px;
    animation: fadeIn 0.6s ease;
}

/* FeedbackWP Stars */
.fwp-feedback-stars svg {
    color: #FFC107 !important; /* Golden stars */
    width: 24px !important;
    height: 24px !important;
    transition: transform 0.2s ease;
}

.fwp-feedback-stars svg:hover {
    transform: scale(1.1);
}

/* Feedback Count */
.fwp-feedback-count {
    font-weight: 600;
    color: #6B7280;
    margin-left: 12px;
    font-size: 14px;
    background: white;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Feedback Button (if any) */
.fwp-feedback-button {
    background: #6BA4E8 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.fwp-feedback-button:hover {
    background: #5a93d7 !important;
    transform: translateY(-2px);
}

/* Responsive feedback */
@media (max-width: 768px) {
    .tutorial-voting-section {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .fwp-feedback-stars svg {
        width: 20px !important;
        height: 20px !important;
    }
    
    .fwp-feedback-count {
        margin-left: 0;
        font-size: 13px;
    }
}

/* ============================================
   FOOTER GRID (3 COLUMNS)
   ============================================ */

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4.footer-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 20px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 15px;
}

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

.footer-cta p {
    color: #6B7280;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-footer {
    display: inline-block;
    background: #6BA4E8;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-footer:hover {
    background: #5a93d7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 164, 232, 0.3);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   FOOTER LEGAL LINKS
   ============================================ */

.footer-bottom {
    border-top: 1px solid #E5E7EB;
    padding-top: 30px;
    margin-top: 40px;
}

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

.footer-copyright {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
}

.footer-legal a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #6BA4E8;
}

.footer-legal .separator {
    color: #D1D5DB;
}

.footer-love {
    color: #9CA3AF;
    font-size: 13px;
    margin: 0;
}

/* Responsive footer legal */
@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-legal .separator {
        display: none;
    }
}

/* ============================================
   CTA BANNER WIDGET (EDITABLE)
   ============================================ */

.cta-banner-widget,
.cta-banner-default {
    width: 100%;
}

.cta-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.cta-text h2 {
    font-size: 2rem;
    color: white;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.cta-button {
    flex-shrink: 0;
}

.btn-cta {
    background: white;
    color: #6BA4E8;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive CTA banner */
@media (max-width: 768px) {
    .cta-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
    }
    
    .cta-text p {
        font-size: 1rem;
    }
}

/* ============================================
   DASHBOARD BUTTONS
   ============================================ */

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
    border: 2px solid #E5E7EB;
}

.btn-secondary:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

/* Responsive dashboard */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .dashboard-actions .btn,
    .dashboard-actions button {
        width: 100%;
    }
}

/* ============================================
   EDIT PROFILE PAGE
   ============================================ */

.edit-profile-page {
    padding: 40px 20px;
    background: #F9FAFB;
}

.edit-profile-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.profile-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #F3F4F6;
}

.profile-header h1 {
    font-size: 2.5rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.profile-header p {
    color: #6B7280;
    font-size: 1.1rem;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #F3F4F6;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section h3 {
    font-size: 1.4rem;
    color: #2C3E50;
    margin-bottom: 10px;
}

.form-help {
    color: #6B7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Avatar Gallery */
.avatar-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.avatar-option {
    position: relative;
    background: #F9FAFB;
    border: 3px solid #E5E7EB;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.avatar-option:hover {
    border-color: #6BA4E8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 164, 232, 0.2);
}

.avatar-option.selected {
    border-color: #6BA4E8;
    background: #EBF5FF;
}

.avatar-emoji {
    font-size: 48px;
    display: block;
}

.avatar-check {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #6BA4E8;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 15px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6BA4E8;
    box-shadow: 0 0 0 3px rgba(107, 164, 232, 0.1);
}

.form-group small {
    display: block;
    color: #6B7280;
    font-size: 13px;
    margin-top: 6px;
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #F3F4F6;
}

.btn-large {
    padding: 14px 32px;
    font-size: 16px;
}

.btn svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

/* Profile Messages */
.profile-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.profile-message.success {
    background: #D1FAE5;
    color: #065F46;
    border: 2px solid #10B981;
}

.profile-message.error {
    background: #FEE2E2;
    color: #991B1B;
    border: 2px solid #EF4444;
}

/* Dashboard Buttons Fix */
.dashboard-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 15px;
}

.dashboard-actions .btn-primary {
    background: #6BA4E8;
    color: white;
}

.dashboard-actions .btn-primary:hover {
    background: #5A93D7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 164, 232, 0.3);
}

.dashboard-actions .btn-secondary {
    background: #F3F4F6;
    color: #4B5563;
    border-color: #E5E7EB;
}

.dashboard-actions .btn-secondary:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.dashboard-actions .btn-outline {
    background: transparent;
    color: #6B7280;
    border-color: #E5E7EB;
}

.dashboard-actions .btn-outline:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    color: #374151;
}

/* Responsive Edit Profile */
@media (max-width: 768px) {
    .edit-profile-container {
        padding: 30px 20px;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .avatar-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .avatar-emoji {
        font-size: 36px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .dashboard-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .dashboard-actions .btn {
        width: 100%;
    }
}

/* ============================================
   FOCUS MODE
   ============================================ */

.tutorial-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.btn-focus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #F3F4F6;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    color: #6B7280;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-focus:hover {
    background: #E5E7EB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
}

.btn-focus.active {
    background: #6BA4E8;
    border-color: #6BA4E8;
    color: white;
}

.btn-focus svg {
    width: 18px;
    height: 18px;
}

/* Focus Mode Active State */
body.focus-active .header,
body.focus-active .footer,
body.focus-active .breadcrumb {
    display: none !important;
}

body.focus-active .tutorial-single {
    padding-top: 30px;
    max-width: 900px;
    margin: 0 auto;
}

body.focus-active .btn-focus {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Responsive Focus Mode */
@media (max-width: 768px) {
    .tutorial-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-focus {
        width: 100%;
        justify-content: center;
    }
    
    body.focus-active .btn-focus {
        position: fixed;
        top: 10px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

/* ============================================
   LEAD CAPTURE MODAL
   ============================================ */

.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.download-modal.active {
    display: flex;
}

.download-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.download-modal .modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.download-modal .modal-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.download-modal h3 {
    font-size: 24px;
    color: #2C3E50;
    margin-bottom: 10px;
}

.download-modal p {
    color: #6B7280;
    margin-bottom: 25px;
    line-height: 1.6;
}

.download-modal .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #9CA3AF;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.download-modal .modal-close:hover {
    background: #F3F4F6;
    color: #374151;
}

/* Lead Capture Form */
.lead-capture-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lead-capture-form .email-input {
    padding: 15px 20px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.lead-capture-form .email-input:focus {
    outline: none;
    border-color: #6BA4E8;
    box-shadow: 0 0 0 3px rgba(107, 164, 232, 0.1);
}

.lead-capture-form .email-input.error {
    border-color: #EF4444;
    animation: shake 0.3s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.lead-capture-form .error-message {
    color: #EF4444;
    font-size: 13px;
    text-align: left;
    margin-top: -10px;
}

.lead-capture-form .btn-submit {
    padding: 15px 30px;
    background: #6BA4E8;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lead-capture-form .btn-submit:hover:not(:disabled) {
    background: #5A93D7;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 164, 232, 0.4);
}

.lead-capture-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal-footer-text {
    margin-top: 20px;
    font-size: 14px;
    color: #9CA3AF;
}

.modal-footer-text a {
    color: #6BA4E8;
    text-decoration: none;
    font-weight: 600;
}

.modal-footer-text a:hover {
    text-decoration: underline;
}

/* ============================================
   IMPROVED AVATAR GALLERY
   ============================================ */

.avatar-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.avatar-option {
    position: relative;
    background: white;
    border: 3px solid #E5E7EB;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-option:hover {
    border-color: #6BA4E8;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(107, 164, 232, 0.3);
}

.avatar-option.selected {
    border-color: #6BA4E8;
    background: #EBF4FF;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(107, 164, 232, 0.2);
}

.avatar-emoji {
    font-size: 48px;
    transition: transform 0.3s ease;
}

.avatar-option:hover .avatar-emoji {
    transform: scale(1.15);
}

.avatar-check {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #6BA4E8;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(107, 164, 232, 0.4);
    animation: checkPop 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes checkPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Avatar Gallery */
@media (max-width: 768px) {
    .avatar-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .avatar-option {
        width: 75px;
        height: 75px;
    }
    
    .avatar-emoji {
        font-size: 36px;
    }
}

/* ============================================
   FAVORITE BUTTON
   ============================================ */

.favorite-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #E5E7EB;
    border-radius: 50px;
    color: #6B7280;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.favorite-button:hover {
    border-color: #EF4444;
    color: #EF4444;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.favorite-button.is-favorite {
    background: #FEE2E2;
    border-color: #EF4444;
    color: #DC2626;
}

.favorite-button.is-favorite:hover {
    background: #FECACA;
    transform: scale(1.05);
}

.favorite-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.favorite-button .fav-icon {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.favorite-button:hover .fav-icon {
    transform: scale(1.2);
}

.favorite-button.is-favorite .fav-icon {
    animation: heartBeat 0.6s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

/* Favorite Button in CTA */
.fav-button-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fav-button-wrapper.with-text {
    flex-direction: row;
}

.fav-label {
    font-weight: 700;
    color: #6BA4E8;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fav-button-wrapper.main-fav .favorite-button {
    padding: 12px 24px;
    font-size: 15px;
}

/* Favorite CTA Banner */
.favorite-cta-banner {
    background: linear-gradient(135deg, #EBF4FF 0%, #E0F2FE 100%);
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid #BAE6FD;
}

.cta-content-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cta-content-simple .cta-text h3 {
    margin: 0 0 5px 0;
    color: #0C4A6E;
    font-size: 20px;
}

.cta-content-simple .cta-text p {
    margin: 0;
    color: #0369A1;
    font-size: 14px;
}

@media (max-width: 768px) {
    .cta-content-simple {
        flex-direction: column;
        text-align: center;
    }
    
    .fav-button-wrapper.with-text {
        flex-direction: column;
    }
}

/* Tutorial Blocks Content */
.tutorial-blocks-content {
    margin: 40px 0;
}

.tutorial-blocks-content > * {
    margin-bottom: 30px;
}

/* Download PDF Button */
.download-pdf-container {
    margin: 30px 0;
}

.btn-download-pdf {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #6BA4E8 0%, #5A93D7 100%);
    color: white;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 164, 232, 0.3);
}

.btn-download-pdf:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(107, 164, 232, 0.4);
}

.btn-download-pdf .icon {
    font-size: 32px;
}

.btn-download-pdf .text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.btn-download-pdf strong {
    font-size: 18px;
}

.btn-download-pdf span {
    font-size: 13px;
    opacity: 0.9;
}
