/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Top Bar */
.top-bar {
    background-color: #0066cc;
    color: white;
    width: 100%;
    padding: 0.5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.empty-space {
    flex: 1;
}

.phone-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.address-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.phone-number, .address {
    font-size: 1rem;
    font-weight: 500;
}

.contact-info i {
    font-size: 1rem;
}

/* Navigation */
.main-nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo img {
    width: 89px;
    height: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: var(--hover-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    padding: 0.5rem;
}


.back-button-container {
    padding: 1rem 5%;
    background-color: #f9f9f9;
}

.back-button {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f0f0f0;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.back-button:hover {
    background-color: var(--hover-color);
    color: white;
}

.back-button i {
    margin-right: 0.5rem;
}

/* Breadcrumb */
.breadcrumb {
    color: #666;
    margin-bottom: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.breadcrumb a {
    color: #0066cc;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Container */
.product-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* Image Section */
.image-section {
    flex: 1;
    max-width: 500px;
}

.main-image {
    flex: 1;
    max-width: 500px;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.thumbnail-gallery {
    display: grid;
    /* Modified to show 4 thumbnails instead of 3 */
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s;
}

.thumbnail:hover {
    border-color: #0066cc;
}

.info-section {
    flex: 1;
    min-width: 0;
}

/* Tabs Navigation */
.tabs-nav {
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.tab-button {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #0066cc;
}

.tab-button.active {
    color: #0066cc;
    border-bottom-color: #0066cc;
}

/* Tabs Content */
.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Features List */
.features-list {
    padding-left: 20px;
    line-height: 1.6;
}

.features-list li {
    margin-bottom: 10px;
}

/* Specifications Table */
.specs-table {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid #ddd;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    background-color: #f9f9f9;
    padding: 12px 15px;
    width: 40%;
    font-weight: bold;
}

.spec-value {
    padding: 12px 15px;
    width: 60%;
}

.spec-value ul {
    margin: 0;
    padding-left: 20px;
}

.spec-button-container {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

/*BOTONES FICHA TECNICA Y WSP*/

.tech-sheet-btn, .whatsapp-btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.tech-sheet-btn {
    background-color: #0066cc;
}

.tech-sheet-btn:hover {
    background-color: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #20ba57;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tech-sheet-btn i, .whatsapp-btn i {
    font-size: 18px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    color: white;
    margin: 0;
}

.footer-section h4 {
    font-size: 1.2rem;
    color: white;
    margin: 0;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item i {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

.contact-item-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #1e3c72;
    transform: translateY(-3px);
}

.quick-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quick-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.quick-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    margin-top: 4rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* Responsive Design */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .image-section {
        max-width: 100%;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .spec-row {
        flex-direction: column;
    }

    .spec-label, 
    .spec-value {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .phone-container, .address-container {
        justify-content: center;
    }

    .product-container {
        flex-direction: column;
    }

    .main-image {
        max-width: 100%;
    }

    .spec-row {
        flex-direction: column;
    }

    .spec-label, .spec-value {
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
}