/* Variables de colores */
:root {
    --primary: #059669;
    --accent: #f8f9fa;
    --white: #ffffff;
    --light-gray: #f5f7fa;
    --gray: #e0e5ec;
    --dark-gray: #8a94a6;
    --text: #333333;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--white);
    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: white !important;
    color: black !important;
    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-family: 'Montserrat-Bold' !important;
    font-size: 24px;
    font-weight: 1400;
    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;
    color: black !important;
    margin-bottom: 0px !important;
}

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

    nav a:hover {
        color: var(--white) !important;
        background-color: var(--primary) !important;
        padding: 10px 20px;
    }

    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;
}

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

/*    .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;
    }*/

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: black !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

    .btn:hover {
        background-color: #CDEDE6;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(255, 107, 0, 0.2);
    }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    margin-left: 15px;
    color: white !important;
}

    .btn-outline:hover {
        background-color: var(--accent);
        color: black !important;
    }

.btn-outline-buy {
    background-color: var(--primary) !important;
    border: 2px solid var(--accent) !important;
    margin-left: 15px !important;
    color: white !important;
    font-size:26px !important;
}

    .btn-outline-buy:hover {
        background-color: var(--accent) !important;
        border: 2px solid var(--primary) !important;
        color: black !important;
    }

/* Categorías */
.categories {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

    .section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 130px;
        height: 3px;
        background-color: var(--accent);
    }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--light-gray);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 30, 61, 0.1);
    }

    .category-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

.category-content {
    padding: 20px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-card p {
    color: var(--dark-gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.category-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Artículos destacados */
.featured {
    padding: 30px 0;
    background-color: var(--light-gray);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.featured-grid-more {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.main-article {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .main-article:hover {
        transform: translateY(-5px);
    }

    .main-article img {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

.article-content {
    padding: 30px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--dark-gray);
    font-size: 14px;
}

.article-category {
    background-color: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.article-excerpt {
    margin-bottom: 20px;
    color: var(--text);
    line-height: 1.7;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s;
}

    .read-more:hover {
        transform: translateX(5px);
    }

    .read-more span {
        margin-left: 5px;
    }

.side-articles {
    /*display: flex;*/
    display: grid;
    flex-direction: column;
    gap: 20px;    
}

.side-article {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /*display: flex;*/
    transition: transform 0.3s;
}

    .side-article:hover {
        transform: translateY(-3px);
    }

    .side-article img {
        width: 120px;
        height: 120px;
        object-fit: contain;
    }

@media (max-width: 992px) {
    .featured-grid .side-article img {
        width: 50%;
        height: 50%;
        padding-top: 15px !important;
        margin-left: 10px !important;
    }
}

.side-article-content {
    padding: 15px;
    flex: 1;
    align-items: start;
}

.side-article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.side-article-meta {
    font-size: 12px;
    color: var(--dark-gray);
    line-height: 1 !important;
    margin-top: 5px !important;
}

/* Tendencias */
.trending {
    padding: 60px 0;
}

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

.trending-title {
    font-size: 32px;
    font-weight: 700;
    position: relative;
}

    .trending-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: var(--accent);
    }

.view-all {
    color: var(--accent);
    font-weight: 600;
    transition: transform 0.3s;
}

    .view-all:hover {
        transform: translateX(5px);
    }

.trending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-img {
    position: relative;
    overflow: hidden;
}

    .product-img img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        transition: transform 0.5s;
    }

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

.product-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.old-price {
    font-size: 16px;
    color: var(--dark-gray);
    text-decoration: line-through;
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Newsletter */
.newsletter {
    padding: 40px 0;
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    font-size: 16px;
    outline: none;
}

.newsletter-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 0 30px 30px 0;
    padding: 0 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .newsletter-btn:hover {
        background-color: #CDEDE6;
    }

/* Footer */
footer {
    background-color: var(--primary);
    color: var(--white);
    padding: 30px 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) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
    }
}

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

    .menu-btn {
        display: block;
    }

    .hero::before {
        width: 60%;
    }

    .trending-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

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

    .hero {
        padding: 40px 0;
    }

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

    .section-title {
        font-size: 24px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .newsletter-btn {
        border-radius: 30px;
        padding: 15px;
    }
}

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

.tags:hover {
    color: #CDEDE6;
}
.radius-15 {
    border-radius: 15px !important;
}