:root {
    --primary: #1e40af;
    --accent: #10b981;
    --bg: #f3f4f6;
    --text: #1f2937;
    --white: #ffffff;
    --border: #d1d5db;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    padding-top: 70px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    gap: 10px;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.2s;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary);
    color: white;
}

/* Container */
.container {
    max-width: 950px;
    margin: 20px auto;
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 20px;
}

h1 { color: var(--primary); margin: 0; font-size: 2.2rem; }
h2 { color: #6b7280; margin: 5px 0; font-size: 1.1rem; }

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 25px;
    padding-bottom: 10px;
    margin-top: 20px;
}

.sub-header {
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 25px 0 15px 0;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.step-num {
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.bg-fisioterapeuta {
    background-color: #f8fafc;
    border: 1px solid var(--primary);
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-section { padding-bottom: 30px; }

/* Grid System */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 15px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.span-2 { grid-column: span 2; }

.field { display: flex; flex-direction: column; }
label { font-size: 0.85rem; font-weight: 600; margin-bottom: 5px; color: #374151; }

.checkboxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 15px;
    border-radius: 8px;
}
.checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    margin-bottom: 0;
}

input, select, textarea {
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
}

/* REGLA EVA ESTILIZADA */
.eva-container-visual {
    margin: 20px 0;
    padding: 25px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.eva-selector-label {
    display: block;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.eva-slider-wrapper {
    padding: 0 10px;
    margin-bottom: 10px;
}

.eva-slider {
    width: 100%;
    cursor: pointer;
}

.eva-regla-colores {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.eva-num {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}

/* Colores Solicitados */
.eva-num:nth-child(1), .eva-num:nth-child(2), .eva-num:nth-child(3) { background: #22c55e; }
.eva-num:nth-child(4) { background: #a3e635; }
.eva-num:nth-child(5) { background: #facc15; }
.eva-num:nth-child(6) { background: #f97316; }
.eva-num:nth-child(7) { background: #ea580c; }
.eva-num:nth-child(8) { background: #dc2626; }
.eva-num:nth-child(9), .eva-num:nth-child(10) { background: #b91c1c; }

.eva-labels-desc {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #6b7280;
    padding: 0 5px;
}

.eva-imagen-referencia {
    margin-top: 25px;
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

/* Table y Otros */
.table-container { overflow-x: auto; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--border); padding: 10px; text-align: center; }
th { background: #f3f4f6; }
table input { width: 60px; text-align: center; }

.form-footer { display: flex; gap: 15px; margin-top: 40px; }
.btn { flex: 1; padding: 16px; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; }
.btn-save { background: var(--accent); color: white; }
.btn-print { background: #4b5563; color: white; }

@media print {
    .navbar, .form-footer, .eva-slider-wrapper { display: none; }
    body { padding-top: 0; }
    .container { box-shadow: none; width: 100%; padding: 0; }
    .eva-regla-colores { -webkit-print-color-adjust: exact; }
}