* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

:root {
    --diabetes: #005fad;
    --hta: #d32f2f;
    --tiroides: #7b1fa2;
    --verde: #2e7d32;
    --amarillo: #f57f17;
    --rojo: #c62828;
    --gris-claro: #f5f5f5;
    --gris-medio: #e0e0e0;
    --texto: #333333;
}

body {
    background-color: #f8f9fa;
    color: var(--texto);
    line-height: 1.6;
    padding: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.app-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.app-header p {
    color: #666;
    font-size: 0.95rem;
}

/* Estilo de tabla principal como en la imagen */
.tabla-seguimiento {
    width: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.tabla-seguimiento th,
.tabla-seguimiento td {
    border: 1px solid #ccc;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.tabla-seguimiento th {
    background-color: var(--gris-claro);
    font-weight: 600;
}

.tabla-seguimiento .fila-indicador {
    text-align: left;
    font-weight: 500;
    background-color: #fff;
}

.tabla-seguimiento input {
    width: 60px;
    padding: 0.3rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.tabla-seguimiento input:focus {
    outline: none;
    border-color: var(--diabetes);
    box-shadow: 0 0 0 2px rgba(0,95,173,0.1);
}

.resumen-modulo {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.resumen-modulo h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #444;
}

.indicadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.indicador {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    background-color: var(--gris-claro);
}

.indicador .valor {
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.indicador .etiqueta {
    font-size: 0.8rem;
    opacity: 0.85;
}

.semaforo {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: white;
}

.semaforo.verde { background-color: var(--verde); }
.semaforo.amarillo { background-color: var(--amarillo); }
.semaforo.rojo { background-color: var(--rojo); }

.acciones {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn-json {
    background-color: #2196f3;
    color: white;
}

.btn-pdf {
    background-color: #e53935;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-seguimiento {
        display: block;
        overflow-x: auto;
    }
}