:root {
    --primary-color: #004a9e;
    --secondary-color: #e6007e;
    --bg-light: #f4f7f6;
    --text-dark: #333;
    --border-color: #ced4da;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    width: 95%;
    max-width: 950px;
    margin: 2rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.step-content { display: none; }
.step-content.active { display: block !important; animation: fadeIn 0.4s ease-in-out; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2, h3 { color: var(--primary-color); margin-bottom: 1.5rem; border-bottom: 2px solid #eee; padding-bottom: 10px; }
h4 { color: var(--text-dark); margin: 1.5rem 0 1rem; font-weight: 700; border-left: 4px solid var(--secondary-color); padding-left: 10px; }

.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 1rem; }
.form-group { margin-bottom: 1.2rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
label span { color: var(--secondary-color); }

input, select, textarea { width: 100%; padding: 0.75rem; border: 1px solid var(--border-color); border-radius: 4px; font-size: 1rem; }

/* CUADRÍCULA DE 2 COLUMNAS PARA GRAVEDAD */
.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center; 
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-item input { width: 18px; height: 18px; flex-shrink: 0; margin: 0; }

.progress-container { background: #eee; height: 10px; border-radius: 5px; margin-bottom: 2rem; overflow: hidden; }
.progress-bar { background: var(--primary-color); height: 100%; transition: width 0.4s; }

.btn-bar { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #eee; }
.btn { padding: 0.8rem 2rem; border-radius: 4px; border: none; cursor: pointer; font-weight: bold; }
.btn-next { background: var(--primary-color); color: white; }
.btn-prev { background: #6c757d; color: white; }
.btn-submit { background: #28a745; color: white; }
.btn-add { background: #fff; border: 2px dashed var(--primary-color); color: var(--primary-color); width: 100%; margin: 1rem 0; font-weight: bold; }

.item-card { position: relative; border: 1px solid #ddd; padding: 1.5rem; margin-bottom: 1.5rem; border-radius: 8px; background: #fff; }
.btn-remove { position: absolute; top: 10px; right: 10px; color: red; background: none; border: none; font-size: 1.2rem; cursor: pointer; }

@media (max-width: 600px) { .checkbox-grid { grid-template-columns: 1fr; } }