﻿.homepage-gradient {
    position: relative;
    background-color: #111111;
    min-height: 100vh;
    overflow: hidden;
}

.light-overlay {
    position: absolute;
    top: -600px;
    left: 0px;
    width: 1400px;
    height: 1400px;
    background: radial-gradient(circle at top left, #e6fa4dc4 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.light-overlay-bottom {
    position: absolute;
    top: 50px;
    right: 0;
    width: 700px;
    height: auto;
    z-index: 0;
    pointer-events: none;
}


.content-wrapper {
    position: relative;
    z-index: 1;
}

/* Estructura general */

.main-content {
    width: 100%;
}


/* Hero Section */
.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 64px 0 256px 0;
}

.hero-text {
    display: flex;
    flex-direction: column;
    max-width: 572px;
}

    .hero-text h1 {
        font-size: 60px;
        font-weight: 600;
        margin-bottom: 8px;
        background: linear-gradient(135deg, #E6FA4D 30%, #CACACA 50%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

.description {
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 40px 0;
}

.call-to-action {
    background-color: #E6FA4D;
    color: #111111;
    font-weight: 500;
    font-size: 20px;
    border-radius: 6px;
    border: none;
    padding: 10px 0;
}

    .call-to-action:hover {
        cursor: pointer;
        background-color: #E6FA4D;
    }

.invitation-text-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

    .invitation-text-section .invitation-text {
        font-weight: 600;
        font-size: 32px;
        margin: 0;
    }

    .invitation-text-section .subscribe-text {
        font-weight: 100;
        font-size: 20px;
        max-width: 690px;
        margin: 0;
    }
/* Filtros y Búsqueda */
.search-bar-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .search-bar-wrapper svg {
        position: absolute;
        left: 15px;
        fill: #fefefe;
        z-index: 1;
    }

.search-bar {
    padding: 15px 15px 15px 50px; /* Espacio para el icono a la izquierda */
    background-color: #434343;
    border: none;
    outline: none;
    color: #fefefe;
    font-size: 16px;
    font-weight: 400;
    border-radius: 6px;
    width: 100%;
}

    .search-bar::placeholder {
        color: #fefefe;
        font-size: 16px;
    }

.filters-container {
    display: flex;
    justify-content: start;
    gap: 8px;
    flex-wrap: wrap;
}

.popular-filters-container {
    display: flex;
    flex-wrap: wrap;
    overflow-x: auto;
    gap: 12px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    width: 100%;
    justify-content: center;
}

    .popular-filters-container:active {
        cursor: grabbing;
    }

    .popular-filters-container::-webkit-scrollbar {
        display: none;
    }

.popular-filters-text {
    margin: 0;
}

/* Grid de Productos */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
/* Estilos para los botones de selección de búsqueda */

.search-mode {
    display: flex;
    align-items: center;
    gap: 0;
}

.toggle-button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    flex-grow: 1;
    outline: none;
    font-weight: 400;
    font-size: 16px;
    padding: 15px;
}
    /* Botón izquierdo: sin border-radius en la derecha */
    .toggle-button:first-child {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* Botón derecho: sin border-radius en la izquierda */
    .toggle-button:last-child {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .toggle-button.active {
        background-color: #E6FA4D;
        color: #111111;
        outline: none;
    }

    .toggle-button.inactive {
        background-color: #434343;
        color: white;
    }

.pagination-controls {
    /*display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 20px 0 20px 0;*/
}

    .pagination-controls button {
        padding: 8px 16px;
        border: none;
        background-color: transparent;
        border-radius: 6px;
        color: #CACACA;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .pagination-controls button:disabled {
            cursor: not-allowed;
        }

    .pagination-controls span {
        font-size: 12px;
        color: #CACACA;
    }


.popular-filter {
    width: 100px;
    transition: border .2s,background-color .2s;
    position: relative;
    flex: 0 0 auto;
    height: 88px;
    background-color: #434343;
    border-radius: 6px;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 0 0;
    cursor: pointer;
    box-sizing: border-box
}

.filter-icon {
    font-size: 38px;
    color: #fff;
    margin-top: 8px;
    margin-bottom: auto
}

.filter-label {
    font-size: 12px;
    font-weight: 200;
    color: #fff;
    text-align: center;
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    -webkit-user-select: none;
    user-select: none
}

.popular-filter.active {
    border: 1px solid #e6fa4d;
    background-color: #1111
}

    .popular-filter.active .filter-icon, .popular-filter.active .filter-label {
        color: #e6fa4d
    }


.shop-card {
    display: flex;
    flex-direction: column;
    background-color: #434343;
    border-radius: 10px;
    width: 100%;
    height: 358px;
    max-width: 320px;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
    position: relative;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.shop-image {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    margin-bottom: 14px;
    filter: brightness(0.5);
}

.shop-name,
.shop-address,
.shop-distance {
    padding-left: 12px;
    padding-right: 12px;
}

.shop-name {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #fefefe;
}

.shop-address {
    font-size: 12px;
    font-weight: 100;
    color: #fefefe;
    margin: 0;
}

.product-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    color: #fefefe;
    padding-left: 12px;
    padding-right: 12px;
}

.product-client {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
    font-weight: 300;
}

.product-price-actual {
    font-size: 16px;
    font-weight: 500;
    color: #fefefe;
    margin: 0;
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding-left: 12px;
    padding-right: 12px;
}

.product-price-anterior {
    font-size: 12px;
    font-weight: 200;
    color: #cacaca;
    margin: 0;
    position: absolute;
    left: 6px;
    bottom: 28px;
    padding-left: 12px;
    padding-right: 12px;
}


.view-store-button {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: #111111;
    padding: 4px 7px 0 7px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

    .view-store-button svg {
        color: #e6fa4d;
        font-size: 18px;
    }

.favorite-button {
    position: absolute;
    top: 3px;
    right: 3px;
    background-color: transparent;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
}

.favorite-icon {
    font-size: 20px;
    color: #cacaca;
}

    .favorite-icon.active {
        color: #e6fa4d;
    }
