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

:root {
    --coral: #E87461;
    --peach: #F5A962;
    --yellow: #E8D174;
    --teal: #4FA897;
    --dark-blue: #2C4A52;
    --light-gray: #F5F5F5;
    --ads-safe-gap: 16px;
    --ads-top-inset: 0px;
    --ads-bottom-inset: 0px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background-color: var(--light-gray);
}

/* Main Container */
.main-container {
    max-width: 1680px;
    margin: 2rem auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: grid;
    grid-template-columns: clamp(150px, 16vw, 210px) minmax(0, 1fr) clamp(150px, 16vw, 210px);
    gap: clamp(0.5rem, 1vw, 1rem);
    transition: all 0.3s ease;
}

/* Sidebar Ads */
.ad-sidebar {
    background: white;
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: calc(var(--ads-top-inset) + var(--ads-safe-gap));
    height: calc(100vh - var(--ads-top-inset) - var(--ads-bottom-inset) - var(--ads-safe-gap) - var(--ads-safe-gap));
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-self: center;
    width: 100%;
}

.ad-sidebar h3 {
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.ad-sidebar .adsbygoogle {
    width: 100%;
}

.ad-space {
    background: linear-gradient(135deg, var(--peach), var(--yellow));
    height: 600px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
}

/* Main Content */
.content {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.content-header {
    margin-bottom: 2rem;
}

.content-header h1 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.home-hero h1 {
    background: linear-gradient(135deg, var(--coral), var(--peach));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.home-hero p {
    color: #666;
    max-width: 720px;
}

.home-section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-top: 0.25rem;
}

.home-section-bar h2 {
    margin: 0;
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 800;
}

.home-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal), #3d8c7c);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 10px 18px rgba(79, 168, 151, 0.18);
    white-space: nowrap;
}

.home-catalog-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(79, 168, 151, 0.22);
    background: linear-gradient(135deg, #3d8c7c, var(--teal));
}

.home-view-all {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.home-view-all-link {
    text-decoration: none;
    color: var(--teal);
    font-weight: 800;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(79, 168, 151, 0.3);
    background: rgba(79, 168, 151, 0.06);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.home-view-all-link:hover {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
    transform: translateY(-1px);
}

.filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid var(--teal);
    background: white;
    color: var(--teal);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--teal);
    color: white;
}

/* Top Banner Ad */
.ad-banner-top {
    background: linear-gradient(90deg, var(--coral), var(--peach));
    height: 120px;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Bottom Banner Ad */
.ad-banner-bottom {
    background: linear-gradient(90deg, var(--yellow), var(--teal));
    height: 100px;
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Responsive Design */
/* Pantallas Grandes / Escritorio */
@media (min-width: 1440px) {
    .main-container {
        max-width: 1760px;
        padding: 0 clamp(2rem, 4vw, 4rem);
    }
}

/* Laptops / Tablets Landscape */
@media (max-width: 1200px) {
    .main-container {
        grid-template-columns: clamp(150px, 22vw, 200px) minmax(0, 1fr);
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .ad-sidebar:last-of-type {
        display: none;
    }
}

/* Tablets Portrait */
@media (max-width: 992px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .ad-sidebar {
        display: none;
    }
    
    .content {
        padding: 1.5rem;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    .main-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .content {
        padding: 1.25rem;
    }

    .content-header h1 {
        font-size: 1.75rem;
    }

    .home-section-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .home-catalog-btn {
        justify-content: center;
        width: 100%;
    }

    .filters {
        gap: 0.5rem;
        justify-content: center;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        flex: 1 1 auto;
        text-align: center;
    }

    .ad-banner-top, .ad-banner-bottom {
        height: 80px;
        font-size: 1rem;
    }
}

/* Mobiles pequeños */
@media (max-width: 480px) {
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .filter-btn {
        width: 100%;
    }
}
