
@import url("https://fonts.googleapis.com/css2?family=Geologica:wght@400;700&display=swap");
.tabla-wrapper {
position: relative;
z-index: 100;
width: 100%;
overflow-x: auto;
border-radius: 12px;
overflow: hidden;
margin-top: 1em;
border: 3px solid #000;
background-color: #000;
box-shadow: inset 0 0 0 1px #000;
}
.tabla-ficha-tecnica {
position: relative;
z-index: 101;
width: 100%;
font-size: 18px;
border-collapse: separate;
border-spacing: 3px 2px;
border-radius: 12px;
box-sizing: border-box;
table-layout: fixed;
transition: opacity 0.5s ease;
background-color: transparent;
}
.tabla-ficha-tecnica thead th {
background-color: #000 !important;
color: #fff !important;
font-family: "Geologica", sans-serif;
font-size: 18px;
font-weight: 700;
padding: 12px;
text-align: left;
border: 3px solid #000;
user-select: none;
position: relative;
}
.tabla-ficha-tecnica td {
padding: 12px 14px;
font-size: 18px;
box-sizing: border-box;
word-wrap: break-word;
vertical-align: middle;
text-align: left;
border: 0px solid #000;
background-color: #fff;
}
.tabla-ficha-tecnica tbody tr:nth-child(even) td {
background-color: #eeeeee;
}
.tabla-ficha-tecnica tr td:first-child {
font-family: "Geologica", sans-serif;
font-weight: 700;
color: #000;
text-transform: uppercase;
}
.tabla-ficha-tecnica tr td:last-child {
font-family: Arial, sans-serif;
font-weight: 400;
color: #000;
}
.tabla-ficha-tecnica tbody tr:last-child td:first-child {
border-bottom-left-radius: 12px;
}
.tabla-ficha-tecnica tbody tr:last-child td:last-child {
border-bottom-right-radius: 12px;
}
.toggle-tabla {
position: absolute;
top: 50%;
right: 12px;
transform: translateY(-50%);
background-color: #fff;
border: 3px solid #000;
border-radius: 50%;
width: 30px;
height: 30px;
cursor: pointer;
font-weight: bold;
font-size: 22px;
line-height: 26px;
color: #000;
user-select: none;
padding: 0;
display: flex;
align-items: center;
justify-content: center;
transition: background-color 0.3s ease;
z-index: 10;
}
.toggle-tabla:hover {
background-color: #f0f0f0;
}
.tabla-ficha-tecnica.collapsed tbody {
display: none;
opacity: 0;
}
.tabla-ficha-tecnica.expanded tbody {
display: table-row-group;
opacity: 1;
overflow: visible;
}
@media screen and (max-width: 768px) {
.tabla-wrapper {
overflow-x: visible !important;
max-height: none !important;
}
.tabla-ficha-tecnica,
.tabla-ficha-tecnica thead,
.tabla-ficha-tecnica tbody,
.tabla-ficha-tecnica tr,
.tabla-ficha-tecnica td {
display: block !important;
width: 100% !important;
}
.tabla-ficha-tecnica thead th {
border-radius: 12px 12px 0 0;
text-align: left;
}
.tabla-ficha-tecnica td {
padding: 12px 14px;
border-left: 3px solid #000;
border-right: 3px solid #000;
border-bottom: 2px solid #000;
background-color: #fff !important;
}
.tabla-ficha-tecnica tbody tr:nth-child(even) td:first-child,
.tabla-ficha-tecnica tbody tr:nth-child(even) td:last-child {
background-color: #eeeeee !important;
}
.tabla-ficha-tecnica tr td:first-child {
background-color: #f9f9f9 !important;
font-family: "Geologica", sans-serif;
font-weight: 700;
text-transform: uppercase;
}
.tabla-ficha-tecnica tbody tr:last-child td {
border-bottom: none !important;
}
.tabla-ficha-tecnica tbody tr:last-child td:first-child {
border-bottom: 2px solid #000 !important;
}
.tabla-ficha-tecnica tbody tr:last-child td:last-child {
border-bottom: 3px solid #000 !important;
border-bottom-left-radius: 12px;
border-bottom-right-radius: 12px;
}
}