/* Estilos para el contenido convertido de Word */ 
.documento-contrato {
    font-family: 'Calibri', Arial, sans-serif;
    font-size: 13pt;
    line-height: 1.5;
    color: #333;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.documento-contrato p,
.documento-contrato .Normal {
    margin-bottom: 12pt;
    text-align: justify;
    transition: color 0.3s ease;
}

.documento-contrato h1 {
    font-size: 20pt;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 24pt;
    margin-bottom: 12pt;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 5px;
    transition: all 0.3s ease;
}

.documento-contrato h2 {
    font-size: 18pt;
    font-weight: bold;
    color: #34495e;
    margin-top: 20pt;
    margin-bottom: 10pt;
    transition: color 0.3s ease;
}

.documento-contrato h3 {
    font-size: 16pt;
    font-weight: bold;
    color: #7f8c8d;
    margin-top: 18pt;
    margin-bottom: 8pt;
    transition: color 0.3s ease;
}

.documento-contrato table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.documento-contrato td, 
.documento-contrato th {
    border: 1px solid #ddd;
    padding: 8px;
    transition: all 0.3s ease;
}

.documento-contrato th {
    background-color: #f2f2f2;
    transition: background-color 0.3s ease;
}

.documento-contrato hr {
    height: 1px;
    background-color: #ddd;
    border: none;
    margin: 20px 0;
    transition: background-color 0.3s ease;
}

.documento-contrato .Title {
    font-size: 24pt;
    text-align: center;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.documento-contrato .Subtitle {
    font-family: 'Georgia', serif;
    font-size: 18pt;
    color: #666;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

/* Estilos para elementos específicos de documentos legales */
.documento-contrato .encabezado-legal {
    text-align: center;
    font-weight: bold;
    margin-bottom: 30px;
    transition: color 0.3s ease;
}

.documento-contrato .firma {
    margin-top: 50px;
    text-align: right;
}

.documento-contrato .sello {
    font-style: italic;
    text-align: center;
    margin-top: 30px;
    transition: color 0.3s ease;
}










/* === Estilos para la firma (modo claro por defecto) === */
.firma-documento {
    margin-top: 80px;
    text-align: right;
    padding-right: 2%;
    font-style: italic;
    color: #000; /* Texto base en modo claro */
    transition: color 0.3s ease;
}

.firma-documento p {
    margin: 8px 0;
    line-height: 1.4;
    color: #1a5fb4; /* Azul corporativo */
    text-align: right;
    transition: color 0.3s ease;
}

.firma-documento em {
    font-style: italic;
}

/* Color específico para las frases "Atentamente" y "Formulario editable..." */
.texto-firma {
    color: #000; /* Negro en modo claro */
    transition: color 0.3s ease;
}

/* Estilo para el texto destacado: "El Incorruptible Despacho de Abogados" */
.destacado {
    color: #1a5fb4; /* Azul marino en modo claro */
    transition: color 0.3s ease;
}

/* === Modo oscuro === */
body.dark-mode .firma-documento {
    color: #e0e0e0;
}

body.dark-mode .firma-documento p {
    color: #64b5f6; /* Azul claro para el despacho */
}

/* En modo oscuro, las frases clave usan un gris claro suave */
body.dark-mode .texto-firma {
    color: #e0e0e0;
}

/* En modo oscuro, el texto destacado usa azul claro */
body.dark-mode .destacado {
    color: #64b5f6; /* Azul claro en modo oscuro */
}






/* ============================
   MODO OSCURO para documento-contrato
   ============================ */
body.dark-mode .documento-contrato {
    background-color: #1a1a1a;
    color: #e0e0e0;
    box-shadow: 0 1px 5px rgba(255,255,255,0.1);
}

body.dark-mode .documento-contrato p,
body.dark-mode .documento-contrato .Normal {
    color: #e0e0e0;
}

body.dark-mode .documento-contrato h1 {
    color: #64b5f6;
    border-bottom-color: #64b5f6;
}

body.dark-mode .documento-contrato h2 {
    color: #90caf9;
}

body.dark-mode .documento-contrato h3 {
    color: #b0bec5;
}

body.dark-mode .documento-contrato table {
    border-color: #444;
}

body.dark-mode .documento-contrato td, 
body.dark-mode .documento-contrato th {
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .documento-contrato th {
    background-color: #2d2d2d;
}

body.dark-mode .documento-contrato hr {
    background-color: #555;
}

body.dark-mode .documento-contrato .Title {
    color: #bb86fc;
}

body.dark-mode .documento-contrato .Subtitle {
    color: #cfd8dc;
}

body.dark-mode .documento-contrato .encabezado-legal {
    color: #e0e0e0;
}

body.dark-mode .documento-contrato .sello {
    color: #b0bec5;
}

