
.hero-guides {
    background: var(--gradient-primary);
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero-guides::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/back.png') center/cover;
    opacity: 0.3;
    filter: grayscale(50%) brightness(0.7);
    z-index: 1;
}

.hero-guides .hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-guides .hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-guides .hero-subtitle {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.main-content {
    padding: 5rem 0;
    background: var(--gradient-primary);
    position: relative;
}

.search-section {
    margin-bottom: 4rem;
    text-align: center;
}

.search-bar {
    position: relative;
    max-width: 600px;
    margin: 0 auto 3rem;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
}

.search-bar i {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 2;
}

.search-bar input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: var(--secondary-color);
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
}

.search-bar input:focus {
    border-color: var(--accent-color);
    background: var(--accent-color);
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
}

.search-bar input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    background: var(--secondary-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: var(--shadow-light);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.guide-card {
    background: var(--gradient-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.guide-card:nth-child(1) { animation-delay: 0.1s; }
.guide-card:nth-child(2) { animation-delay: 0.2s; }
.guide-card:nth-child(3) { animation-delay: 0.3s; }
.guide-card:nth-child(4) { animation-delay: 0.4s; }
.guide-card:nth-child(5) { animation-delay: 0.5s; }
.guide-card:nth-child(6) { animation-delay: 0.6s; }

.guide-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-heavy);
}

.guide-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.guide-card:hover .guide-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-heavy);
}

.guide-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.guide-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.guide-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.difficulty {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty.easy {
    background: #4ade80;
    color: #000;
}

.difficulty.medium {
    background: #fbbf24;
    color: #000;
}

.difficulty.hard {
    background: #ef4444;
    color: #fff;
}

.time {
    padding: 0.4rem 1rem;
    background: var(--secondary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

.guide-btn {
    background: var(--accent-color);
    color: var(--text-primary);
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    box-shadow: var(--shadow-light);
}

.guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
    background: var(--border-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--gradient-secondary);
    margin: 5% auto;
    padding: 0;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    animation: slideInUp 0.4s ease;
}

.modal-header {
    background: var(--accent-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.close {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--secondary-color);
}

.close:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
    color: var(--text-primary);
}

.guide-content h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.command-section {
    margin-bottom: 2rem;
}

.command-section h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.command-section ul {
    list-style: none;
    padding: 0;
}

.command-section li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.command-section li:last-child {
    border-bottom: none;
}

.command-section code {
    background: var(--secondary-color);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

.tip-box {
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.tip-box h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tip-box p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .hero-guides .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-guides .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .guide-card {
        padding: 2rem;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .hero-guides .hero-title {
        font-size: 2rem;
    }
    
    .search-bar {
        max-width: 100%;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .guide-card {
        padding: 1.5rem;
    }
}

/*hola Sapo *_* */