/* Estilos para los tooltips */
        .tooltip {
            position: fixed;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            pointer-events: none;
            z-index: 1000;
            white-space: nowrap;
        }

        .documento {
            background-color: white;
            max-width: 8.5in;
            margin-top: 250px;
            margin-bottom: 50px;
            padding: 1in;
            box-shadow: 0 4px 8px rgba(215, 22, 24, 1);
            line-height: 1.6;
            color: #333;
            border: 1px solid #D71618;
            border-radius: 10px;
        }

        /* --- INICIO: Justificación de Párrafos --- */
        .documento p,
        .documento .texto-declaracion,
        .documento .introduccion,
        .documento .partes,
        .documento .aceptacion {
            text-align: justify;
        }
        /* --- FIN: Justificación de Párrafos --- */

        .contenedor-contrato {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;


        }

        .documento .logo-contrato {
            width: 400px;
            height: auto;
            align-items: center;
        }

        .documento .contrato-logo .logo-contrato {
            width: 400px;
            height: auto;
            align-items: center;
        }

        .contrato-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 0;
            margin-bottom: 50px;

        }

        .strong {
            color: #26447E;
        }


        h1 {
            text-align: center;
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: #26447E;
        }
        
        .contrato{
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .empresa {
            text-align: center;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 5px;
            color: #26447E;
        }

        .slogan {
            text-align: center;
            font-size: 12px;
            font-style: italic;
            margin-bottom: 30px;
            border-bottom: 2px solid #26447E;
            padding-bottom: 15px;
        }

        .fecha {
            margin-top: 60px;
            margin-bottom: 30px;
            font-size: 12px;
            text-align: end;
        }

        .introduccion {
            margin-bottom: 15px;
            font-size: 14px;
        }

        .partes {
            margin-bottom: 20px;
            font-size: 14px;
        }

        .partes p {
            margin-bottom: 8px;
        }

        h2 {
            font-size: 16px;
            font-weight: bold;
            margin-top: 25px;
            margin-bottom: 15px;
            text-align: center;
            text-transform: uppercase;
            color: #26447E;
        }

        h3 {
            font-size: 14px;
            font-weight: bold;
            margin-top: 20px;
            margin-bottom: 10px;
            color: #26447E;

        }

        .declaracion {
            margin-bottom: 15px;
            font-size: 14px;
        }

        .declaracion p {
            margin-bottom: 10px;
        }

        .texto-declaracion {
            font-style: italic;
            margin-top: 8px;
        }

        .aceptacion {
            margin-top: 20px;
            font-size: 14px;
            font-weight: bold;
            color: #D71618;
        }

        .firmas {
            margin-top: 80px;
            display: flex;
            justify-content: space-between;
            margin-bottom: 80px;
        }

        .firma {
            width: 45%;
            text-align: center;
        }

        /* --- INICIO: Excepción para centrar texto de la firma --- */
        .firma p {
            text-align: center !important; /* Se usa !important para asegurar que anule la justificación */
        }
        /* --- FIN: Excepción para centrar texto de la firma --- */

        .firma p {
            margin-bottom: 5px;

        }



        .atentamente {
            margin-top: 40px;
            text-align: end;
            font-size: 14px;
        }

        .empresa-firma {
            font-weight: bold;
            margin-top: 20px;
            text-align: center;
        }

        .campo-editable {
            color: #999;
            font-weight: 400;
            font-size: 13px;
        }

        .linea-blanco {
            border-bottom: 1px solid #000;
            display: inline-block;
            min-width: 200px;
        }

        .abajo{
            display: flex;
            flex-direction: row;
            align-items: flex-start; /* Alinear items al inicio */
            justify-content: space-between;
            margin-top: 80px; /* Espacio superior */
        }

        .contacto-final h3 {
            font-size: 16px;
            font-weight: bold;
            color: #26447E;
            margin-bottom: 15px;
        }

        .contacto-final ul {
            list-style: none;
            padding: 0;
        }

        .contacto-final li {
            margin-bottom: 10px;
        }

        .contacto-final a {
            color: #333;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
        }

        .contacto-final a:hover {
            color: #D71618;
        }

        .contacto-final i {
            color: #26447E;
            font-size: 16px;
            width: 20px; /* Ancho fijo para alinear iconos */
            text-align: center;
        }

        

        @media print {
            body {
                background-color: white;
                padding: 0;
            }

            .documento {
                box-shadow: none;
                margin: 0;
                padding: 1in;
            }
        }
.admin-data-filled {
    font-weight: bold;
    color: #333; /* Asegura que el color sea oscuro y no el gris de placeholder */
}

@media (max-width: 768px) {
    .documento {
        margin-top: 150px;
        padding: 20px;
        width: 95%;
        max-width: 95%;
    }

    .documento .logo-contrato,
    .documento .contrato-logo .logo-contrato {
        width: 80%;
    }

    h1 {
        font-size: 16px;
    }

    h2 {
        font-size: 14px;
    }

    h3 {
        font-size: 12px;
    }

    .documento p,
    .documento .texto-declaracion,
    .documento .introduccion,
    .documento .partes,
    .documento .aceptacion,
    .fecha,
    .atentamente,
    .contacto-final a {
        font-size: 12px;
    }

    .firmas {
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .firma {
        width: 80%;
    }

    .abajo {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
    }

                .atentamente {

                    text-align: center;

                }

            

                .documento p, .documento div, .documento span {

                    word-wrap: break-word;

                    overflow-wrap: break-word;

                }

            

                .documento img {

                    max-width: 100%;

                    height: auto;

                }

            }

            

            body.pdf-capture-view .documento {

                width: 8.5in !important;

                max-width: 8.5in !important;

                padding: 1in !important;

                margin-top: 50px !important;

                margin-bottom: 50px !important;

            }

            

    