/* ==========================================================================
   ElectroWeb - Estilos Globales para Documentos y Páginas Técnicas
   Consolida y unifica el diseño de todas las páginas de contenido técnico
   ========================================================================== */

/* Contenedor envolvente de la página técnica */
.page-content-wrapper,
.seccion-tableros-doc,
.seccion-pid {
    background: #f5f7fa;
    padding: 40px 15px 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
}

/* Tarjeta contenedora de documento */
.documento,
.document {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2.8rem;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, system-ui, sans-serif;
    transition: all 0.2s ease;
}

@media (max-width: 1240px) {
    .documento,
    .document {
        width: calc(100% - 30px);
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-content-wrapper,
    .seccion-tableros-doc,
    .seccion-pid {
        padding: 25px 10px 40px;
    }
    .documento,
    .document {
        padding: 1.5rem 1.2rem;
        border-radius: 14px;
    }
}

/* Jerarquía de Encabezados */
.documento h1,
.document h1,
.page-content-wrapper h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0b2b4f;
    border-left: 6px solid #1a6fb5;
    padding-left: 1.2rem;
    margin-bottom: 1.8rem;
    margin-top: 0.2rem;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.documento h2,
.document h2,
.page-content-wrapper h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a3a5e;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #d0ddee;
    padding-bottom: 0.4rem;
    line-height: 1.35;
}

.documento h3,
.document h3,
.page-content-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f4a7a;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    line-height: 1.4;
}

.documento h4,
.document h4,
.page-content-wrapper h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #264e7b;
    margin-top: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Párrafos, texto y listas */
.documento p,
.document p,
.page-content-wrapper p,
.documento li,
.document li,
.page-content-wrapper li,
.documento .text-block,
.document .text-block,
.page-content-wrapper .text-block {
    font-size: 0.98rem;
    line-height: 1.68;
    color: #1e2c3d;
}

.point-list {
    list-style-type: none;
    padding-left: 0.8rem;
    margin: 1rem 0;
}

.point-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.8rem;
    position: relative;
    line-height: 1.6;
}

.point-list li::before {
    content: "▹";
    color: #1f6fb5;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Cajas de notas y avisos */
.nota {
    background: #f2f7fe;
    padding: 1rem 1.4rem;
    border-radius: 12px;
    border-left: 5px solid #1a6fb5;
    font-size: 0.95rem;
    margin: 1.2rem 0;
    color: #1e2c3d;
    line-height: 1.6;
}

.nota-alerta {
    background: #fff8e6;
    border-left-color: #f59e0b;
}

/* Tablas técnicas */
.tabla-wrap {
    overflow-x: auto;
    margin: 1.2rem 0 1.8rem 0;
    background: #f9fcff;
    border-radius: 14px;
    border: 1px solid #dde6f0;
    padding: 0.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.documento table,
.document table,
.page-content-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.documento th,
.document th,
.page-content-wrapper th {
    background-color: #1a4f8b;
    color: #ffffff;
    font-weight: 600;
    padding: 0.8rem 1rem;
    text-align: left;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.documento th:last-child,
.document th:last-child,
.page-content-wrapper th:last-child {
    border-right: none;
}

.documento td,
.document td,
.page-content-wrapper td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2edf8;
    color: #243b53;
}

.documento tr:last-child td,
.document tr:last-child td,
.page-content-wrapper tr:last-child td {
    border-bottom: none;
}

.documento tr:nth-child(even),
.document tr:nth-child(even),
.page-content-wrapper tr:nth-child(even) {
    background-color: #f6fafe;
}

/* Badges y etiquetas */
.badge,
.badge-sec {
    display: inline-block;
    background: #e1effe;
    color: #1e429f;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.card-item {
    background: #ffffff;
    border: 1px solid #e2edf8;
    border-radius: 14px;
    padding: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.card-item h4 {
    color: #0b2b4f;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Cajas de notas adicionales y restricciones */
.nota-importante {
    background: #fef9e7;
    border-left: 6px solid #eab308;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin: 1.6rem 0;
    color: #1e293b;
    line-height: 1.6;
}

.restriccion {
    background: #f1f5f9;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin: 1.2rem 0;
    line-height: 1.6;
}

.restriccion strong {
    display: inline-block;
    min-width: 140px;
}

.footer-nota {
    margin-top: 2.5rem;
    background: #f0f6fe;
    padding: 1.2rem 1.8rem;
    border-radius: 18px;
    border-left: 6px solid #2563eb;
    font-size: 0.95rem;
    line-height: 1.6;
}

.inline-code {
    background: #eef2f6;
    padding: 0.1rem 0.4rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 0.9rem;
}

/* Placeholders y componentes de imágenes */
.imagen-placeholder {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 20px;
    border: 1px dashed #b9c7da;
    margin: 1.5rem 0;
    color: #475569;
}

.imagen-placeholder span {
    background: #d9e2ef;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.imagen-fila {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    align-items: center;
    justify-content: center;
    margin: 0.8rem 0;
}

.imagen-caja {
    background: #edf2f7;
    border-radius: 14px;
    padding: 0.4rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    border: 1px solid #d1dcec;
}

.imagen-caja i {
    font-style: normal;
    background: #b7c9e0;
    border-radius: 40px;
    padding: 0 0.6rem;
    color: #0b2b44;
}

/* Placeholder para secciones interactivas o chat */
.chat-placeholder {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 18px;
    padding: 3rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.chat-placeholder .icon {
    font-size: 3rem;
    color: #3b82f6;
    margin-bottom: 1rem;
}

/* Layout de columnas y utilidades */
.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
}

@media (max-width: 768px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

.linea-gruesa {
    border-bottom: 3px solid #0b2b4f;
}

.badge-ip {
    display: inline-block;
    background: #1b3b5c;
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    letter-spacing: 0.3px;
    margin: 0.1rem 0.2rem;
}

/* Presentación técnica de imágenes en documentos */
.documento .image,
.document .image {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2rem 0;
}

.documento .image img,
.document .image img {
    max-width: 320px;
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid #d4e0ee;
    box-shadow: 0 4px 14px rgba(11, 43, 79, 0.09);
    background: #ffffff;
    padding: 6px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.documento .image img:hover,
.document .image img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(11, 43, 79, 0.15);
}

.documento .imagen-fila table,
.document .imagen-fila table {
    max-width: 580px;
    min-width: unset;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d0dbe8;
    box-shadow: 0 4px 14px rgba(11, 43, 79, 0.07);
    margin: 1.5rem auto;
}

.documento .imagen-fila table th,
.document .imagen-fila table th {
    font-size: 0.85rem;
    padding: 8px;
    background: #edf3fa;
    color: #0b2f55;
}

.documento .imagen-fila table td,
.document .imagen-fila table td {
    padding: 10px;
    background: #ffffff;
}

.documento .imagen-fila table img,
.document .imagen-fila table img {
    max-height: 160px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

@media (max-width: 700px) {
    .documento h1,
    .document h1,
    .page-content-wrapper h1 {
        font-size: 1.75rem;
    }
}

