        @import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Open+Sans:wght@300;400;600;700&display=swap');

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

        body {
            font-family: 'Open Sans', 'Segoe UI', sans-serif;
            font-size: 11pt;
            line-height: 1.7;
            color: #1a1a2e;
            background: #e8e8e8;
            padding: 20px;
        }

        .documento {
            max-width: 850px;
            margin: 0 auto;
            background: #ffffff;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
            border-radius: 4px;
            overflow: hidden;
        }

        /* ===== ENCABEZADO ===== */
        .encabezado {
            background: linear-gradient(135deg, #0a1628 0%, #1a2a4a 100%);
            color: white;
            padding: 30px 50px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 4px solid #e8751a;
        }

        .encabezado .logo-contenedor {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .encabezado .logo-contenedor img {
            width: 80px;
            height: 80px;
            object-fit: contain;
            border-radius: 8px;
            background: white;
            padding: 4px;
        }

        .encabezado .logo-texto h1 {
            font-family: 'Merriweather', serif;
            font-size: 28px;
            font-weight: 900;
            letter-spacing: 4px;
            color: #ffffff;
        }

        .encabezado .logo-texto p {
            font-size: 9px;
            letter-spacing: 3px;
            text-transform: uppercase;
            color: #e8751a;
            margin-top: 2px;
        }

        .encabezado .tipo-contrato {
            text-align: right;
        }

        .encabezado .tipo-contrato span {
            display: block;
            font-size: 9px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #8a9bc0;
        }

        .encabezado .tipo-contrato h2 {
            font-family: 'Merriweather', serif;
            font-size: 13px;
            font-weight: 700;
            color: #ffffff;
            margin-top: 4px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* ===== CUERPO ===== */
        .cuerpo {
            padding: 40px 55px;
        }

        /* Título del contrato */
        .titulo-contrato {
            text-align: center;
            font-family: 'Merriweather', serif;
            font-size: 13pt;
            font-weight: 700;
            color: #0a1628;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            margin-bottom: 25px;
            padding-bottom: 12px;
            border-bottom: 2px solid #0a1628;
        }

        /* Preámbulo */
        .preambulo {
            text-align: justify;
            font-size: 10.5pt;
            margin-bottom: 20px;
            line-height: 1.8;
        }

        .preambulo .partes {
            margin-top: 8px;
        }

        /* Marcadores de placeholder */
        .placeholder {
            background: #fff3cd;
            border: 1px solid #ffc107;
            border-radius: 3px;
            padding: 1px 6px;
            font-weight: 600;
            color: #856404;
            font-size: 10pt;
        }

        /* Secciones (DECLARACIONES, CLAUSULAS) */
        .seccion-titulo {
            text-align: center;
            font-family: 'Merriweather', serif;
            font-size: 13pt;
            font-weight: 700;
            color: #0a1628;
            letter-spacing: 6px;
            margin: 30px 0 18px 0;
            padding-top: 15px;
            border-top: 2px solid #e8751a;
        }

        /* Subtítulos de partes */
        .parte-titulo {
            font-weight: 700;
            color: #0a1628;
            margin: 15px 0 8px 0;
            font-size: 10.5pt;
        }

        /* Lista numerada */
        .lista-numerada {
            margin-left: 25px;
            margin-bottom: 12px;
        }

        .lista-numerada li {
            text-align: justify;
            margin-bottom: 6px;
            font-size: 10.5pt;
        }

        /* Cláusulas */
        .clausula {
            margin-bottom: 16px;
        }

        .clausula-titulo {
            font-family: 'Merriweather', serif;
            font-size: 10.5pt;
            font-weight: 700;
            color: #1a2a4a;
            margin-bottom: 6px;
            text-transform: uppercase;
        }

        .clausula-texto {
            text-align: justify;
            font-size: 10.5pt;
            line-height: 1.75;
        }

        .clausula-texto .sub-inciso {
            margin-left: 25px;
            margin-top: 4px;
        }

        .clausula-texto .sub-item {
            margin-left: 20px;
            margin-bottom: 4px;
        }

        /* Obligaciones */
        .obligaciones {
            display: flex;
            gap: 20px;
            margin: 10px 0 16px 0;
        }

        .obligacion-bloque {
            flex: 1;
            background: #f8f9fa;
            border-left: 3px solid #e8751a;
            padding: 12px 16px;
            border-radius: 0 4px 4px 0;
            font-size: 10pt;
        }

        .obligacion-bloque strong {
            display: block;
            color: #0a1628;
            margin-bottom: 4px;
            font-size: 10pt;
        }

        .obligacion-bloque ul {
            margin-left: 15px;
            font-size: 9.5pt;
        }

        .obligacion-bloque li {
            margin-bottom: 3px;
        }

        /* Firma */
        .firma-seccion {
            margin-top: 40px;
            padding-top: 25px;
            border-top: 2px solid #0a1628;
        }

        .firma-fecha {
            text-align: center;
            font-size: 10.5pt;
            font-style: italic;
            color: #333;
            margin-bottom: 30px;
        }

        .firmas-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            margin-top: 20px;
        }

        .firma-bloque {
            text-align: center;
        }

        .firma-bloque .firma-linea {
            border-top: 1.5px solid #1a1a2e;
            width: 80%;
            margin: 50px auto 8px auto;
        }

        .firma-bloque .firma-nombre {
            font-weight: 700;
            font-size: 10.5pt;
            color: #0a1628;
        }

        .firma-bloque .firma-rol {
            font-size: 9pt;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Pagaré */
        .pagare-seccion {
            margin-top: 35px;
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 25px 35px;
            text-align: center;
        }

        .pagare-seccion .pagare-titulo {
            font-family: 'Merriweather', serif;
            font-size: 11pt;
            font-weight: 700;
            color: #0a1628;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 10px;
        }

        .pagare-seccion p {
            font-size: 10pt;
            color: #555;
            font-style: italic;
        }

        .pagare-firma {
            margin-top: 25px;
        }

        .pagare-firma .firma-linea {
            border-top: 1.5px solid #1a1a2e;
            width: 60%;
            margin: 0 auto 8px auto;
        }

        /* Anexo técnico */
        .anexo-seccion {
            margin-top: 40px;
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 30px 40px;
        }

        .anexo-titulo {
            text-align: center;
            font-family: 'Merriweather', serif;
            font-size: 12pt;
            font-weight: 700;
            color: #0a1628;
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #e8751a;
        }

        .anexo-datos {
            font-size: 10.5pt;
            margin-bottom: 15px;
        }

        .anexo-datos strong {
            color: #0a1628;
        }

        .anexo-tabla {
            width: 100%;
            border-collapse: collapse;
            margin: 15px 0;
            font-size: 10pt;
        }

        .anexo-tabla th {
            background: #0a1628;
            color: white;
            padding: 8px 12px;
            text-align: left;
            font-weight: 600;
            font-size: 9pt;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .anexo-tabla td {
            padding: 8px 12px;
            border-bottom: 1px solid #dee2e6;
        }

        .anexo-tabla tr:nth-child(even) {
            background: #ffffff;
        }

        .anexo-tabla tr:nth-child(odd) {
            background: #f1f3f5;
        }

        .tiendas-lista {
            margin: 10px 0 15px 20px;
            font-size: 10.5pt;
        }

        .tiendas-lista li {
            margin-bottom: 4px;
        }

        .anexo-firmas {
            display: flex;
            gap: 60px;
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #dee2e6;
        }

        .anexo-firma-bloque {
            flex: 1;
            text-align: center;
        }

        .anexo-firma-bloque .firma-linea {
            border-top: 1.5px solid #1a1a2e;
            width: 90%;
            margin: 40px auto 8px auto;
        }

        .anexo-firma-bloque p {
            font-size: 9.5pt;
            color: #555;
        }

        /* ===== PIE DE PÁGINA ===== */
        .pie {
            background: #0a1628;
            color: #8a9bc0;
            padding: 12px 50px;
            font-size: 8pt;
            text-align: center;
            letter-spacing: 1px;
        }

        .pie strong {
            color: #e8751a;
        }

        /* ===== IMPRESIÓN ===== */
        @media print {
            body {
                background: white;
                padding: 0;
            }

            .documento {
                box-shadow: none;
                border-radius: 0;
                max-width: 100%;
            }

            .encabezado {
                -webkit-print-color-adjust: exact;
                print-color-adjust: exact;
            }

            .placeholder {
                border: none;
                background: none;
                color: #000;
                font-weight: 600;
            }

            .seccion-titulo {
                page-break-after: avoid;
            }

            .clausula {
                page-break-inside: avoid;
            }

            .anexo-seccion {
                page-break-inside: avoid;
            }

            .no-imprimir {
                display: none;
            }
        }