/* Variables de diseño */
:root {
    --primary-color: #0a310c;
    --secondary-color: #4e8a60;
    --accent-color: #648b69;
    --light-gray: #103f05;
    --medium-gray: #467050;
    --dark-gray: #333;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero h1 span {
    font-weight: 300;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Filtros */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--white);
    border: 1px solid var(--medium-gray);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

/* Tarjetas de Producto */
.product-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-card.highlight {
    border-left: 4px solid var(--accent-color);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.product-grid {
    display: grid;
    grid-template-columns: 250px 1fr 200px;
    gap: 30px;
    padding: 30px;
}

.product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 8px;
    padding: 20px;
    height: 250px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-image:hover img {
    transform: scale(1.05);
}

.color-options {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.2);
}

.product-info h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.product-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.spec-item i {
    color: var(--secondary-color);
    width: 20px;
    text-align: center;
}

.product-codes h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.product-codes ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.product-codes li {
    font-size: 0.9rem;
}

.product-codes strong {
    font-weight: 600;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.price {
    text-align: right;
    margin-bottom: 20px;
}

.currency {
    font-size: 1rem;
    vertical-align: top;
}

.amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.vat {
    font-size: 0.8rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background: #f0f8ff;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    margin-top: 50px;
    text-align: center;
}

.contact-info {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: 200px 1fr;
    }
    
    .product-actions {
        grid-column: span 2;
        align-items: center;
        flex-direction: row;
        gap: 15px;
    }
    
    .price {
        margin-bottom: 0;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .price {
        text-align: center;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .product-specs {
        grid-template-columns: 1fr;
    }
    
    .product-codes ul {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la barra de búsqueda */
.search-container {
    position: relative;
    margin-bottom: 20px;
    max-width: 500px;
}

.search-container .fa-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

#search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid #dee2e6;
    border-radius: 30px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.clear-search {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    display: none;
}

.clear-search:hover {
    color: #495057;
}


/* Mejora visual para los códigos */
.product-codes li {
    margin-bottom: 5px;
    transition: all 0.2s ease;
}

.product-codes strong {
    font-weight: 600;
    color: #2c3e50;
}
/* Responsive */
@media (max-width: 768px) {
    .search-container {
        max-width: 100%;
    }
    
    .filter-buttons {
        justify-content: center;
    }
}

/* codigo

/* Estilos para el lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 80vh;
    margin: 5% auto;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.9);}
    to {transform: scale(1);}
}

.lightbox-caption {
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 1.2rem;
    margin-top: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover {
    color: #3498db;
    transform: rotate(90deg);
}

/* Estilo para los triggers */
.lightbox-trigger {
    cursor: pointer;
}

.product-image-container {
    cursor: pointer;
    transition: transform 0.3s;
}

.product-image-container:hover {
    transform: scale(1.02);
}

/*codigo

/* Estilos generales */
.product-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title {
    font-size: 2.8rem;
    color: #e9ecee;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
}


.gallery-subtitle {
    font-size: 1.2rem;
    color: #c5d3d4;
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Filtros de categoría */
.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    padding: 10px 25px;
    background: #f8f9fa;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #34495e;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
    background: #3498db;
    color: white;
    border-color: #3498db;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}








/* Tarjeta de producto */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.new-badge {
    background: #2ecc71;
}

/* Contenedor de imagen */
.product-image-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.zoom-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.product-image-container:hover .image-overlay {
    opacity: 1;
}

.product-image-container:hover .product-image {
    transform: scale(1.1);
}

/* Contenido del producto */
.product-content {
    padding: 25px;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.vat {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 400;
}

.product-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.product-features li {
    margin-bottom: 12px;
    color: #34495e;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

.product-features i {
    color: #3498db;
    margin-right: 10px;
    margin-top: 3px;
    font-size: 1.1rem;
}

.product-features strong {
    font-weight: 600;
    margin-right: 5px;
}


/* newcodigo /*


