.gratificacion-calculator {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

.gratificacion-calculator h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
}

.gratificacion-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin: 15px 0 5px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    display: inline;
    cursor: pointer;
}

/* Estilo para el campo de porcentaje con símbolo */
.input-with-symbol {
    position: relative;
}

.input-with-symbol input {
    padding-right: 40px;
}

.input-with-symbol .symbol {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #666;
}

/* Estilo para el campo de porcentaje de descuento */
.porcentaje-deuda {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    border-left: 3px solid #e74c3c;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-calculate, 
.btn-reset {
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    flex: 1;
}

.btn-calculate {
    background: #3498db;
    color: white;
}

.btn-calculate:hover {
    background: #2980b9;
}

.btn-reset {
    background: #e74c3c;
    color: white;
}

.btn-reset:hover {
    background: #c0392b;
}

.gratificacion-results {
    margin-top: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 4px solid #3498db;
    display: none; /* Ocultar inicialmente */
}

.gratificacion-results h3 {
    color: #3498db;
    margin-top: 0;
    margin-bottom: 15px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.result-item.total {
    font-weight: bold;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 5px;
    color: #2c3e50;
}

.gratificacion-info {
    margin-top: 20px;
    padding: 10px;
    background: #f7f9fc;
    border-radius: 5px;
    font-size: 14px;
    color: #666;
}

/* Estilo para placeholder */
::-webkit-input-placeholder {
    color: #aaa;
    font-style: italic;
}
::-moz-placeholder {
    color: #aaa;
    font-style: italic;
}
:-ms-input-placeholder {
    color: #aaa;
    font-style: italic;
}
::placeholder {
    color: #aaa;
    font-style: italic;
}

@media (max-width: 768px) {
    .gratificacion-calculator {
        padding: 15px;
        margin: 0 10px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-calculate, 
    .btn-reset {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .gratificacion-results {
        padding: 12px;
    }
}