/* ============================================================
   PANEL DE CONTROL
============================================================ */
#panel-control {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    background: #1e1e24;
    color: #e0e0e0;
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    font-family: Inter, sans-serif;
    font-size: 13px;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #13131a;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-title {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.3px;
}

.btn-pdf {
    background: #273d97;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pdf:hover {
    background: #1f2f7a;
}

.panel-sections {
    padding: 8px 0 24px;
    flex: 1;
}

#panel-control details {
    border-bottom: 1px solid #2a2a35;
}

#panel-control summary {
    padding: 10px 16px;
    font-weight: 600;
    color: #b0b8d0;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px;
}

#panel-control summary:hover {
    color: #fff;
}

#panel-control details[open] summary {
    color: #8fa3e8;
}

#panel-control label {
    display: flex;
    flex-direction: column;
    padding: 4px 16px 6px;
    color: #9aa0b4;
    font-size: 12px;
    gap: 3px;
}

#panel-control input[type="text"],
#panel-control input[type="number"] {
    background: #2a2a38;
    border: 1px solid #3a3a50;
    border-radius: 4px;
    color: #e0e8ff;
    font-size: 13px;
    padding: 5px 8px;
    outline: none;
    transition: border-color 0.15s;
    font-family: Inter, sans-serif;
}

#panel-control input:focus {
    border-color: #5060c0;
}

.btn-secondary {
    margin: 8px 16px 4px;
    background: #2a3560;
    color: #8fa3e8;
    border: 1px solid #3a4a80;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-secondary:hover {
    background: #334070;
}

.extra-item {
    background: #22222e;
    border-radius: 6px;
    margin: 4px 12px;
    padding: 6px 4px 4px;
    border: 1px solid #333;
}

.btn-remove {
    margin: 4px 16px 2px;
    background: transparent;
    color: #c06060;
    border: 1px solid #804040;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 11px;
    cursor: pointer;
}

.btn-remove:hover {
    background: #3a2020;
}

/* Desplazar el cotizador para dejar espacio al panel */
#cotizador-output {
    margin-left: 300px;
}

/* Clase utilitaria para ocultar en impresión */
.no-print {
    display: block;
}

/* ============================================================ */

body {
    font-family: "Monotype Garamond", sans-serif;
    font-size: 16px;
    font-weight: 350;
    /* "Neue Helvetica", Sans-serif */
    margin: 0;
    padding: 0px;
    /* color: #333; */
    /*background-color: #f9f9f9;*/
    background-color: #2a2a2e;
}

.page-container {
    width: 216mm; /* A4 width */
    min-height: 280mm; /* A4 height */
    margin: 10mm auto; /* Top/bottom margin 20mm, center horizontally */
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10mm; /* Internal padding */
    box-sizing: border-box; /* Include padding in the width/height */
    position:relative;
}

.img-page {
    padding: 0;
}

.img-page:not(#page10) {
    display: flex;
    align-items: stretch;
}

.img-page:not(#page10) img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.page-container::after {
    content: "";
    background-image: url('./logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 70% auto; /* Ajusta el tamaño según necesites */
    opacity: 0.1; /* Ajusta la transparencia */
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    /* z-index: -1; */
    pointer-events: none;
}

.img-page::after {
    opacity: 0;
}

/* Header Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.logo img {
    max-width: 130px;
    height: auto;
}

.header-text {
    text-align: center;
    line-height: 1.8;
    color: #555;
    font-size: 1em;
}

.header-text p:first-child {
    /* font-weight: bold; */
    color: #273d97;
    font-size: 1.1em;
}

.header-text p {
    margin: 0;
}

.document-number {
    font-size: 1em;
    color: #555;
    white-space: nowrap;
}

/* page-1 image banner */
.banner img {
	width: 100%;
	margin-bottom: 50px;
}
/**/

.budget-header {
	background-color: #949fc9;
	background-image: linear-gradient(to right, #949fc9, #f7f8fb);
	color: black;
	border-radius: 8px 8px 0 0;
	padding: 15px 20px;
	/* font-family: Helvetica, sans-serif; */
	font-size: 1.1em;
	font-weight: bold;
	font-family: Inter, sans-serif;
	letter-spacing: 0.7px;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}
table thead th {
    background: #dedfe0;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}
table thead th:last-child {
    border-right: 0px solid #aaa;
}
table th,
table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 2px solid #aaa;
}
table th {
    background-color: #f0f2f7; /* Light grey from the image */
    font-weight: normal;
    color: #555;
}

.total-row {
    background-color: #ffffff; /* White background for the total row */
    font-weight: bold;
    color: #333;
    font-family: Inter, sans-serif;
}
.total-row td {
    border-top: 2px solid #aaa; /* Separator for total */
    padding-top: 15px;
    padding-bottom: 15px;
}
.total-row .total-amount {
    color: #273e93; /* Blue color for the total amount */
    font-size: 1em;
}
.highlighted-cell {
    color: #273e93; 
}

/*
 * Tabla con bordes completos
 * */
.bordered-table th {
    background: white;
    border: 1px solid #aaa;
    text-align: center;
}
.bordered-table td {
    border: 1px solid #aaa;
    text-align: center;
}
.bordered-table tr:last-child td {
    border-bottom: 1px solid #aaa;
}
.bordered-table th:last-child {
    border-right: 1px solid #aaa;
}
/* */

/* Monto */
.monto {
    background-image: linear-gradient(to right, #bec5de, #f9f9fc);
    padding: 0.8em 0.7em 0.8em 0.7em; 
    font-size: 0.8em;
    color: #575756;
    border-radius: 5px;
    line-height: 1.6;
}

.monto span {
    font-weight: bold;
    color: #575756;
}

.monto p {
    margin: 0;
}
/* */

#monto-total-de-inversion td.amount {
	padding-right: 5em;
	padding-left: 10em;
}
#monto-total-de-inversion td.total-amount {
	padding-right: 5em;
	padding-left: 10em;
}

.grafico-pagos {
    margin-bottom: 60px;
}

.grafico-pagos img {
    max-width: 100%;
}

/* Logo de RBA en la tabla comparativa plusvalía y ROI */
.rba-column img {
    max-width: 60px;
}

#page10 {
    z-index: 2;
}
#page10 img {
    z-index: -1;
    width:100%; 
    position:absolute;
}

.video-container {
	width: 85%;
	height: 310px;
	margin: 0 auto;
	padding-top: 40px;
}

/* Podcasts y QR */
.col-2 {
    display: flex;
    justify-content: flex-end;
	padding-right: 42px;
	margin-top: 155px;
}

.audio-container {
    display: flex;
    width: 50%;
}

.audio-cards {
	display: grid;
	gap: 20px 10px;
	grid-template-columns: 161px 161px;
}

.card {
	/* background-color: #333; */
	color: white;
	border-radius: 10px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 45px;
}

.card:hover {
    background: yellow;
    opacity: 0.1;
}

.qr-section {
    text-align: center;
    max-width: 150px;
}

.qr-section img {
    width: 100%;
    border: 4px solid #1a1a1a;
    border-radius: 10px;
}

.qr-section p {
    margin-top: 10px;
    color: #3366cc;
}
/* */

/* Footer */
.footer {
	background-color: white;
	text-align: justify;
	border-top: 1px solid #ccc;
	font-weight: bold;
	width: 200mm;
	margin: 0 auto;
	padding-top: 8mm;
}

.contact-info {
	display: flex;
	justify-content: center;
	gap: 80px;
	flex-wrap: wrap;
	/* margin-bottom: 3.5em; */
	font-weight: 450;
	/* font-size: 15px; */
	height: 6em;
}

.contact-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #222;
}

    .contact-item svg {
      width: 24px;
      height: 24px;
      fill: #2c48a4; /* Azul del ícono */
    }

.footer small {
    height: 5em;
	display: block;
	max-width: 800px;
	margin: 0 auto;
	font-size: 12px;
	color: #888;
	line-height: 1.1;
	font-weight: lighter;
}

.footer span {
	font-weight: bold;
	font-family: "EB Garamond", sans-serif;
	font-size: 1.4em;
    margin-left: 8mm;
}
/* */

/* Hardcodeado porque adentro no tiene nada */
.hablan-de-nosotros {
	height: 157px;
}


/* Print Specific Styles */
@media print {
    .no-print {
        display: none !important;
    }

    #cotizador-output {
        margin-left: 0 !important;
    }

    @page {
        size: A4;
        margin: 0;
    }

    body {
        margin: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .page-container {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 10mm !important;
        box-shadow: none;
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
        overflow: hidden;
    }
    
    /* Eliminar salto de página en el último elemento */
    .page-container:last-child {
        page-break-after: avoid;
    }

    .img-page {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Ensure tables don't break across pages awkwardly */
    table {
        page-break-inside: avoid;
        border-collapse: collapse !important;
    }
    
    /* th, td { */
    /*     border: 1px solid #000 !important; /* Usar color negro sólido */ */
    /* } */
    
    /* Específicamente para bordered-table */
    /* .bordered-table, */
    /* .bordered-table th, */
    .bordered-table td {
        border: 1px solid #000 !important; /* Grosor mayor para impresión */
    }
    
    .bordered-table th {
        background: #fff !important; /* Fondo blanco sólido */
        -webkit-print-color-adjust: exact; /* Forzar color de fondo */
        print-color-adjust: exact;
    }
    
    /* Asegurar que los bordes se impriman */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Hide anything not needed in print */
    /* .some-element-not-for-print { display: none; } */
}
