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

/* BASE */
.product-container{margin-bottom:80px;}


/* BREADCRUMB */
.breadcrumb {
    font-size: 13px;
    color: #283253;
    margin: 0px auto 20px auto;
    background: #f2f2f2;
    padding: 8px 16px;
	max-width:1502px;
}

.breadcrumb a {
    color: #283253;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.breadcrumb a:hover {
    color: #c0002a;
}

.breadcrumb span {
    margin: 0 5px;
}

/* HEADER */
.header {
    margin-bottom: 20px;
}

.header h1 {
    font-size: 32px!important;
    font-weight: 700!important;
    margin-bottom: 6px!important;
}

.header h2 {
    font-size: 18px!important;
    font-weight: 400!important;
    color: #283253!important;
}

/* TABS */
.tabs {
    display: flex;
    margin-bottom: 30px;
}

.tabs button {
    appearance: none;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    padding: 10px 18px;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    margin-right: 6px;
    color: #283253;
}

.tabs button:hover {
    background: #f2f2f2;
}

.tabs button.active {
    background: #283253;
    color: #ffffff;
    font-weight: 600;
}

/* LAYOUT */
.layout {
	max-width:1200px;
	margin:0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

/* CONTENT */
.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #252a5f;
    padding-bottom: 6px;
}

/* TECH TABLE */
.tech-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.tech-table th,
.tech-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 13px;
}

.tech-table th {
    width: 50%;
    font-weight: 600;
}

.tech-table tr.tech-section>th,
.tech-table tr.tech-section>td {
    background: #f9fafb;
    font-weight: 600;
    color: #55669c;
}

/* TECH FLEX */
.tech-flex {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.tech-image {
    flex: 0 0 220px;
    text-align: center;
}

.tech-image img {
    max-width: 100%;
    max-height: 200px;
    height: auto;
    cursor: pointer;
}

.tech-data {
    flex: 1;
}

/* CERTIFICATIONS */
.certifications {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.certifications img {
    height: 60px;
}

/* SIDEBAR */
.sidebar {
    border-left: 1px solid #e5e7eb;
    padding-left: 20px;
}

.sidebar h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #252a5f;
    padding-bottom: 6px;
}

/* CATEGORY MENU */
.category-menu {
    list-style: none;
}

.category {
    margin-bottom: 4px;
}

.category-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #252a5f;
    padding: 6px 0;
    cursor: pointer;
}

.products {
    list-style: none;
    margin-top: 6px;
    margin-left: 12px;
    display: none;
}

.category.active .products {
    display: block;
}

.product a {
    display: block;
    font-size: 13px;
    color: #374151;
    padding: 3px 0;
    text-decoration-style: dotted;
}

.product.active a {
    font-weight: 600;
    color: #b91c1c;
}

.product a:hover {
    text-decoration: underline;
}

/* LISTA DE ARTÍCULOS */
.article-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter label {
    font-size: 13px;
    margin-bottom: 0;
    display: inline-block;
    font-weight: 600;
    color: #252a5f;
}

.filter input {
    padding: 7px 10px!important;
    font-size: 13px!important;
	height:auto!important;
    width: 95px!important;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #252a5f;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter input::placeholder {
    color: #9ca3af;
}

.filter input:focus {
    border-color: #252a5f;
    box-shadow: 0 0 0 3px rgba(37, 42, 95, 0.15);
}

.article-subtabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.subtab {
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: #f9fafb;
    color: #252a5f;
    font-family: inherit;
}

.subtab:hover {
    background: #f2f2f2;
}

.subtab.active {
    background: #252a5f;
    color: #ffffff;
    border-color: #252a5f;
}

/* ARTICLE TABLE */
.article-table-wrapper {
    overflow-x: auto;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    font-family: inherit;
    margin-bottom: 10px;
}

.article-table th,
.article-table td {
    border: 1px solid #ddd;
    padding: 4px 8px;
    text-align: center;
}

.article-table th {
    background: #f2f2f2;
    font-weight: 600;
}

.article-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.group-header th {
    background: #55669c;
    color: #fff;
    text-align: left;
    font-size: 13px;
}

.subheader th {
    background: #e6e6e6;
    font-weight: 500;
    font-size: 11px;
}

.article-table td.ref {
    font-weight: 600;
    text-align: left;
}

.article-table td.ref {
    font-weight: 600;
    text-align: left;
    padding: 0;
}

.article-table td.ref a.ref-link {
    display: block;
    padding: 6px 8px;
    color: #55669c;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
}

.article-table td.ref:hover {
    background: #f2f2f2;
}

.article-table td.ref a.ref-link:hover {
    color: #c0002a;
    text-decoration: underline;
}

/* ICON CELLS */
.article-table td.icon {
    padding: 0;
    text-align: center;
	background-size: 24px; 
	background-repeat: no-repeat;
    background-position: center center;
	cursor:pointer;

}

.article-table td.icon a {
    display: flex;
    padding: 6px 0px;
    color: inherit;
    text-decoration: none;
    font-size: 16px;
    cursor: pointer;
    justify-content: center;
    align-items: center;

}

.article-table td.icon:hover {
    background-color: #f2f2f2;   
    background-repeat: no-repeat;
    background-position: center;	
}

.icon-pdf {background-image: url('img/pdf.png');}
.icon-dxf {background-image: url('img/dxf.png');}
.icon-3d {background-image: url('img/3d.png');}
.icon-edz {background-image: url('img/edz.png');}



.article-table td.icon img {
    width: 24px;
}

.article-table td.image img {
    width: 100px;
}

/* DETALLE ARTÍCULO */
.detail-topbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.back-to-list {
    background: #f2f2f2;
    border: 1px solid #d1d5db;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #252a5f;
    cursor: pointer;
    border-radius: 3px;
    white-space: nowrap;
}

.back-to-list:hover {
    background: #e5e7eb;
}

.detail-title {
    line-height: 1.2;
}

.detail-ref {
    font-size: 13px;
    font-weight: 600;
    color: #55669c;
    margin-bottom: 4px;
}

.detail-product-name {
    font-size: 22px;
    font-weight: 700;
    color: #55669c;
}

.detail-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 18px;
    font-size: 13px;
}

.detail-summary-table th,
.detail-summary-table td {
    border: 1px solid #e5e7eb;
    padding: 6px 10px;
    text-align: left;
}

.detail-summary-table th {
    background: #f2f2f2;
    font-weight: 600;
    width: 120px;
}


@media (max-width: 700px) {
    .detail-summary-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .detail-summary-table th,
    .detail-summary-table td {
        min-width: 120px;
        text-align: center;
    }
}

.detail-download-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.detail-download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
    text-decoration: none;
    color: #252a5f;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-download-btn:hover {
    background: #f2f2f2;
    border-color: #d1d5db;
}

.download-icon {
    width: 34px;
    height: auto;
    flex-shrink: 0;
}

.download-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.download-title {
    font-size: 13px;
    font-weight: 600;
    color: #252a5f;
}

.download-format {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    margin-top: 3px;
}

@media (max-width: 700px) {
    .detail-download-buttons {
        grid-template-columns: 1fr;
    }
}

/* INFORMACIÓN ADICIONAL */
.info-block {
    margin-bottom: 25px;
}

.info-block h3 {
    font-size: 17px;
    font-weight: 600;
    color: #252a5f;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.info-block p {
    font-size: 13px;
    color: #252a5f;
    margin-bottom: 6px;
    line-height: 1.5;
}

.info-download-note {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
    text-align: center;
}

.info-download-note a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.info-download-note a:hover {
    text-decoration: underline;
}

/* DESCARGAS */
.downloads-block {
    margin-bottom: 35px;
}

.downloads-block h3 {
    font-size: 17px;
    font-weight: 600;
    color: #252a5f;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
    margin-bottom: 15px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    margin-bottom: 30px;
}

.download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13px;
    color: #252a5f;
    background: #fff;
}

.download-item span {
    padding: 16px;
}

.download-item img {
    width: 50px;
    height: auto;
    border: 1px solid #e5e7eb;
}

.download-item:hover {
    background: #f9fafb;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 40px;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    background: white;
    padding: 50px;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-left: none;
        padding-left: 0;
        margin-top: 40px;
    }

    .tech-flex {
        flex-direction: column;
    }

    .tech-image {
        flex: none;
    }
}

@media (max-width: 700px) {
    .download-grid {
        grid-template-columns: 1fr;
    }

    .detail-topbar {
        flex-direction: column;
        gap: 10px;
    }

    .detail-download-buttons {
        grid-template-columns: 1fr;
    }

    .detail-product-name {
        font-size: 18px;
    }
}




