


.form-wrapper {
	max-width: calc(100vw - 250px);
	margin: 0 auto;
	background: #ffffff;
	border-radius: 32px;
	box-shadow: 0 20px 40px -12px rgba(0, 20, 30, 0.12);
	padding: 2rem 2rem 2.5rem;
}

.form-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid #e9edf4;
	padding-bottom: 1.25rem;
}

.form-header h1 {
	font-weight: 600;
	font-size: 1.8rem;
	letter-spacing: -0.02em;
	color: #0b2b4a;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.form-header h1 small {
	font-weight: 400;
	font-size: 1rem;
	color: #5b6f87;
	margin-left: 0.5rem;
}

.badge-version {
	background: #eef3fa;
	padding: 0.4rem 1rem;
	border-radius: 40px;
	font-size: 0.8rem;
	font-weight: 500;
	color: #1f4a7a;
}

/* ===== SECCIONES PLEGABLES ===== */
.section {
	background: #f4f4f4;
	border-radius: 20px;
	margin-bottom: 1.25rem;
	border: 1px solid #a8abaf;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
	transition: box-shadow 0.2s;
	overflow: hidden;
}

.section:hover {
	box-shadow: 0 6px 16px rgba(0, 20, 40, 0.05);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--primary-gradient);
	border-bottom: 1px solid #e9edf4;
	font-weight: 600;
	font-size: 1.05rem;
	color: #1a344d;
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease;
	letter-spacing: -0.01em;
}

.section-header:hover {
/* 	background: #f1f7fe; */
}

.section-header .icon {
	font-size: 1.3rem;
	line-height: 1;
}

.section-header .toggle-icon {
	margin-left: auto;
	font-size: 1.2rem;
	transition: transform 0.25s ease;
	color: #6f8aa8;
	line-height: 1;
}

.section-header .toggle-icon.open {
	transform: rotate(180deg);
}

.section-body {
	padding: 1.5rem 1.5rem 1.8rem;
	transition: all 0.3s ease;
}

.section-body.collapsed {
	display: none;
}

/* ===== GRID Y CAMPOS ===== */
.field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 1.2rem 1.8rem;
	align-items: end;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.field-group.full-width {
	grid-column: 1 / -1;
}

.field-group.half {
	grid-column: span 2;
}

label, .label-text {
	font-size: 0.8rem;
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	color: #3d5775;
	margin-bottom: 0.1rem;
}

.field-group input,
.field-group select,
.field-group textarea {
	width: 100%;
	padding: 0.6rem 0.8rem;
	border: 1px solid #d9e0e9;
	border-radius: 14px;
	font-family: 'Inter', sans-serif;
	font-size: 0.95rem;
	background: white;
	transition: 0.15s ease;
	color: #152b40;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
	outline: none;
	border-color: #2d6b9e;
	box-shadow: 0 0 0 4px rgba(45, 107, 158, 0.08);
}

.field-group input[readonly] {
	background: #f4f8fe;
	color: #1f3a57;
	font-weight: 500;
}

.field-group textarea {
	resize: vertical;
	min-height: 60px;
}

.inline-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 0.8rem;
}

.inline-flex .field-group {
	flex: 1 0 160px;
}

.mini-select {
	max-width: 120px;
}

.chip-info {
	background: #f0f5fe;
	border-radius: 40px;
	padding: 0.5rem 1.2rem;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
	border: 1px solid #dee9f5;
}

.chip-info strong {
	font-weight: 600;
	color: #0b2b4a;
}

.repeat-item {
	background: #f9fcff;
	border-radius: 18px;
	padding: 1.2rem 1.2rem 0.8rem;
	border: 1px solid #e5ecf5;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 0.8rem 1.2rem;
}

.repeat-item .field-group {
	margin-bottom: 0.4rem;
}

.btn {
	background: white;
	border: 1px solid #ccd8e6;
	padding: 0.5rem 1.4rem;
	border-radius: 40px;
	font-weight: 500;
	font-size: 0.9rem;
	cursor: pointer;
	transition: 0.15s ease;
	color: #1f3a57;
}

.btn-primary {
	background: #1a4a7a;
	border: 1px solid #1a4a7a;
	color: white;
	box-shadow: 0 2px 6px rgba(26, 74, 122, 0.15);
}

.btn-primary:hover {
	background: #0f3b63;
	border-color: #0f3b63;
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	border-color: #ccd8e6;
}

.btn-outline:hover {
	background: #f0f5fe;
	border-color: #a0b8d4;
}

.actions {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9edf4;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.hidden {
	display: none !important;
}

@media (max-width: 700px) {
	.form-wrapper { padding: 1.2rem; }
	.field-grid { grid-template-columns: 1fr; gap: 0.8rem; }
	.field-group.half { grid-column: 1; }
	.repeat-item { grid-template-columns: 1fr 1fr; }
	.section-body { padding: 1rem; }
	.form-header h1 { font-size: 1.4rem; }
	.section-header { padding: 0.8rem 1rem; }
}

@media (max-width: 480px) {
	.repeat-item { grid-template-columns: 1fr; }
	.inline-flex { flex-direction: column; align-items: stretch; }
}

.mt-1 { margin-top: 0.6rem; }
.mb-1 { margin-bottom: 0.6rem; }
.text-muted { color: #4d6a8a; font-size: 0.9rem; }
.fw-500 { font-weight: 500; }


