.as-app {
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1f2a1f;
}

.as-app .as-aviso {
	background: #fff3cd;
	border: 1px solid #ffe69c;
	padding: 12px 16px;
	border-radius: 8px;
}

.as-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #e3e8e0;
	margin-bottom: 20px;
	overflow-x: auto;
}

.as-tab-btn {
	background: none;
	border: none;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #5a6b57;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
}

.as-tab-btn.is-active {
	color: #2e7d32;
	border-bottom-color: #2e7d32;
}

.as-panel {
	display: none;
}

.as-panel.is-active {
	display: block;
}

.as-panel h3 {
	margin-top: 0;
}

.as-campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 16px;
}

.as-campo select,
.as-campo input[type="text"] {
	padding: 10px 12px;
	border: 1px solid #cfd8cc;
	border-radius: 8px;
	font-size: 15px;
}

.as-captura {
	margin-bottom: 16px;
}

.as-btn-foto {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	border: 2px dashed #8bc34a;
	border-radius: 12px;
	background: #f4faf0;
	color: #2e7d32;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}

.as-preview {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 12px;
	margin-top: 12px;
}

.as-btn-primario,
.as-btn-secundario {
	display: inline-block;
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}

.as-btn-primario {
	background: #2e7d32;
	color: #fff;
}

.as-btn-primario:disabled {
	background: #a5c5a7;
	cursor: not-allowed;
}

.as-btn-secundario {
	background: #e8f5e9;
	color: #2e7d32;
	width: auto;
	white-space: nowrap;
}

.as-form-inline {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.as-form-inline input {
	flex: 1;
	min-width: 140px;
	padding: 10px 12px;
	border: 1px solid #cfd8cc;
	border-radius: 8px;
}

.as-lista {
	list-style: none;
	margin: 0;
	padding: 0;
}

.as-lista li {
	padding: 12px 14px;
	border: 1px solid #e3e8e0;
	border-radius: 8px;
	margin-bottom: 8px;
}

.as-lista li strong {
	display: block;
}

.as-lista li span {
	color: #667a63;
	font-size: 13px;
}

.as-resultado {
	margin-top: 20px;
	padding: 16px;
	border-radius: 12px;
	background: #f4faf0;
	border: 1px solid #d5ead0;
}

.as-resultado h4 {
	margin-top: 0;
	color: #2e7d32;
}

.as-resultado dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 12px;
	margin: 0 0 12px;
}

.as-resultado dt {
	font-weight: 600;
	color: #445a41;
}

.as-resultado dd {
	margin: 0;
}

.as-resultado .as-recomendaciones {
	background: #fff;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
}

.as-resultado .as-disclaimer {
	font-size: 12px;
	color: #8a9686;
	margin-top: 10px;
}

.as-historial-item {
	display: flex;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e3e8e0;
	border-radius: 10px;
	margin-bottom: 10px;
}

.as-historial-item img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}

.as-historial-item .as-historial-meta {
	font-size: 13px;
	color: #667a63;
}

.as-cargando,
.as-vacio {
	color: #8a9686;
	font-style: italic;
}

.as-error {
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #a12a2a;
	padding: 10px 14px;
	border-radius: 8px;
	margin-top: 12px;
}
