body {
    font-family: 'Arial', sans-serif; 
    background-color: #f0f0f0; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.calculator-container {
    background-color: #ffffff;
    padding: 30px;
    padding-top: 80px; 
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden; 
}

.logo-carabineros,
.logo-siat {
    position: absolute; 
    top: 15px; 
    height: 50px; 
    width: auto; 
    opacity: 0.8; 
    z-index: 10; 
}

.logo-carabineros {
    left: 20px; 
}

.logo-siat {
    right: 20px; 
}

h1 {
    color: #2F4F4F;
    text-align: center;
    border-bottom: 2px solid #2F4F4F;
    padding-bottom: 10px;
    margin-bottom: 10px;
    font-size: 1.8em;
    margin-top: 0;
}

h2 {
    color: #333333;
    text-align: center;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.4em;
}

p.nota {
    font-size: 0.85em;
    color: #555;
    margin-top: 25px;
    text-align: justify;
    margin-bottom: 0;
}

.example-detail {
    border: 3px solid #3CB371; 
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    background-color: #f7fff7; 
    font-family: 'Arial', sans-serif;
}

.example-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2F4F4F; 
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
    border-bottom: 1px dashed #A9A9A9;
    padding-bottom: 5px;
}

.example-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.example-row.subtotal {
    border-top: 1px solid #ccc;
    font-weight: bold;
    color: #333333; 
}

.example-row.final {
    font-size: 1.3em;
    color: #CC0000;
    font-weight: bold;
    margin-top: 10px;
}


.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333333;
}

.input-group input[type="number"] {
    width: 95%;
    padding: 10px;
    border: 1px solid #A9A9A9;
    border-radius: 3px;
    font-size: 16px;
}

button {
    width: 100%;
    padding: 14px;
    background-color: #2F4F4F;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 20px;
    margin-bottom: 25px;
}

button:hover {
    background-color: #1F3333;
}

.results-box {
    border: 2px solid #DCDCDC;
    padding: 18px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
    overflow-wrap: break-word; 
    word-wrap: break-word;
}

.result-row span:first-child {
    flex-grow: 1;
    padding-right: 15px;
}

.result-row span:last-child {
    flex-shrink: 0; 
    text-align: right;
    font-weight: bold;
    color: #3CB371;
    white-space: nowrap;
}

.total-final-result span:last-child {
    font-size: 1.4em;
    color: #CC0000;
    font-weight: bold;
    border-top: 2px dashed #DCDCDC;
    padding-top: 10px;
}

.total-final-result span:first-child {
    font-weight: 700;
}

.creditos {
    text-align: center;
    font-size: 0.75em;
    color: #666;
    margin-top: 15px; 
    padding-top: 10px;
    border-top: 1px dashed #ccc;
    display: block; 
    width: 100%; 
}