/* Variables de colores */
:root {
    --primary: #1f2937;
    --secondary: #27313b;
    --title: #2563eb;
    --title-soft: #60a5fa;
    --accent: #f8f9fa;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #e0e5ec;
    --dark-gray: #8a94a6;
    --text: #333333;
}

/* Estilos generales */
/** {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
}

body {
    background-color: var(--light-gray);
    color: var(--text);
    line-height: 1.6;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header y navegación */
header {
    background-color: var(--primary);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

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

.logo-icon {
    margin-right: 8px;
    font-size: 28px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

    nav a:hover::after {
        width: 100%;
    }

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

.search-btn, .menu-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

    .search-btn:hover, .menu-btn:hover {
        color: var(--accent);
    }

.menu-btn {
    display: none;
}

/* Search Hero Section */
.search-hero {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

/*.search-hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 40%;
        height: 100%;
        background-color: var(--accent);
        clip-path: polygon(100% 0, 0 0, 100% 100%);
        opacity: 0.8;
    }*/

.search-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-hero h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.search-hero p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-form-large {
    display: flex;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
}

.search-input-large {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 18px;
    outline: none;
    color: var(--text);
}

.search-button-large {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0 30px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .search-button-large:hover {
        background-color: #CDEDE6;
        color: black !important;
    }

/* Search Results Section */
.search-results-section {
    padding: 40px 0;
}

@media (max-width: 768px) {
    .search-results-section {
        padding: 20px 20px !important;
    }
}

.search-info {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-stats {
    font-size: 18px;
    color: var(--text);
}

.search-term {
    font-weight: 700;
    color: var(--primary);
}

.search-filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 500;
    color: var(--text);
}

.filter-select {
    padding: 8px 15px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    background-color: var(--white);
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
}
/* Search Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.search-result-item {
    background-color: var(--white);
    border-radius: 10px;
    border: 1px solid black;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
}

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

.result-img {
    width: 250px;
    min-width: 250px;
    position: relative;
}

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

.result-category {
    /*position: absolute;*/
    top: 15px;
    left: 15px;
    background-color: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.result-content {
    padding: 20px;
    flex: 1;
    /*display: flex;*/
    flex-direction: column;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1.4;
}

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

.result-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
    flex: 1;
}

.highlight {
    background-color: rgba(255, 107, 0, 0.15);
    padding: 0 2px;
    border-radius: 3px;
    font-weight: 500;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--dark-gray);
    margin-top: auto;
}

.result-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.result-date {
    font-size: 14px;
}
/* No Results */
.no-results {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.no-results-icon {
    font-size: 60px;
    margin-bottom: 20px;
    color: var(--dark-gray);
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary);
}

.no-results-text {
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
/* Popular Searches */
.popular-searches {
    margin-top: 40px;
    margin-bottom: 60px;
}

.popular-searches-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.popular-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-search-item {
    background-color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .popular-search-item:hover {
        background-color: var(--accent);
        color: var(--primary);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
        font-weight: bold;
    }
/* Related Categories */
.related-categories {
    margin-bottom: 40px;
}

.related-categories-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.categories-list {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
}

.category-item {
    margin-bottom: 10px;
}

.category-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--white);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .category-link:hover {
        background-color: var(--accent);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    }
/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 10px;
}

.pagination-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

    .pagination-item a:hover, .pagination-item.active a {
        background-color: var(--accent);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
    }

.pagination-item.disabled a {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

    .footer-column h3::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: var(--accent);
    }

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

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

    .footer-links a {
        opacity: 0.8;
        transition: opacity 0.3s, transform 0.3s;
        display: inline-block;
    }

        .footer-links a:hover {
            opacity: 1;
            color: var(--accent);
            transform: translateX(5px);
        }

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
}

    .social-link:hover {
        background-color: var(--accent);
        transform: translateY(-3px);
    }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}
/* Responsive */
@media (max-width: 992px) {
    .search-result-item {
        flex-direction: column;
    }

    .result-img {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .search-hero h1 {
        font-size: 28px;
    }

    .search-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-form-large {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-input-large {
        width: 100%;
        border-bottom: 1px solid var(--gray);
    }

    .search-button-large {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 15px 0;
    }

    .search-hero {
        padding: 40px 0;
    }

        .search-hero h1 {
            font-size: 24px;
        }

    .search-filters {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }
}