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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to bottom, #89CFF0 0%, #B0E0E6 50%, #FFFFFF 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #4CAF50;
}

.logo {
    flex-shrink: 0;
}

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

.logo-placeholder {
    background: linear-gradient(135deg, #4CAF50, #81C784);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.logo-placeholder span {
    display: block;
    font-size: 24px;
    font-weight: bold;
}

.logo-placeholder small {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
}

h1 {
    font-size: 24px;
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 20px;
}

.mensaje-exito {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.info-section {
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.form-group input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.form-group select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
}

.table-section {
    margin-bottom: 30px;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}

.items-table thead {
    background-color: #4CAF50;
    color: white;
}

.items-table th {
    padding: 12px;
    text-align: left;
    font-weight: bold;
    border: 1px solid #ddd;
}

.items-table td {
    padding: 8px;
    border: 1px solid #ddd;
}

.items-table input {
    width: 100%;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-size: 14px;
}

.items-table input:focus {
    outline: none;
    border-color: #4CAF50;
}

.items-table td:nth-child(1) {
    width: 100px;
}

.items-table td:nth-child(2) {
    width: 120px;
}

.btn-add-row {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-add-row:hover {
    background-color: #45A049;
}

.signature-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
}

.signature-box {
    text-align: center;
}

.signature-box label {
    display: block;
    font-weight: bold;
    margin-bottom: 40px;
    color: #333;
}

.signature-line {
    border-top: 2px solid #333;
    margin-top: 10px;
}

.evaluation-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.evaluation-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #333;
}

.eval-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.eval-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.eval-group input[type="text"],
.eval-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
}

.rating {
    display: flex;
    gap: 10px;
    align-items: center;
}

.rating input[type="radio"] {
    display: none;
}

.rating label {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.rating label:hover {
    transform: scale(1.2);
}

.rating input[type="radio"]:checked + label {
    transform: scale(1.3);
    filter: drop-shadow(0 0 3px rgba(76, 175, 80, 0.8));
}

.submit-section {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #45A049;
}

.mensaje-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

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

    .container {
        box-shadow: none;
    }

    .btn-add-row,
    .btn-submit {
        display: none;
    }
}

@media (max-width: 768px) {
    .form-row,
    .eval-row {
        grid-template-columns: 1fr;
    }

    .signature-section {
        grid-template-columns: 1fr;
    }

    .rating {
        justify-content: center;
    }
}
