:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

header {
    background: var(--secondary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    gap: 1rem;
}

button, select {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

select {
    flex-grow: 1;
    border: 1px solid #ddd;
    background-color: white;
}

.ejercicio {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.ejercicio h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.instruccion {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.input-text, .input-edad {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    transition: all 0.3s;
}

.input-text:focus, .input-edad:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.nota-input {
    margin-bottom: 1rem;
}

.nota-input label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    margin-top: 4px;
}

.progress {
    height: 100%;
    background: #3498db;
    border-radius: 3px;
}

.card-result {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.placeholder {
    color: #95a5a6;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-color);
    color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .controls {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Estilos generales para el ejercicio 2 (calculadora de nota final) */
.ejercicio {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ejercicio h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruccion {
    color: #7f8c8d;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Estilos para los grupos de formulario */
.form-group {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .input-group {
    flex: 1;
}

/* Estilos para inputs */
.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.input-text {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.input-text:focus {
    outline: none;
    border-color: #3498db;
}

/* Estilos para las secciones de nota */
.nota-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.nota-input {
    margin-bottom: 10px;
}

.nota-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
}

.percent-badge {
    position: absolute;
    right: 10px;
    background-color: #e0e0e0;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #555;
}

.progress-bar {
    height: 6px;
    background-color: #ecf0f1;
    border-radius: 3px;
    margin-top: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #3498db;
    border-radius: 3px;
}

/* Estilos para el botón */
.btn-calcular {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-calcular:hover {
    background-color: #2980b9;
}

.btn-calcular .icon {
    font-size: 1.2rem;
}

/* Estilos para el área de resultados */
.resultado {
    margin-top: 20px;
    min-height: 100px;
}

.card-placeholder {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #64748b;
}

.placeholder-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Estilos para tarjeta de error */
.error-card {
    background-color: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: #e53e3e;
}

.error-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.error-card h3 {
    margin: 10px 0;
    color: #e53e3e;
}

.error-card small {
    color: #718096;
    font-size: 0.8rem;
}

/* Estilos para tarjeta de resultados */
.result-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.result-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.2rem;
}

.carnet {
    background-color: #f0f4f8;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #486581;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.student-icon {
    font-size: 1.5rem;
}

.student-info h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.grade-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.grade-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--nota-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.grade-status {
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.grade-status.approved {
    background-color: #dcfce7;
    color: #166534;
}

.grade-status.reproved {
    background-color: #fee2e2;
    color: #991b1b;
}

.grade-details {
    margin: 20px 0;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.detail-item span:first-child {
    color: #4b5563;
}

detail-item span:last-child {
    font-weight: 600;
    color: #1f2937;
}

.detail-item small {
    color: #6b7280;
    font-size: 0.8rem;
}

.final-comment {
    text-align: center;
    font-weight: 500;
    padding: 10px;
    margin-top: 15px;
    border-radius: 6px;
    background-color: #f8fafc;
    color: #334155;
}

/* Estilos específicos para el ejercicio 3 */
.input-group {
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.input-number {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
}

.select-categoria {
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    background-color: white;
}

.resultado-placeholder {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
    border: 2px dashed #bdc3c7;
    border-radius: 8px;
}

.resultado-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.resultado-card.con-aumento {
    border-top: 4px solid #2ecc71;
}

.resultado-card.sin-aumento {
    border-top: 4px solid #3498db;
}

.resultado-header {
    padding: 1.2rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.resultado-body {
    padding: 1.2rem;
}

.resultado-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f1f1f1;
}

.resultado-item.destacado {
    color: #27ae60;
    font-weight: bold;
}

.resultado-item.total {
    font-size: 1.1em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #eee;
}

.resultado-footer {
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    font-size: 0.9em;
    text-align: center;
    color: #7f8c8d;
}

.error-card {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    padding: 1.5rem;
    border-radius: 8px;
    color: #b91c1c;
    text-align: center;
}

.error-card h3 {
    margin: 0.5rem 0;
}

/* Estilos específicos para el comparador */
.comparador-numeros .input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.input-wrapper {
    flex: 1;
}

.input-number {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
}

.vs-circle {
    background: #3498db;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.comparacion-animada {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
    animation: fadeIn 0.5s ease-out;
}

.numero {
    font-size: 2rem;
    font-weight: bold;
    padding: 15px 25px;
    border-radius: 8px;
    background: #f1f1f1;
    min-width: 80px;
    text-align: center;
}

.numero.mayor {
    background: #2ecc71;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.numero.igual {
    background: #3498db;
    color: white;
}

.numero.menor {
    opacity: 0.7;
}

.relacion {
    font-size: 2rem;
    font-weight: bold;
    color: #7f8c8d;
}

.conclusion {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Estilos específicos para el ejercicio 5 */
.select-container {
    position: relative;
    width: 100%;
}

.select-model {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    appearance: none;
    background-color: white;
    font-size: 1rem;
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.price-container {
    display: flex;
    align-items: center;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    overflow: hidden;
}

.currency {
    padding: 0 12px;
    background: #f1f1f1;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.input-price {
    flex: 1;
    border: none;
    padding: 12px;
    font-size: 1rem;
}

.result-placeholder {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.car-icon {
    width: 80px;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 4px solid #3498db;
}

.with-discount {
    border-top-color: #2ecc71;
}

.car-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-car-icon {
    width: 60px;
}

.price-details {
    margin: 1.5rem 0;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid #eee;
}

.discount-row {
    color: #2ecc71;
    font-weight: bold;
}

.no-discount {
    color: #e74c3c;
    justify-content: center;
    font-style: italic;
}

.final-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 0.5rem;
    border-bottom: none;
}

.savings-badge {
    background: #2ecc71;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.error-card {
    background: #fff6f6;
    border: 1px solid #ffdddd;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.error-icon {
    font-size: 2rem;
    color: #e74c3c;
    display: block;
    margin-bottom: 1rem;
}

/* Estilos específicos para el ejercicio 6 */
.travel-result-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.travel-result-card.with-discount {
    border-top: 4px solid #2ecc71;
}

.travel-result-card.no-discount {
    border-top: 4px solid #3498db;
}

.travel-header {
    padding: 1.5rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #eee;
}

.travel-header h3 {
    margin: 0;
    color: #2c3e50;
}

.price-details {
    padding: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #ecf0f1;
}

.discount-row {
    color: #27ae60;
    font-weight: bold;
}

.no-discount-message {
    color: #7f8c8d;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.final-price {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #bdc3c7;
    font-size: 1.1em;
}

.total-amount {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
}

.discount-amount {
    color: #e74c3c;
    font-weight: bold;
}

.savings-message {
    background: #e8f5e9;
    padding: 12px;
    text-align: center;
    color: #27ae60;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.hint {
    display: block;
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 4px;
}

.select-destino {
    width: 100%;
    padding: 12px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    background-color: white;
    font-size: 1em;
}

.error-card {
    background: #fdecea;
    padding: 1.5rem;
    border-radius: 8px;
    color: #c0392b;
    text-align: center;
}

.error-card .icon {
    font-size: 2em;
    margin-bottom: 10px;
}

/* Estilos específicos para el Ejercicio 7 */
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.valor-input {
    padding: 10px 10px 10px 35px;
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.valor-input:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 35px;
    background: #3498db;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
}

.input-error {
    border-color: #e74c3c !important;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-limpiar {
    background: #95a5a6;
}

.btn-limpiar:hover {
    background: #7f8c8d;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-high {
    border-top: 4px solid #2ecc71;
}

.stat-value {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    font-size: 0.9em;
}

.suma-pares {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.valores-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.valor {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.positivo {
    background: #e8f8f5;
    color: #27ae60;
}

.negativo {
    background: #fdedec;
    color: #e74c3c;
}

.cero {
    background: #f0f3f4;
    color: #7f8c8d;
}

/* Estilos específicos para el ejercicio 8 */
.input-with-icon {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
}

.input-tabla {
    padding: 12px 12px 12px 40px;
    width: 100%;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.1em;
}

.tabla-placeholder {
    text-align: center;
    padding: 2rem;
    color: #7f8c8d;
}

.placeholder-icon {
    font-size: 2.5em;
    margin-bottom: 0.5rem;
}

.tabla-container {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabla-titulo {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f1f1;
}

.tabla-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tabla-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    background: #f8f9fa;
}

.tabla-item.par {
    background: #e8f4fc;
}

.operacion {
    font-weight: bold;
    margin-right: 8px;
}

.igual {
    margin-right: 8px;
    color: #7f8c8d;
}

.resultado {
    font-weight: bold;
    color: #2c3e50;
}

.tabla-footer {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px dashed #ddd;
    color: #27ae60;
    font-size: 0.9em;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: #fdecea;
    border-radius: 6px;
    color: #e74c3c;
}

/* Estilos específicos para el conversor de temperatura */
.temp-input-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.temp-input {
    position: relative;
    flex: 1;
}

.temp-input label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #2c3e50;
}

.input-temp {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.1rem;
}

.temp-icon {
    position: absolute;
    right: 15px;
    top: 38px;
    font-size: 1.2rem;
}

.conversion-arrow {
    font-size: 1.5rem;
    color: #7f8c8d;
}

.temp-result-preview {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #bdc3c7;
}

.temp-result-preview #fahrenheit-preview {
    font-size: 1.4rem;
    font-weight: bold;
    color: #2c3e50;
}

.scale-info {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.scale-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
}

.scale-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.scale-color.low {
    background: #3498db;
}

.scale-color.medium {
    background: #2ecc71;
}

.scale-color.high {
    background: #e74c3c;
}

/* Tarjeta de resultados */
.temp-card {
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.temp-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.temp-icon-large {
    font-size: 2rem;
}

.temp-values {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.temp-value {
    flex: 1;
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.temp-label {
    display: block;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.temp-number {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Colores según clasificación */
.temp-card.low {
    border-left: 5px solid #3498db;
    background: linear-gradient(to right, #f8f9fa, #ebf5fb);
}

.temp-card.medium {
    border-left: 5px solid #2ecc71;
    background: linear-gradient(to right, #f8f9fa, #e8f8f0);
}

.temp-card.high {
    border-left: 5px solid #e74c3c;
    background: linear-gradient(to right, #f8f9fa, #fdedec);
}

.temp-card.unknown {
    border-left: 5px solid #f39c12;
    background: linear-gradient(to right, #f8f9fa, #fef5e7);
}

.temp-details {
    font-size: 0.9rem;
    color: #7f8c8d;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 10px;
}

/* Estilos específicos para el Ejercicio 10 */
.turnos-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.turno-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.turno-header {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.edad-input {
    margin-bottom: 0.5rem;
}

.edad-input label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.edad-input-field {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.input-error {
    border-color: #e74c3c !important;
    background-color: #fef0ef;
}

.resultado-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.promedios-container {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    gap: 1rem;
}

.promedio-turno {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    flex: 1;
    background: #f8f9fa;
}

.promedio-turno.destacado {
    background: #e3f2fd;
    border: 1px solid #bbdefb;
}

.promedio-valor {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.turno-destacado {
    background: #e8f5e9;
    border: 2px solid #43a047;
    box-shadow: 0 2px 8px rgba(67,160,71,0.08);
}