:root {
    --store-blue: var(--primary-color, #050065);
    --store-accent: var(--accent-color, #3a72f6);
    --store-light: var(--light-color, #f8f9fa);
    --store-dark: var(--dark-color, #2c3e50);
    --store-gray: var(--gray-color, #7f8c8d);
}

/* ===== HERO STORE ===== */
.store-hero {
    position: relative;
    height: 70vh;
    min-height: 450px;
    background: linear-gradient(145deg, #0900b9 0%, #1a1a4e 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.store-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(../assets/img/fondos/camiones.webp);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title span {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.3rem;
    max-width: 600px;
    opacity: 0.9;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.4s both;
}

/* ===== CONTENEDOR PRINCIPAL ===== */
.store-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 5%;
}

.store-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.store-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

/* ===== FILTROS Y BÚSQUEDA ===== */
.store-filters {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: 50px;
    margin-bottom: 10px;
}

.search-box input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 50px 0 0 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(58, 114, 246, 0.1);
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-box button:hover {
    background-color: var(--accent-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    background-color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: var(--accent-color);
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(58, 114, 246, 0.1);
}

/* ===== GRID DE MAQUINARIA ===== */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.machine-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.machine-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(9, 0, 185, 0.15);
    border-color: transparent;
}

.machine-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
}

.machine-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.machine-card:hover .machine-image img {
    transform: scale(1.08);
}

.image-count {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(9, 0, 185, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(3px);
    z-index: 2;
}

.machine-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.machine-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.machine-specs {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.machine-price {
    font-size: 1.5rem;
    font-weight: 500;
    color: #1d1d1d;
    margin-bottom: 15px;
}

.seller-info-mini {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
}

.seller-name {
    font-weight: 600;
    color: var(--dark-color);
}

.seller-location {
    font-size: 0.85rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.btn-store {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    margin-top: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-store:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(58, 114, 246, 0.4);
}

/* ===== MODAL ===== */
.store-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10001;
    overflow-y: auto;
    padding: 30px;
}

.store-modal-content {
    max-width: 1200px;
    margin: 30px auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    animation: modalFadeIn 0.4s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-gallery {
    background: #f8f9fa;
    padding: 25px;
}

.main-image-container {
    width: 100%;
    height: 350px;
    margin-bottom: 15px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: var(--accent-color);
    transform: scale(0.95);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 35px;
    background: white;
}

.modal-machine-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modal-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--gray-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.seller-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin: 25px 0;
}

.seller-card h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-contact {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
}

.btn-phone {
    background: var(--polynesian-blue, #1050A1);
    color: white;
}

.btn-email {
    background: var(--dim-gray, #64696A);
    color: white;
}

.store-disclaimer {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin-top: 30px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 10px;
}

.no-results i {
    font-size: 3rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .store-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .store-hero {
        height: 40vh;
        min-height: 350px;
    }

    .store-hero h1 {
        font-size: 2.2rem;
    }

    .store-hero p {
        font-size: 1rem;
    }

    .machine-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-buttons {
        flex-direction: column;
    }

    .search-box input {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .store-title {
        font-size: 1.8rem;
    }

    .modal-header h3 {
        font-size: 1.2rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-box {
        border-radius: 40px;
    }

    .search-box input {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .search-box button {
        padding: 0 18px;
        /* NO porcentajes */
        font-size: 1rem;
    }
}